Class GatewayOuterClass.Partition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Partition.Builder>
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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • getDefaultInstanceForType

      public GatewayOuterClass.Partition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GatewayOuterClass.Partition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • setField

      public GatewayOuterClass.Partition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • clearField

      public GatewayOuterClass.Partition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • clearOneof

      public GatewayOuterClass.Partition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • addRepeatedField

      public GatewayOuterClass.Partition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • mergeFrom

      public GatewayOuterClass.Partition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Partition.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Partition.Builder>
      Throws:
      IOException
    • getPartitionId

      public int getPartitionId()
       the unique ID of this partition
       
      int32 partitionId = 1;
      Specified by:
      getPartitionId in interface GatewayOuterClass.PartitionOrBuilder
      Returns:
      The partitionId.
    • setPartitionId

      public GatewayOuterClass.Partition.Builder setPartitionId(int value)
       the unique ID of this partition
       
      int32 partitionId = 1;
      Parameters:
      value - The partitionId to set.
      Returns:
      This builder for chaining.
    • clearPartitionId

      public GatewayOuterClass.Partition.Builder 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:
      getRoleValue in interface GatewayOuterClass.PartitionOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • setRoleValue

      public GatewayOuterClass.Partition.Builder setRoleValue(int value)
       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:
      getRole in interface GatewayOuterClass.PartitionOrBuilder
      Returns:
      The role.
    • setRole

       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:
      getHealthValue in interface GatewayOuterClass.PartitionOrBuilder
      Returns:
      The enum numeric value on the wire for health.
    • setHealthValue

      public GatewayOuterClass.Partition.Builder setHealthValue(int value)
       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:
      getHealth in interface GatewayOuterClass.PartitionOrBuilder
      Returns:
      The health.
    • setHealth

       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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>
    • mergeUnknownFields

      public final GatewayOuterClass.Partition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Partition.Builder>