public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest.getDefaultInstance()) return this; if (other.getElementInstanceKey() != 0L) { setElementInstanceKey(other.getElementInstanceKey()); } if (!other.getPayload().isEmpty()) { payload_ = other.payload_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * the new payload as a JSON document; see CreateWorkflowInstanceRequest for the rules * about payloads * </pre> * * <code>string payload = 2;</code> */ public Builder setPayloadBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payload_ = value; onChanged(); return this; } @java.lang.Override
/** * <pre> * the new payload as a JSON document; see CreateWorkflowInstanceRequest for the rules * about payloads * </pre> * * <code>string payload = 2;</code> */ public Builder setPayload( java.lang.String value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * <pre> * the unique identifier of a particular element; can be the workflow instance key (as * obtained during instance creation), or a given element, such as a service task (see * elementInstanceKey on the JobHeaders message) * </pre> * * <code>int64 elementInstanceKey = 1;</code> */ public Builder setElementInstanceKey(long value) { elementInstanceKey_ = value; onChanged(); return this; } /**
public UpdateWorkflowInstancePayloadCommandImpl( GatewayStub asyncStub, ZeebeObjectMapper objectMapper, long elementInstanceKey) { super(objectMapper); this.asyncStub = asyncStub; this.builder = UpdateWorkflowInstancePayloadRequest.newBuilder(); builder.setElementInstanceKey(elementInstanceKey); }
/** * <pre> * the unique identifier of a particular element; can be the workflow instance key (as * obtained during instance creation), or a given element, such as a service task (see * elementInstanceKey on the JobHeaders message) * </pre> * * <code>int64 elementInstanceKey = 1;</code> */ public Builder clearElementInstanceKey() { elementInstanceKey_ = 0L; onChanged(); return this; }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest) { return mergeFrom((io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest)other); } else { super.mergeFrom(other); return this; } }
@Override public ZeebeFuture<Void> send() { final UpdateWorkflowInstancePayloadRequest request = builder.build(); final ZeebeClientFutureImpl<Void, UpdateWorkflowInstancePayloadResponse> future = new ZeebeClientFutureImpl<>(); asyncStub.updateWorkflowInstancePayload(request, future); return future; }
public static Builder newBuilder(io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest build() { io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@Override public ZeebeFuture<Void> send() { final UpdateWorkflowInstancePayloadRequest request = builder.build(); final ZeebeClientFutureImpl<Void, UpdateWorkflowInstancePayloadResponse> future = new ZeebeClientFutureImpl<>(); asyncStub.updateWorkflowInstancePayload(request, future); return future; }
/** * <pre> * the new payload as a JSON document; see CreateWorkflowInstanceRequest for the rules * about payloads * </pre> * * <code>string payload = 2;</code> */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } /**
public UpdateWorkflowInstancePayloadCommandImpl( GatewayStub asyncStub, ZeebeObjectMapper objectMapper, long elementInstanceKey) { super(objectMapper); this.asyncStub = asyncStub; this.builder = UpdateWorkflowInstancePayloadRequest.newBuilder(); builder.setElementInstanceKey(elementInstanceKey); }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest buildPartial() { io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest result = new io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest(this); result.elementInstanceKey_ = elementInstanceKey_; result.payload_ = payload_; onBuilt(); return result; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {