Class GatewayOuterClass.PublishMessageRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
io.camunda.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 type
gateway_protocol.PublishMessageRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()the correlation key of the messageclearField(com.google.protobuf.Descriptors.FieldDescriptor field) the unique ID of the message; can be omitted.the name of the messageclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) the tenant id of the messagehow long the message should be buffered on the broker, in millisecondsthe message variables as a JSON document; to be valid, the root of the document must be an object, e.g.clone()the correlation key of the messagecom.google.protobuf.ByteStringthe correlation key of the messagestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorthe unique ID of the message; can be omitted.com.google.protobuf.ByteStringthe unique ID of the message; can be omitted.getName()the name of the messagecom.google.protobuf.ByteStringthe name of the messagethe tenant id of the messagecom.google.protobuf.ByteStringthe tenant id of the messagelonghow long the message should be buffered on the broker, in millisecondsthe message variables as a JSON document; to be valid, the root of the document must be an object, e.g.com.google.protobuf.ByteStringthe 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCorrelationKey(String value) the correlation key of the messagesetCorrelationKeyBytes(com.google.protobuf.ByteString value) the correlation key of the messagesetMessageId(String value) the unique ID of the message; can be omitted.setMessageIdBytes(com.google.protobuf.ByteString value) the unique ID of the message; can be omitted.the name of the messagesetNameBytes(com.google.protobuf.ByteString value) the name of the messagesetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTenantId(String value) the tenant id of the messagesetTenantIdBytes(com.google.protobuf.ByteString value) the tenant id of the messagesetTimeToLive(long value) how long the message should be buffered on the broker, in millisecondssetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVariables(String value) the message variables as a JSON document; to be valid, the root of the document must be an object, e.g.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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
setField
public GatewayOuterClass.PublishMessageRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
clearField
public GatewayOuterClass.PublishMessageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
clearOneof
public GatewayOuterClass.PublishMessageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
addRepeatedField
public GatewayOuterClass.PublishMessageRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeFrom
public GatewayOuterClass.PublishMessageRequest.Builder mergeFrom(GatewayOuterClass.PublishMessageRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.PublishMessageRequest.Builder>- Throws:
IOException
-
getName
the name of the message
string name = 1;- Specified by:
getNamein interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()the name of the message
string name = 1;- Specified by:
getNameBytesin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The bytes for name.
-
setName
the name of the message
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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
the correlation key of the message
string correlationKey = 2;- Specified by:
getCorrelationKeyin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The correlationKey.
-
getCorrelationKeyBytes
public com.google.protobuf.ByteString getCorrelationKeyBytes()the correlation key of the message
string correlationKey = 2;- Specified by:
getCorrelationKeyBytesin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The bytes for correlationKey.
-
setCorrelationKey
the correlation key of the message
string correlationKey = 2;- Parameters:
value- The correlationKey to set.- Returns:
- This builder for chaining.
-
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:
getTimeToLivein interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The timeToLive.
-
setTimeToLive
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
how long the message should be buffered on the broker, in milliseconds
int64 timeToLive = 3;- Returns:
- This builder for chaining.
-
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:
getMessageIdin 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:
getMessageIdBytesin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The bytes for messageId.
-
setMessageId
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
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
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:
getVariablesin 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:
getVariablesBytesin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The bytes for variables.
-
setVariables
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
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.
-
getTenantId
the tenant id of the message
string tenantId = 6;- Specified by:
getTenantIdin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The tenantId.
-
getTenantIdBytes
public com.google.protobuf.ByteString getTenantIdBytes()the tenant id of the message
string tenantId = 6;- Specified by:
getTenantIdBytesin interfaceGatewayOuterClass.PublishMessageRequestOrBuilder- Returns:
- The bytes for tenantId.
-
setTenantId
the tenant id of the message
string tenantId = 6;- Parameters:
value- The tenantId to set.- Returns:
- This builder for chaining.
-
clearTenantId
the tenant id of the message
string tenantId = 6;- Returns:
- This builder for chaining.
-
setTenantIdBytes
public GatewayOuterClass.PublishMessageRequest.Builder setTenantIdBytes(com.google.protobuf.ByteString value) the tenant id of the message
string tenantId = 6;- Parameters:
value- The bytes for tenantId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GatewayOuterClass.PublishMessageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.PublishMessageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.PublishMessageRequest.Builder>
-