Package io.confluent.databalancer.record
Class RemoveBroker.BrokerRemovalStateRecordProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.confluent.databalancer.record.RemoveBroker.BrokerRemovalStateRecordProto
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RemoveBroker.BrokerRemovalStateRecordProtoOrBuilder,Serializable
- Enclosing class:
RemoveBroker
public static final class RemoveBroker.BrokerRemovalStateRecordProto
extends com.google.protobuf.GeneratedMessage
implements RemoveBroker.BrokerRemovalStateRecordProtoOrBuilder
Protobuf type
databalancer.BrokerRemovalStateRecordProto- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedatabalancer.BrokerRemovalStateRecordProtoNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionbooleanintV1-only: when only one broker could be removed at a time.intgetBrokerIds(int index) V2+: supporting multiple-broker removalintV2+: supporting multiple-broker removalV2+: supporting multiple-broker removalstatic final com.google.protobuf.Descriptors.DescriptorgetError()exception serialized as Base64 stringcom.google.protobuf.ByteStringexception serialized as Base64 stringlongint64 lastUpdateTime = 6;com.google.protobuf.Parser<RemoveBroker.BrokerRemovalStateRecordProto> the state of the broker removal operationintthe state of the broker removal operationintbooleanbool shouldShutDown = 7;longint64 startTime = 5;intVersion to allow change in exception/state serialization if needed.inthashCode()final booleanparseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RemoveBroker.BrokerRemovalStateRecordProto> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtensionMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
BROKERID_FIELD_NUMBER
public static final int BROKERID_FIELD_NUMBER- See Also:
-
BROKERIDS_FIELD_NUMBER
public static final int BROKERIDS_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
REMOVAL_STATE_FIELD_NUMBER
public static final int REMOVAL_STATE_FIELD_NUMBER- See Also:
-
STARTTIME_FIELD_NUMBER
public static final int STARTTIME_FIELD_NUMBER- See Also:
-
LASTUPDATETIME_FIELD_NUMBER
public static final int LASTUPDATETIME_FIELD_NUMBER- See Also:
-
SHOULDSHUTDOWN_FIELD_NUMBER
public static final int SHOULDSHUTDOWN_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getVersion
public int getVersion()Version to allow change in exception/state serialization if needed.
int32 version = 1;- Specified by:
getVersionin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The version.
-
getBrokerId
public int getBrokerId()V1-only: when only one broker could be removed at a time.
int32 brokerId = 2;- Specified by:
getBrokerIdin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The brokerId.
-
getBrokerIdsList
V2+: supporting multiple-broker removal
repeated int32 brokerIds = 8;- Specified by:
getBrokerIdsListin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- A list containing the brokerIds.
-
getBrokerIdsCount
public int getBrokerIdsCount()V2+: supporting multiple-broker removal
repeated int32 brokerIds = 8;- Specified by:
getBrokerIdsCountin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The count of brokerIds.
-
getBrokerIds
public int getBrokerIds(int index) V2+: supporting multiple-broker removal
repeated int32 brokerIds = 8;- Specified by:
getBrokerIdsin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The brokerIds at the given index.
-
getError
exception serialized as Base64 string
string error = 3;- Specified by:
getErrorin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()exception serialized as Base64 string
string error = 3;- Specified by:
getErrorBytesin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The bytes for error.
-
getRemovalStateValue
public int getRemovalStateValue()the state of the broker removal operation
.databalancer.RemovalState removal_state = 4;- Specified by:
getRemovalStateValuein interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The enum numeric value on the wire for removalState.
-
getRemovalState
the state of the broker removal operation
.databalancer.RemovalState removal_state = 4;- Specified by:
getRemovalStatein interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The removalState.
-
getStartTime
public long getStartTime()int64 startTime = 5;- Specified by:
getStartTimein interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The startTime.
-
getLastUpdateTime
public long getLastUpdateTime()int64 lastUpdateTime = 6;- Specified by:
getLastUpdateTimein interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The lastUpdateTime.
-
getShouldShutDown
public boolean getShouldShutDown()bool shouldShutDown = 7;- Specified by:
getShouldShutDownin interfaceRemoveBroker.BrokerRemovalStateRecordProtoOrBuilder- Returns:
- The shouldShutDown.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RemoveBroker.BrokerRemovalStateRecordProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static RemoveBroker.BrokerRemovalStateRecordProto.Builder newBuilder(RemoveBroker.BrokerRemovalStateRecordProto prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-