Class ApiStatus.ApiStatusKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ApiStatus.ApiStatusKey.Builder>
com.google.protobuf.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.Builder>
io.confluent.databalancer.record.ApiStatus.ApiStatusKey.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ApiStatus.ApiStatusKeyOrBuilder, Cloneable
Enclosing class:
ApiStatus.ApiStatusKey

public static final class ApiStatus.ApiStatusKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.Builder> implements ApiStatus.ApiStatusKeyOrBuilder
 repeated can not be used directly in oneof (https://developers.google.com/protocol-buffers/docs/proto3#using_oneof)
 so there are two brokerId-type fields. Only one should be set.
 
Protobuf type databalancer.ApiStatusKey
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • 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.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.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.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.Builder>
    • getDefaultInstanceForType

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

      public ApiStatus.ApiStatusKey build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ApiStatus.ApiStatusKey buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ApiStatus.ApiStatusKey.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<ApiStatus.ApiStatusKey.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.Builder>
    • mergeFrom

      public ApiStatus.ApiStatusKey.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<ApiStatus.ApiStatusKey.Builder>
      Throws:
      IOException
    • getConfigTypeValue

      public int getConfigTypeValue()
      .databalancer.ApiType configType = 1;
      Specified by:
      getConfigTypeValue in interface ApiStatus.ApiStatusKeyOrBuilder
      Returns:
      The enum numeric value on the wire for configType.
    • setConfigTypeValue

      public ApiStatus.ApiStatusKey.Builder setConfigTypeValue(int value)
      .databalancer.ApiType configType = 1;
      Parameters:
      value - The enum numeric value on the wire for configType to set.
      Returns:
      This builder for chaining.
    • getConfigType

      public ApiStatus.ApiType getConfigType()
      .databalancer.ApiType configType = 1;
      Specified by:
      getConfigType in interface ApiStatus.ApiStatusKeyOrBuilder
      Returns:
      The configType.
    • setConfigType

      public ApiStatus.ApiStatusKey.Builder setConfigType(ApiStatus.ApiType value)
      .databalancer.ApiType configType = 1;
      Parameters:
      value - The configType to set.
      Returns:
      This builder for chaining.
    • clearConfigType

      public ApiStatus.ApiStatusKey.Builder clearConfigType()
      .databalancer.ApiType configType = 1;
      Returns:
      This builder for chaining.
    • getBrokerId

      public int getBrokerId()
       For operations that act on a single (or no) broker at a time (ADD_BROKER, REMOVE_BROKER(v1), EVEN_CLUSTER_LOAD, FAILED_BROKER_LIST, CELL_OVERLOAD_OCCURRENCE_DELTA, CELLS)
       
      int32 brokerId = 2;
      Specified by:
      getBrokerId in interface ApiStatus.ApiStatusKeyOrBuilder
      Returns:
      The brokerId.
    • setBrokerId

      public ApiStatus.ApiStatusKey.Builder setBrokerId(int value)
       For operations that act on a single (or no) broker at a time (ADD_BROKER, REMOVE_BROKER(v1), EVEN_CLUSTER_LOAD, FAILED_BROKER_LIST, CELL_OVERLOAD_OCCURRENCE_DELTA, CELLS)
       
      int32 brokerId = 2;
      Parameters:
      value - The brokerId to set.
      Returns:
      This builder for chaining.
    • clearBrokerId

      public ApiStatus.ApiStatusKey.Builder clearBrokerId()
       For operations that act on a single (or no) broker at a time (ADD_BROKER, REMOVE_BROKER(v1), EVEN_CLUSTER_LOAD, FAILED_BROKER_LIST, CELL_OVERLOAD_OCCURRENCE_DELTA, CELLS)
       
      int32 brokerId = 2;
      Returns:
      This builder for chaining.
    • getBrokerIdsList

      public List<Integer> getBrokerIdsList()
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Specified by:
      getBrokerIdsList in interface ApiStatus.ApiStatusKeyOrBuilder
      Returns:
      A list containing the brokerIds.
    • getBrokerIdsCount

      public int getBrokerIdsCount()
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Specified by:
      getBrokerIdsCount in interface ApiStatus.ApiStatusKeyOrBuilder
      Returns:
      The count of brokerIds.
    • getBrokerIds

      public int getBrokerIds(int index)
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Specified by:
      getBrokerIds in interface ApiStatus.ApiStatusKeyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The brokerIds at the given index.
    • setBrokerIds

      public ApiStatus.ApiStatusKey.Builder setBrokerIds(int index, int value)
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Parameters:
      index - The index to set the value at.
      value - The brokerIds to set.
      Returns:
      This builder for chaining.
    • addBrokerIds

      public ApiStatus.ApiStatusKey.Builder addBrokerIds(int value)
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Parameters:
      value - The brokerIds to add.
      Returns:
      This builder for chaining.
    • addAllBrokerIds

      public ApiStatus.ApiStatusKey.Builder addAllBrokerIds(Iterable<? extends Integer> values)
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Parameters:
      values - The brokerIds to add.
      Returns:
      This builder for chaining.
    • clearBrokerIds

      public ApiStatus.ApiStatusKey.Builder clearBrokerIds()
       For operations acting on multiple brokers: REMOVE_BROKER_V2
       
      repeated int32 brokerIds = 3;
      Returns:
      This builder for chaining.