Class GatewayOuterClass.BrokerInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
io.camunda.zeebe.gateway.protocol.GatewayOuterClass.BrokerInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GatewayOuterClass.BrokerInfoOrBuilder,Cloneable
- Enclosing class:
- GatewayOuterClass.BrokerInfo
public static final class GatewayOuterClass.BrokerInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
implements GatewayOuterClass.BrokerInfoOrBuilder
Protobuf type
gateway_protocol.BrokerInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllPartitions(Iterable<? extends GatewayOuterClass.Partition> values) list of partitions managed or replicated on this brokeraddPartitions(int index, GatewayOuterClass.Partition value) list of partitions managed or replicated on this brokeraddPartitions(int index, GatewayOuterClass.Partition.Builder builderForValue) list of partitions managed or replicated on this brokerlist of partitions managed or replicated on this brokeraddPartitions(GatewayOuterClass.Partition.Builder builderForValue) list of partitions managed or replicated on this brokerlist of partitions managed or replicated on this brokeraddPartitionsBuilder(int index) list of partitions managed or replicated on this brokeraddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) hostname of the brokerunique (within a cluster) node ID for the brokerclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) list of partitions managed or replicated on this brokerport for the brokerbroker versionclone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHost()hostname of the brokercom.google.protobuf.ByteStringhostname of the brokerintunique (within a cluster) node ID for the brokergetPartitions(int index) list of partitions managed or replicated on this brokergetPartitionsBuilder(int index) list of partitions managed or replicated on this brokerlist of partitions managed or replicated on this brokerintlist of partitions managed or replicated on this brokerlist of partitions managed or replicated on this brokergetPartitionsOrBuilder(int index) list of partitions managed or replicated on this brokerList<? extends GatewayOuterClass.PartitionOrBuilder>list of partitions managed or replicated on this brokerintgetPort()port for the brokerbroker versioncom.google.protobuf.ByteStringbroker versionprotected 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) removePartitions(int index) list of partitions managed or replicated on this brokerhostname of the brokersetHostBytes(com.google.protobuf.ByteString value) hostname of the brokersetNodeId(int value) unique (within a cluster) node ID for the brokersetPartitions(int index, GatewayOuterClass.Partition value) list of partitions managed or replicated on this brokersetPartitions(int index, GatewayOuterClass.Partition.Builder builderForValue) list of partitions managed or replicated on this brokersetPort(int value) port for the brokersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(String value) broker versionsetVersionBytes(com.google.protobuf.ByteString value) broker versionMethods 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.BrokerInfo.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.BrokerInfo.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.BrokerInfo.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.BrokerInfo.Builder>
-
setField
public GatewayOuterClass.BrokerInfo.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.BrokerInfo.Builder>
-
clearField
public GatewayOuterClass.BrokerInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
-
clearOneof
public GatewayOuterClass.BrokerInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
-
setRepeatedField
public GatewayOuterClass.BrokerInfo.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.BrokerInfo.Builder>
-
addRepeatedField
public GatewayOuterClass.BrokerInfo.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.BrokerInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.BrokerInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
-
mergeFrom
public GatewayOuterClass.BrokerInfo.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.BrokerInfo.Builder>- Throws:
IOException
-
getNodeId
public int getNodeId()unique (within a cluster) node ID for the broker
int32 nodeId = 1;- Specified by:
getNodeIdin interfaceGatewayOuterClass.BrokerInfoOrBuilder- Returns:
- The nodeId.
-
setNodeId
unique (within a cluster) node ID for the broker
int32 nodeId = 1;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
clearNodeId
unique (within a cluster) node ID for the broker
int32 nodeId = 1;- Returns:
- This builder for chaining.
-
getHost
hostname of the broker
string host = 2;- Specified by:
getHostin interfaceGatewayOuterClass.BrokerInfoOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()hostname of the broker
string host = 2;- Specified by:
getHostBytesin interfaceGatewayOuterClass.BrokerInfoOrBuilder- Returns:
- The bytes for host.
-
setHost
hostname of the broker
string host = 2;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
hostname of the broker
string host = 2;- Returns:
- This builder for chaining.
-
setHostBytes
hostname of the broker
string host = 2;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()port for the broker
int32 port = 3;- Specified by:
getPortin interfaceGatewayOuterClass.BrokerInfoOrBuilder- Returns:
- The port.
-
setPort
port for the broker
int32 port = 3;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
port for the broker
int32 port = 3;- Returns:
- This builder for chaining.
-
getPartitionsList
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4;- Specified by:
getPartitionsListin interfaceGatewayOuterClass.BrokerInfoOrBuilder
-
getPartitionsCount
public int getPartitionsCount()list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4;- Specified by:
getPartitionsCountin interfaceGatewayOuterClass.BrokerInfoOrBuilder
-
getPartitions
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4;- Specified by:
getPartitionsin interfaceGatewayOuterClass.BrokerInfoOrBuilder
-
setPartitions
public GatewayOuterClass.BrokerInfo.Builder setPartitions(int index, GatewayOuterClass.Partition value) list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
setPartitions
public GatewayOuterClass.BrokerInfo.Builder setPartitions(int index, GatewayOuterClass.Partition.Builder builderForValue) list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
addPartitions
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
addPartitions
public GatewayOuterClass.BrokerInfo.Builder addPartitions(int index, GatewayOuterClass.Partition value) list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
addPartitions
public GatewayOuterClass.BrokerInfo.Builder addPartitions(GatewayOuterClass.Partition.Builder builderForValue) list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
addPartitions
public GatewayOuterClass.BrokerInfo.Builder addPartitions(int index, GatewayOuterClass.Partition.Builder builderForValue) list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
addAllPartitions
public GatewayOuterClass.BrokerInfo.Builder addAllPartitions(Iterable<? extends GatewayOuterClass.Partition> values) list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
clearPartitions
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
removePartitions
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
getPartitionsBuilder
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
getPartitionsOrBuilder
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4;- Specified by:
getPartitionsOrBuilderin interfaceGatewayOuterClass.BrokerInfoOrBuilder
-
getPartitionsOrBuilderList
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4;- Specified by:
getPartitionsOrBuilderListin interfaceGatewayOuterClass.BrokerInfoOrBuilder
-
addPartitionsBuilder
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
addPartitionsBuilder
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
getPartitionsBuilderList
list of partitions managed or replicated on this broker
repeated .gateway_protocol.Partition partitions = 4; -
getVersion
broker version
string version = 5;- Specified by:
getVersionin interfaceGatewayOuterClass.BrokerInfoOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()broker version
string version = 5;- Specified by:
getVersionBytesin interfaceGatewayOuterClass.BrokerInfoOrBuilder- Returns:
- The bytes for version.
-
setVersion
broker version
string version = 5;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
broker version
string version = 5;- Returns:
- This builder for chaining.
-
setVersionBytes
broker version
string version = 5;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GatewayOuterClass.BrokerInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.BrokerInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.BrokerInfo.Builder>
-