Package io.confluent.databalancer.record
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 Summary
Modifier and TypeMethodDescriptionaddAllBrokerIds(Iterable<? extends Integer> values) For operations acting on multiple brokers: REMOVE_BROKER_V2addBrokerIds(int value) For operations acting on multiple brokers: REMOVE_BROKER_V2build()clear()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)For operations acting on multiple brokers: REMOVE_BROKER_V2.databalancer.ApiType configType = 1;intFor 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)intgetBrokerIds(int index) For operations acting on multiple brokers: REMOVE_BROKER_V2intFor operations acting on multiple brokers: REMOVE_BROKER_V2For operations acting on multiple brokers: REMOVE_BROKER_V2.databalancer.ApiType configType = 1;int.databalancer.ApiType configType = 1;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorfinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ApiStatus.ApiStatusKey other) 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)setBrokerIds(int index, int value) For operations acting on multiple brokers: REMOVE_BROKER_V2setConfigType(ApiStatus.ApiType value) .databalancer.ApiType configType = 1;setConfigTypeValue(int value) .databalancer.ApiType configType = 1;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, mergeUnknownFields, newBuilderForField, setField, setRepeatedField, setUnknownFieldsMethods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFromMethods inherited from class java.lang.Object
equals, 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() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.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.GeneratedMessage.Builder<ApiStatus.ApiStatusKey.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiStatus.ApiStatusKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiStatus.ApiStatusKey.Builder>- Throws:
IOException
-
getConfigTypeValue
public int getConfigTypeValue().databalancer.ApiType configType = 1;- Specified by:
getConfigTypeValuein interfaceApiStatus.ApiStatusKeyOrBuilder- Returns:
- The enum numeric value on the wire for configType.
-
setConfigTypeValue
.databalancer.ApiType configType = 1;- Parameters:
value- The enum numeric value on the wire for configType to set.- Returns:
- This builder for chaining.
-
getConfigType
.databalancer.ApiType configType = 1;- Specified by:
getConfigTypein interfaceApiStatus.ApiStatusKeyOrBuilder- Returns:
- The configType.
-
setConfigType
.databalancer.ApiType configType = 1;- Parameters:
value- The configType to set.- Returns:
- This builder for chaining.
-
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:
getBrokerIdin interfaceApiStatus.ApiStatusKeyOrBuilder- Returns:
- The brokerId.
-
setBrokerId
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
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
For operations acting on multiple brokers: REMOVE_BROKER_V2
repeated int32 brokerIds = 3;- Specified by:
getBrokerIdsListin interfaceApiStatus.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:
getBrokerIdsCountin interfaceApiStatus.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:
getBrokerIdsin interfaceApiStatus.ApiStatusKeyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The brokerIds at the given index.
-
setBrokerIds
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
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
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
For operations acting on multiple brokers: REMOVE_BROKER_V2
repeated int32 brokerIds = 3;- Returns:
- This builder for chaining.
-