Package org.apache.bookkeeper.proto
Class DataFormats.UnderreplicatedLedgerFormat.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
- org.apache.bookkeeper.proto.DataFormats.UnderreplicatedLedgerFormat.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,DataFormats.UnderreplicatedLedgerFormatOrBuilder
- Enclosing class:
- DataFormats.UnderreplicatedLedgerFormat
public static final class DataFormats.UnderreplicatedLedgerFormat.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder> implements DataFormats.UnderreplicatedLedgerFormatOrBuilder
Protobuf typeUnderreplicatedLedgerFormat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormats.UnderreplicatedLedgerFormat.Builder
addAllReplica(java.lang.Iterable<java.lang.String> values)
repeated string replica = 1;
DataFormats.UnderreplicatedLedgerFormat.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.UnderreplicatedLedgerFormat.Builder
addReplica(java.lang.String value)
repeated string replica = 1;
DataFormats.UnderreplicatedLedgerFormat.Builder
addReplicaBytes(com.google.protobuf.ByteString value)
repeated string replica = 1;
DataFormats.UnderreplicatedLedgerFormat
build()
DataFormats.UnderreplicatedLedgerFormat
buildPartial()
DataFormats.UnderreplicatedLedgerFormat.Builder
clear()
DataFormats.UnderreplicatedLedgerFormat.Builder
clearCtime()
optional int64 ctime = 2;
DataFormats.UnderreplicatedLedgerFormat.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DataFormats.UnderreplicatedLedgerFormat.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DataFormats.UnderreplicatedLedgerFormat.Builder
clearReplica()
repeated string replica = 1;
DataFormats.UnderreplicatedLedgerFormat.Builder
clone()
long
getCtime()
optional int64 ctime = 2;
DataFormats.UnderreplicatedLedgerFormat
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getReplica(int index)
repeated string replica = 1;
com.google.protobuf.ByteString
getReplicaBytes(int index)
repeated string replica = 1;
int
getReplicaCount()
repeated string replica = 1;
com.google.protobuf.ProtocolStringList
getReplicaList()
repeated string replica = 1;
boolean
hasCtime()
optional int64 ctime = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DataFormats.UnderreplicatedLedgerFormat.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DataFormats.UnderreplicatedLedgerFormat.Builder
mergeFrom(com.google.protobuf.Message other)
DataFormats.UnderreplicatedLedgerFormat.Builder
mergeFrom(DataFormats.UnderreplicatedLedgerFormat other)
DataFormats.UnderreplicatedLedgerFormat.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DataFormats.UnderreplicatedLedgerFormat.Builder
setCtime(long value)
optional int64 ctime = 2;
DataFormats.UnderreplicatedLedgerFormat.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.UnderreplicatedLedgerFormat.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DataFormats.UnderreplicatedLedgerFormat.Builder
setReplica(int index, java.lang.String value)
repeated string replica = 1;
DataFormats.UnderreplicatedLedgerFormat.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
clear
public DataFormats.UnderreplicatedLedgerFormat.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
getDefaultInstanceForType
public DataFormats.UnderreplicatedLedgerFormat getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataFormats.UnderreplicatedLedgerFormat build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataFormats.UnderreplicatedLedgerFormat buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DataFormats.UnderreplicatedLedgerFormat.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
setField
public DataFormats.UnderreplicatedLedgerFormat.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
clearField
public DataFormats.UnderreplicatedLedgerFormat.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
clearOneof
public DataFormats.UnderreplicatedLedgerFormat.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
setRepeatedField
public DataFormats.UnderreplicatedLedgerFormat.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
addRepeatedField
public DataFormats.UnderreplicatedLedgerFormat.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
mergeFrom
public DataFormats.UnderreplicatedLedgerFormat.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
mergeFrom
public DataFormats.UnderreplicatedLedgerFormat.Builder mergeFrom(DataFormats.UnderreplicatedLedgerFormat other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
mergeFrom
public DataFormats.UnderreplicatedLedgerFormat.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
- Throws:
java.io.IOException
-
getReplicaList
public com.google.protobuf.ProtocolStringList getReplicaList()
repeated string replica = 1;
- Specified by:
getReplicaList
in interfaceDataFormats.UnderreplicatedLedgerFormatOrBuilder
- Returns:
- A list containing the replica.
-
getReplicaCount
public int getReplicaCount()
repeated string replica = 1;
- Specified by:
getReplicaCount
in interfaceDataFormats.UnderreplicatedLedgerFormatOrBuilder
- Returns:
- The count of replica.
-
getReplica
public java.lang.String getReplica(int index)
repeated string replica = 1;
- Specified by:
getReplica
in interfaceDataFormats.UnderreplicatedLedgerFormatOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The replica at the given index.
-
getReplicaBytes
public com.google.protobuf.ByteString getReplicaBytes(int index)
repeated string replica = 1;
- Specified by:
getReplicaBytes
in interfaceDataFormats.UnderreplicatedLedgerFormatOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the replica at the given index.
-
setReplica
public DataFormats.UnderreplicatedLedgerFormat.Builder setReplica(int index, java.lang.String value)
repeated string replica = 1;
- Parameters:
index
- The index to set the value at.value
- The replica to set.- Returns:
- This builder for chaining.
-
addReplica
public DataFormats.UnderreplicatedLedgerFormat.Builder addReplica(java.lang.String value)
repeated string replica = 1;
- Parameters:
value
- The replica to add.- Returns:
- This builder for chaining.
-
addAllReplica
public DataFormats.UnderreplicatedLedgerFormat.Builder addAllReplica(java.lang.Iterable<java.lang.String> values)
repeated string replica = 1;
- Parameters:
values
- The replica to add.- Returns:
- This builder for chaining.
-
clearReplica
public DataFormats.UnderreplicatedLedgerFormat.Builder clearReplica()
repeated string replica = 1;
- Returns:
- This builder for chaining.
-
addReplicaBytes
public DataFormats.UnderreplicatedLedgerFormat.Builder addReplicaBytes(com.google.protobuf.ByteString value)
repeated string replica = 1;
- Parameters:
value
- The bytes of the replica to add.- Returns:
- This builder for chaining.
-
hasCtime
public boolean hasCtime()
optional int64 ctime = 2;
- Specified by:
hasCtime
in interfaceDataFormats.UnderreplicatedLedgerFormatOrBuilder
- Returns:
- Whether the ctime field is set.
-
getCtime
public long getCtime()
optional int64 ctime = 2;
- Specified by:
getCtime
in interfaceDataFormats.UnderreplicatedLedgerFormatOrBuilder
- Returns:
- The ctime.
-
setCtime
public DataFormats.UnderreplicatedLedgerFormat.Builder setCtime(long value)
optional int64 ctime = 2;
- Parameters:
value
- The ctime to set.- Returns:
- This builder for chaining.
-
clearCtime
public DataFormats.UnderreplicatedLedgerFormat.Builder clearCtime()
optional int64 ctime = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final DataFormats.UnderreplicatedLedgerFormat.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
mergeUnknownFields
public final DataFormats.UnderreplicatedLedgerFormat.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.UnderreplicatedLedgerFormat.Builder>
-
-