public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getCorrelationKey().isEmpty()) { correlationKey_ = other.correlationKey_; onChanged(); } if (other.getTimeToLive() != 0L) { setTimeToLive(other.getTimeToLive()); } if (!other.getMessageId().isEmpty()) { messageId_ = other.messageId_; onChanged(); } if (!other.getPayload().isEmpty()) { payload_ = other.payload_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PublishMessage", requestType = io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.class, responseType = io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest, io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse> getPublishMessageMethod() { io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest, io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse> getPublishMessageMethod; if ((getPublishMessageMethod = GatewayGrpc.getPublishMessageMethod) == null) { synchronized (GatewayGrpc.class) { if ((getPublishMessageMethod = GatewayGrpc.getPublishMessageMethod) == null) { GatewayGrpc.getPublishMessageMethod = getPublishMessageMethod = io.grpc.MethodDescriptor.<io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest, io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "gateway_protocol.Gateway", "PublishMessage")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse.getDefaultInstance())) .setSchemaDescriptor(new GatewayMethodDescriptorSupplier("PublishMessage")) .build(); } } } return getPublishMessageMethod; }
/** * <pre> * the message payload as a JSON document; see CreateWorkflowInstanceRequest for the * rules about payloads * </pre> * * <code>string payload = 5;</code> */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } /**
/** * <pre> * the correlation key of the message * </pre> * * <code>string correlationKey = 2;</code> */ public Builder clearCorrelationKey() { correlationKey_ = getDefaultInstance().getCorrelationKey(); onChanged(); return this; } /**
/** * <pre> * the unique ID of the message; can be omitted. only useful to ensure only one message * with the given ID will ever be published (during its lifetime) * </pre> * * <code>string messageId = 4;</code> */ public Builder clearMessageId() { messageId_ = getDefaultInstance().getMessageId(); onChanged(); return this; } /**
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest getDefaultInstanceForType() { return io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.getDefaultInstance(); }
/** * <pre> * the name of the message * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**