Package io.zeebe.gateway.protocol
Class GatewayOuterClass.PublishMessageRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
- io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,GatewayOuterClass.PublishMessageRequestOrBuilder
,Cloneable
- Enclosing class:
- GatewayOuterClass.PublishMessageRequest
public static final class GatewayOuterClass.PublishMessageRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder> implements GatewayOuterClass.PublishMessageRequestOrBuilder
Protobuf typegateway_protocol.PublishMessageRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayOuterClass.PublishMessageRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayOuterClass.PublishMessageRequest
build()
GatewayOuterClass.PublishMessageRequest
buildPartial()
GatewayOuterClass.PublishMessageRequest.Builder
clear()
GatewayOuterClass.PublishMessageRequest.Builder
clearCorrelationKey()
the correlation key of the messageGatewayOuterClass.PublishMessageRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GatewayOuterClass.PublishMessageRequest.Builder
clearMessageId()
the unique ID of the message; can be omitted.GatewayOuterClass.PublishMessageRequest.Builder
clearName()
the name of the messageGatewayOuterClass.PublishMessageRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GatewayOuterClass.PublishMessageRequest.Builder
clearTimeToLive()
how long the message should be buffered on the broker, in millisecondsGatewayOuterClass.PublishMessageRequest.Builder
clearVariables()
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g.GatewayOuterClass.PublishMessageRequest.Builder
clone()
String
getCorrelationKey()
the correlation key of the messagecom.google.protobuf.ByteString
getCorrelationKeyBytes()
the correlation key of the messageGatewayOuterClass.PublishMessageRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getMessageId()
the unique ID of the message; can be omitted.com.google.protobuf.ByteString
getMessageIdBytes()
the unique ID of the message; can be omitted.String
getName()
the name of the messagecom.google.protobuf.ByteString
getNameBytes()
the name of the messagelong
getTimeToLive()
how long the message should be buffered on the broker, in millisecondsString
getVariables()
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g.com.google.protobuf.ByteString
getVariablesBytes()
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GatewayOuterClass.PublishMessageRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GatewayOuterClass.PublishMessageRequest.Builder
mergeFrom(com.google.protobuf.Message other)
GatewayOuterClass.PublishMessageRequest.Builder
mergeFrom(GatewayOuterClass.PublishMessageRequest other)
GatewayOuterClass.PublishMessageRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GatewayOuterClass.PublishMessageRequest.Builder
setCorrelationKey(String value)
the correlation key of the messageGatewayOuterClass.PublishMessageRequest.Builder
setCorrelationKeyBytes(com.google.protobuf.ByteString value)
the correlation key of the messageGatewayOuterClass.PublishMessageRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayOuterClass.PublishMessageRequest.Builder
setMessageId(String value)
the unique ID of the message; can be omitted.GatewayOuterClass.PublishMessageRequest.Builder
setMessageIdBytes(com.google.protobuf.ByteString value)
the unique ID of the message; can be omitted.GatewayOuterClass.PublishMessageRequest.Builder
setName(String value)
the name of the messageGatewayOuterClass.PublishMessageRequest.Builder
setNameBytes(com.google.protobuf.ByteString value)
the name of the messageGatewayOuterClass.PublishMessageRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GatewayOuterClass.PublishMessageRequest.Builder
setTimeToLive(long value)
how long the message should be buffered on the broker, in millisecondsGatewayOuterClass.PublishMessageRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GatewayOuterClass.PublishMessageRequest.Builder
setVariables(String value)
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g.GatewayOuterClass.PublishMessageRequest.Builder
setVariablesBytes(com.google.protobuf.ByteString value)
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
clear
public GatewayOuterClass.PublishMessageRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
getDefaultInstanceForType
public GatewayOuterClass.PublishMessageRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GatewayOuterClass.PublishMessageRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayOuterClass.PublishMessageRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GatewayOuterClass.PublishMessageRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
setField
public GatewayOuterClass.PublishMessageRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
clearField
public GatewayOuterClass.PublishMessageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
clearOneof
public GatewayOuterClass.PublishMessageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
setRepeatedField
public GatewayOuterClass.PublishMessageRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
addRepeatedField
public GatewayOuterClass.PublishMessageRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeFrom
public GatewayOuterClass.PublishMessageRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeFrom
public GatewayOuterClass.PublishMessageRequest.Builder mergeFrom(GatewayOuterClass.PublishMessageRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeFrom
public GatewayOuterClass.PublishMessageRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
- Throws:
IOException
-
getName
public String getName()
the name of the message
string name = 1;
- Specified by:
getName
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
the name of the message
string name = 1;
- Specified by:
getNameBytes
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
public GatewayOuterClass.PublishMessageRequest.Builder setName(String value)
the name of the message
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public GatewayOuterClass.PublishMessageRequest.Builder clearName()
the name of the message
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public GatewayOuterClass.PublishMessageRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
the name of the message
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCorrelationKey
public String getCorrelationKey()
the correlation key of the message
string correlationKey = 2;
- Specified by:
getCorrelationKey
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The correlationKey.
-
getCorrelationKeyBytes
public com.google.protobuf.ByteString getCorrelationKeyBytes()
the correlation key of the message
string correlationKey = 2;
- Specified by:
getCorrelationKeyBytes
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The bytes for correlationKey.
-
setCorrelationKey
public GatewayOuterClass.PublishMessageRequest.Builder setCorrelationKey(String value)
the correlation key of the message
string correlationKey = 2;
- Parameters:
value
- The correlationKey to set.- Returns:
- This builder for chaining.
-
clearCorrelationKey
public GatewayOuterClass.PublishMessageRequest.Builder clearCorrelationKey()
the correlation key of the message
string correlationKey = 2;
- Returns:
- This builder for chaining.
-
setCorrelationKeyBytes
public GatewayOuterClass.PublishMessageRequest.Builder setCorrelationKeyBytes(com.google.protobuf.ByteString value)
the correlation key of the message
string correlationKey = 2;
- Parameters:
value
- The bytes for correlationKey to set.- Returns:
- This builder for chaining.
-
getTimeToLive
public long getTimeToLive()
how long the message should be buffered on the broker, in milliseconds
int64 timeToLive = 3;
- Specified by:
getTimeToLive
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The timeToLive.
-
setTimeToLive
public GatewayOuterClass.PublishMessageRequest.Builder setTimeToLive(long value)
how long the message should be buffered on the broker, in milliseconds
int64 timeToLive = 3;
- Parameters:
value
- The timeToLive to set.- Returns:
- This builder for chaining.
-
clearTimeToLive
public GatewayOuterClass.PublishMessageRequest.Builder clearTimeToLive()
how long the message should be buffered on the broker, in milliseconds
int64 timeToLive = 3;
- Returns:
- This builder for chaining.
-
getMessageId
public String getMessageId()
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)
string messageId = 4;
- Specified by:
getMessageId
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The messageId.
-
getMessageIdBytes
public com.google.protobuf.ByteString getMessageIdBytes()
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)
string messageId = 4;
- Specified by:
getMessageIdBytes
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The bytes for messageId.
-
setMessageId
public GatewayOuterClass.PublishMessageRequest.Builder setMessageId(String value)
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)
string messageId = 4;
- Parameters:
value
- The messageId to set.- Returns:
- This builder for chaining.
-
clearMessageId
public GatewayOuterClass.PublishMessageRequest.Builder clearMessageId()
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)
string messageId = 4;
- Returns:
- This builder for chaining.
-
setMessageIdBytes
public GatewayOuterClass.PublishMessageRequest.Builder setMessageIdBytes(com.google.protobuf.ByteString value)
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)
string messageId = 4;
- Parameters:
value
- The bytes for messageId to set.- Returns:
- This builder for chaining.
-
getVariables
public String getVariables()
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
string variables = 5;
- Specified by:
getVariables
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The variables.
-
getVariablesBytes
public com.google.protobuf.ByteString getVariablesBytes()
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
string variables = 5;
- Specified by:
getVariablesBytes
in interfaceGatewayOuterClass.PublishMessageRequestOrBuilder
- Returns:
- The bytes for variables.
-
setVariables
public GatewayOuterClass.PublishMessageRequest.Builder setVariables(String value)
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
string variables = 5;
- Parameters:
value
- The variables to set.- Returns:
- This builder for chaining.
-
clearVariables
public GatewayOuterClass.PublishMessageRequest.Builder clearVariables()
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
string variables = 5;
- Returns:
- This builder for chaining.
-
setVariablesBytes
public GatewayOuterClass.PublishMessageRequest.Builder setVariablesBytes(com.google.protobuf.ByteString value)
the message variables as a JSON document; to be valid, the root of the document must be an object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
string variables = 5;
- Parameters:
value
- The bytes for variables to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GatewayOuterClass.PublishMessageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.PublishMessageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
-