/** * <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; } /**
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; }
/** * <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; } /**
/** * <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; }
/** * <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; } /**