Class GatewayOuterClass.Partition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
io.camunda.zeebe.gateway.protocol.GatewayOuterClass.Partition.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GatewayOuterClass.PartitionOrBuilder,Cloneable
- Enclosing class:
- GatewayOuterClass.Partition
public static final class GatewayOuterClass.Partition.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
implements GatewayOuterClass.PartitionOrBuilder
Protobuf type
gateway_protocol.Partition-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) the health of this partitionclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) the unique ID of this partitionthe role of the broker for this partitionclone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorthe health of this partitionintthe health of this partitionintthe unique ID of this partitiongetRole()the role of the broker for this partitionintthe role of the broker for this partitionprotected 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) the health of this partitionsetHealthValue(int value) the health of this partitionsetPartitionId(int value) the unique ID of this partitionsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) the role of the broker for this partitionsetRoleValue(int value) the role of the broker for this partitionsetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.Partition.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.Partition.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.Partition.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.Partition.Builder>
-
setField
public GatewayOuterClass.Partition.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.Partition.Builder>
-
clearField
public GatewayOuterClass.Partition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
-
clearOneof
public GatewayOuterClass.Partition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
-
setRepeatedField
public GatewayOuterClass.Partition.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.Partition.Builder>
-
addRepeatedField
public GatewayOuterClass.Partition.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.Partition.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Partition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
-
mergeFrom
public GatewayOuterClass.Partition.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.Partition.Builder>- Throws:
IOException
-
getPartitionId
public int getPartitionId()the unique ID of this partition
int32 partitionId = 1;- Specified by:
getPartitionIdin interfaceGatewayOuterClass.PartitionOrBuilder- Returns:
- The partitionId.
-
setPartitionId
the unique ID of this partition
int32 partitionId = 1;- Parameters:
value- The partitionId to set.- Returns:
- This builder for chaining.
-
clearPartitionId
the unique ID of this partition
int32 partitionId = 1;- Returns:
- This builder for chaining.
-
getRoleValue
public int getRoleValue()the role of the broker for this partition
.gateway_protocol.Partition.PartitionBrokerRole role = 2;- Specified by:
getRoleValuein interfaceGatewayOuterClass.PartitionOrBuilder- Returns:
- The enum numeric value on the wire for role.
-
setRoleValue
the role of the broker for this partition
.gateway_protocol.Partition.PartitionBrokerRole role = 2;- Parameters:
value- The enum numeric value on the wire for role to set.- Returns:
- This builder for chaining.
-
getRole
the role of the broker for this partition
.gateway_protocol.Partition.PartitionBrokerRole role = 2;- Specified by:
getRolein interfaceGatewayOuterClass.PartitionOrBuilder- Returns:
- The role.
-
setRole
public GatewayOuterClass.Partition.Builder setRole(GatewayOuterClass.Partition.PartitionBrokerRole value) the role of the broker for this partition
.gateway_protocol.Partition.PartitionBrokerRole role = 2;- Parameters:
value- The role to set.- Returns:
- This builder for chaining.
-
clearRole
the role of the broker for this partition
.gateway_protocol.Partition.PartitionBrokerRole role = 2;- Returns:
- This builder for chaining.
-
getHealthValue
public int getHealthValue()the health of this partition
.gateway_protocol.Partition.PartitionBrokerHealth health = 3;- Specified by:
getHealthValuein interfaceGatewayOuterClass.PartitionOrBuilder- Returns:
- The enum numeric value on the wire for health.
-
setHealthValue
the health of this partition
.gateway_protocol.Partition.PartitionBrokerHealth health = 3;- Parameters:
value- The enum numeric value on the wire for health to set.- Returns:
- This builder for chaining.
-
getHealth
the health of this partition
.gateway_protocol.Partition.PartitionBrokerHealth health = 3;- Specified by:
getHealthin interfaceGatewayOuterClass.PartitionOrBuilder- Returns:
- The health.
-
setHealth
public GatewayOuterClass.Partition.Builder setHealth(GatewayOuterClass.Partition.PartitionBrokerHealth value) the health of this partition
.gateway_protocol.Partition.PartitionBrokerHealth health = 3;- Parameters:
value- The health to set.- Returns:
- This builder for chaining.
-
clearHealth
the health of this partition
.gateway_protocol.Partition.PartitionBrokerHealth health = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final GatewayOuterClass.Partition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.Partition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
-