Class ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder>
io.confluent.databalancer.record.ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder, Cloneable
- Enclosing class:
ReplicationFactorChange.ReplicationFactorChangeStateProto
public static final class ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder>
implements ReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder
Protobuf type
databalancer.ReplicationFactorChangeStateProto-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()int32 desired_replication_factor = 3;string error = 5;int64 last_update_time = 7;.databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;int64 start_time = 6;string topic_name = 2;int32 version = 1;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorintint32 desired_replication_factor = 3;getError()string error = 5;com.google.protobuf.ByteStringstring error = 5;longint64 last_update_time = 7;.databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;int.databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;longint64 start_time = 6;string topic_name = 2;com.google.protobuf.ByteStringstring topic_name = 2;intint32 version = 1;final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDesiredReplicationFactor(int value) int32 desired_replication_factor = 3;string error = 5;setErrorBytes(com.google.protobuf.ByteString value) string error = 5;setLastUpdateTime(long value) int64 last_update_time = 7;.databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;setReplicationFactorChangeStateValue(int value) .databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;setStartTime(long value) int64 start_time = 6;setTopicName(String value) string topic_name = 2;setTopicNameBytes(com.google.protobuf.ByteString value) string topic_name = 2;setVersion(int value) int32 version = 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 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<ReplicationFactorChange.ReplicationFactorChangeStateProto.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<ReplicationFactorChange.ReplicationFactorChangeStateProto.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
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder>
-
mergeFrom
public ReplicationFactorChange.ReplicationFactorChangeStateProto.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<ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder>- Throws:
IOException
-
getVersion
public int getVersion()int32 version = 1;- Specified by:
getVersionin interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The version.
-
setVersion
int32 version = 1;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
int32 version = 1;- Returns:
- This builder for chaining.
-
getTopicName
string topic_name = 2;- Specified by:
getTopicNamein interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The topicName.
-
getTopicNameBytes
public com.google.protobuf.ByteString getTopicNameBytes()string topic_name = 2;- Specified by:
getTopicNameBytesin interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The bytes for topicName.
-
setTopicName
string topic_name = 2;- Parameters:
value- The topicName to set.- Returns:
- This builder for chaining.
-
clearTopicName
string topic_name = 2;- Returns:
- This builder for chaining.
-
setTopicNameBytes
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder setTopicNameBytes(com.google.protobuf.ByteString value) string topic_name = 2;- Parameters:
value- The bytes for topicName to set.- Returns:
- This builder for chaining.
-
getDesiredReplicationFactor
public int getDesiredReplicationFactor()int32 desired_replication_factor = 3;- Specified by:
getDesiredReplicationFactorin interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The desiredReplicationFactor.
-
setDesiredReplicationFactor
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder setDesiredReplicationFactor(int value) int32 desired_replication_factor = 3;- Parameters:
value- The desiredReplicationFactor to set.- Returns:
- This builder for chaining.
-
clearDesiredReplicationFactor
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder clearDesiredReplicationFactor()int32 desired_replication_factor = 3;- Returns:
- This builder for chaining.
-
getReplicationFactorChangeStateValue
public int getReplicationFactorChangeStateValue().databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;- Specified by:
getReplicationFactorChangeStateValuein interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The enum numeric value on the wire for replicationFactorChangeState.
-
setReplicationFactorChangeStateValue
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder setReplicationFactorChangeStateValue(int value) .databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;- Parameters:
value- The enum numeric value on the wire for replicationFactorChangeState to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getReplicationFactorChangeState
.databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;- Specified by:
getReplicationFactorChangeStatein interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The replicationFactorChangeState.
-
setReplicationFactorChangeState
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder setReplicationFactorChangeState(ReplicationFactorChange.ReplicationFactorChangeState value) .databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;- Parameters:
value- The replicationFactorChangeState to set.- Returns:
- This builder for chaining.
-
clearReplicationFactorChangeState
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder clearReplicationFactorChangeState().databalancer.ReplicationFactorChangeState replication_factor_change_state = 4;- Returns:
- This builder for chaining.
-
getError
string error = 5;- Specified by:
getErrorin interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()string error = 5;- Specified by:
getErrorBytesin interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The bytes for error.
-
setError
string error = 5;- Parameters:
value- The error to set.- Returns:
- This builder for chaining.
-
clearError
string error = 5;- Returns:
- This builder for chaining.
-
setErrorBytes
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder setErrorBytes(com.google.protobuf.ByteString value) string error = 5;- Parameters:
value- The bytes for error to set.- Returns:
- This builder for chaining.
-
getStartTime
public long getStartTime()int64 start_time = 6;- Specified by:
getStartTimein interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The startTime.
-
setStartTime
int64 start_time = 6;- Parameters:
value- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
int64 start_time = 6;- Returns:
- This builder for chaining.
-
getLastUpdateTime
public long getLastUpdateTime()int64 last_update_time = 7;- Specified by:
getLastUpdateTimein interfaceReplicationFactorChange.ReplicationFactorChangeStateProtoOrBuilder- Returns:
- The lastUpdateTime.
-
setLastUpdateTime
public ReplicationFactorChange.ReplicationFactorChangeStateProto.Builder setLastUpdateTime(long value) int64 last_update_time = 7;- Parameters:
value- The lastUpdateTime to set.- Returns:
- This builder for chaining.
-
clearLastUpdateTime
int64 last_update_time = 7;- Returns:
- This builder for chaining.
-