public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse.getDefaultInstance()) return this; if (other.getKey() != 0L) { setKey(other.getKey());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse other = (io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse) obj; boolean result = true; result = result && (getKey() == other.getKey()); result = result && getWorkflowsList() .equals(other.getWorkflowsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse buildPartial() { io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse result = new io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.key_ = key_; if (workflowsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { workflows_ = java.util.Collections.unmodifiableList(workflows_); bitField0_ = (bitField0_ & ~0x00000002); } result.workflows_ = workflows_; } else { result.workflows_ = workflowsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeployWorkflow", requestType = io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowRequest.class, responseType = io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowRequest, io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse> getDeployWorkflowMethod() { io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowRequest, io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse> getDeployWorkflowMethod; if ((getDeployWorkflowMethod = GatewayGrpc.getDeployWorkflowMethod) == null) { synchronized (GatewayGrpc.class) { if ((getDeployWorkflowMethod = GatewayGrpc.getDeployWorkflowMethod) == null) { GatewayGrpc.getDeployWorkflowMethod = getDeployWorkflowMethod = io.grpc.MethodDescriptor.<io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowRequest, io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "gateway_protocol.Gateway", "DeployWorkflow")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse.getDefaultInstance())) .setSchemaDescriptor(new GatewayMethodDescriptorSupplier("DeployWorkflow")) .build(); } } } return getDeployWorkflowMethod; }
public static DeployWorkflowResponse toDeployWorkflowResponse( long key, DeploymentRecord brokerResponse) { final DeployWorkflowResponse.Builder responseBuilder = DeployWorkflowResponse.newBuilder().setKey(key); brokerResponse .workflows() .forEach( workflow -> responseBuilder .addWorkflowsBuilder() .setBpmnProcessId(bufferAsString(workflow.getBpmnProcessId())) .setVersion(workflow.getVersion()) .setWorkflowKey(workflow.getKey()) .setResourceName(bufferAsString(workflow.getResourceName()))); return responseBuilder.build(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKey()); if (getWorkflowsCount() > 0) { hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; hash = (53 * hash) + getWorkflowsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse getDefaultInstanceForType() { return io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse.getDefaultInstance(); }
public DeploymentEventImpl(final DeployWorkflowResponse response) { key = response.getKey(); workflows = response.getWorkflowsList().stream().map(WorkflowImpl::new).collect(Collectors.toList()); }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse build() { io.zeebe.gateway.protocol.GatewayOuterClass.DeployWorkflowResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public DeploymentEventImpl(final DeployWorkflowResponse response) { key = response.getKey(); workflows = response.getWorkflowsList().stream().map(WorkflowImpl::new).collect(Collectors.toList()); }