Package org.apache.bookkeeper.proto
Class DataFormats.LedgerMetadataFormat.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.LedgerMetadataFormat.Builder>
-
- org.apache.bookkeeper.proto.DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormatOrBuilder
- Enclosing class:
- DataFormats.LedgerMetadataFormat
public static final class DataFormats.LedgerMetadataFormat.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.LedgerMetadataFormat.Builder> implements DataFormats.LedgerMetadataFormatOrBuilder
Metadata format for storing ledger information
Protobuf typeLedgerMetadataFormat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormats.LedgerMetadataFormat.Builder
addAllCustomMetadata(java.lang.Iterable<? extends DataFormats.LedgerMetadataFormat.cMetadataMapEntry> values)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
addAllSegment(java.lang.Iterable<? extends DataFormats.LedgerMetadataFormat.Segment> values)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
addCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry value)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
addCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder builderForValue)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
addCustomMetadata(DataFormats.LedgerMetadataFormat.cMetadataMapEntry value)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
addCustomMetadata(DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder builderForValue)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder
addCustomMetadataBuilder()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder
addCustomMetadataBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.LedgerMetadataFormat.Builder
addSegment(int index, DataFormats.LedgerMetadataFormat.Segment value)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
addSegment(int index, DataFormats.LedgerMetadataFormat.Segment.Builder builderForValue)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
addSegment(DataFormats.LedgerMetadataFormat.Segment value)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
addSegment(DataFormats.LedgerMetadataFormat.Segment.Builder builderForValue)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Segment.Builder
addSegmentBuilder()
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Segment.Builder
addSegmentBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat
build()
DataFormats.LedgerMetadataFormat
buildPartial()
DataFormats.LedgerMetadataFormat.Builder
clear()
DataFormats.LedgerMetadataFormat.Builder
clearAckQuorumSize()
optional int32 ackQuorumSize = 9;
DataFormats.LedgerMetadataFormat.Builder
clearCtime()
optional int64 ctime = 10;
DataFormats.LedgerMetadataFormat.Builder
clearCToken()
optional int64 cToken = 12;
DataFormats.LedgerMetadataFormat.Builder
clearCustomMetadata()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
clearDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
DataFormats.LedgerMetadataFormat.Builder
clearEnsembleSize()
required int32 ensembleSize = 2;
DataFormats.LedgerMetadataFormat.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DataFormats.LedgerMetadataFormat.Builder
clearLastEntryId()
optional int64 lastEntryId = 4;
DataFormats.LedgerMetadataFormat.Builder
clearLength()
required int64 length = 3;
DataFormats.LedgerMetadataFormat.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DataFormats.LedgerMetadataFormat.Builder
clearPassword()
optional bytes password = 8;
DataFormats.LedgerMetadataFormat.Builder
clearQuorumSize()
required int32 quorumSize = 1;
DataFormats.LedgerMetadataFormat.Builder
clearSegment()
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
clearState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
DataFormats.LedgerMetadataFormat.Builder
clone()
int
getAckQuorumSize()
optional int32 ackQuorumSize = 9;
long
getCtime()
optional int64 ctime = 10;
long
getCToken()
optional int64 cToken = 12;
DataFormats.LedgerMetadataFormat.cMetadataMapEntry
getCustomMetadata(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder
getCustomMetadataBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
java.util.List<DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder>
getCustomMetadataBuilderList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
int
getCustomMetadataCount()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
java.util.List<DataFormats.LedgerMetadataFormat.cMetadataMapEntry>
getCustomMetadataList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder
getCustomMetadataOrBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
java.util.List<? extends DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder>
getCustomMetadataOrBuilderList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
DataFormats.LedgerMetadataFormat.DigestType
getDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
int
getEnsembleSize()
required int32 ensembleSize = 2;
long
getLastEntryId()
optional int64 lastEntryId = 4;
long
getLength()
required int64 length = 3;
com.google.protobuf.ByteString
getPassword()
optional bytes password = 8;
int
getQuorumSize()
required int32 quorumSize = 1;
DataFormats.LedgerMetadataFormat.Segment
getSegment(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Segment.Builder
getSegmentBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
java.util.List<DataFormats.LedgerMetadataFormat.Segment.Builder>
getSegmentBuilderList()
repeated .LedgerMetadataFormat.Segment segment = 6;
int
getSegmentCount()
repeated .LedgerMetadataFormat.Segment segment = 6;
java.util.List<DataFormats.LedgerMetadataFormat.Segment>
getSegmentList()
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.SegmentOrBuilder
getSegmentOrBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
java.util.List<? extends DataFormats.LedgerMetadataFormat.SegmentOrBuilder>
getSegmentOrBuilderList()
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.State
getState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
boolean
hasAckQuorumSize()
optional int32 ackQuorumSize = 9;
boolean
hasCtime()
optional int64 ctime = 10;
boolean
hasCToken()
optional int64 cToken = 12;
boolean
hasDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
boolean
hasEnsembleSize()
required int32 ensembleSize = 2;
boolean
hasLastEntryId()
optional int64 lastEntryId = 4;
boolean
hasLength()
required int64 length = 3;
boolean
hasPassword()
optional bytes password = 8;
boolean
hasQuorumSize()
required int32 quorumSize = 1;
boolean
hasState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DataFormats.LedgerMetadataFormat.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DataFormats.LedgerMetadataFormat.Builder
mergeFrom(com.google.protobuf.Message other)
DataFormats.LedgerMetadataFormat.Builder
mergeFrom(DataFormats.LedgerMetadataFormat other)
DataFormats.LedgerMetadataFormat.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DataFormats.LedgerMetadataFormat.Builder
removeCustomMetadata(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
removeSegment(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
setAckQuorumSize(int value)
optional int32 ackQuorumSize = 9;
DataFormats.LedgerMetadataFormat.Builder
setCtime(long value)
optional int64 ctime = 10;
DataFormats.LedgerMetadataFormat.Builder
setCToken(long value)
optional int64 cToken = 12;
DataFormats.LedgerMetadataFormat.Builder
setCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry value)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
setCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder builderForValue)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
DataFormats.LedgerMetadataFormat.Builder
setDigestType(DataFormats.LedgerMetadataFormat.DigestType value)
optional .LedgerMetadataFormat.DigestType digestType = 7;
DataFormats.LedgerMetadataFormat.Builder
setEnsembleSize(int value)
required int32 ensembleSize = 2;
DataFormats.LedgerMetadataFormat.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.LedgerMetadataFormat.Builder
setLastEntryId(long value)
optional int64 lastEntryId = 4;
DataFormats.LedgerMetadataFormat.Builder
setLength(long value)
required int64 length = 3;
DataFormats.LedgerMetadataFormat.Builder
setPassword(com.google.protobuf.ByteString value)
optional bytes password = 8;
DataFormats.LedgerMetadataFormat.Builder
setQuorumSize(int value)
required int32 quorumSize = 1;
DataFormats.LedgerMetadataFormat.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DataFormats.LedgerMetadataFormat.Builder
setSegment(int index, DataFormats.LedgerMetadataFormat.Segment value)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
setSegment(int index, DataFormats.LedgerMetadataFormat.Segment.Builder builderForValue)
repeated .LedgerMetadataFormat.Segment segment = 6;
DataFormats.LedgerMetadataFormat.Builder
setState(DataFormats.LedgerMetadataFormat.State value)
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
clear
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
getDefaultInstanceForType
public DataFormats.LedgerMetadataFormat getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataFormats.LedgerMetadataFormat build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataFormats.LedgerMetadataFormat buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
setField
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
clearField
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
clearOneof
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
setRepeatedField
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
addRepeatedField
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
mergeFrom
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
mergeFrom
public DataFormats.LedgerMetadataFormat.Builder mergeFrom(DataFormats.LedgerMetadataFormat other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.LedgerMetadataFormat.Builder>
-
mergeFrom
public DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
- Throws:
java.io.IOException
-
hasQuorumSize
public boolean hasQuorumSize()
required int32 quorumSize = 1;
- Specified by:
hasQuorumSize
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the quorumSize field is set.
-
getQuorumSize
public int getQuorumSize()
required int32 quorumSize = 1;
- Specified by:
getQuorumSize
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The quorumSize.
-
setQuorumSize
public DataFormats.LedgerMetadataFormat.Builder setQuorumSize(int value)
required int32 quorumSize = 1;
- Parameters:
value
- The quorumSize to set.- Returns:
- This builder for chaining.
-
clearQuorumSize
public DataFormats.LedgerMetadataFormat.Builder clearQuorumSize()
required int32 quorumSize = 1;
- Returns:
- This builder for chaining.
-
hasEnsembleSize
public boolean hasEnsembleSize()
required int32 ensembleSize = 2;
- Specified by:
hasEnsembleSize
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the ensembleSize field is set.
-
getEnsembleSize
public int getEnsembleSize()
required int32 ensembleSize = 2;
- Specified by:
getEnsembleSize
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The ensembleSize.
-
setEnsembleSize
public DataFormats.LedgerMetadataFormat.Builder setEnsembleSize(int value)
required int32 ensembleSize = 2;
- Parameters:
value
- The ensembleSize to set.- Returns:
- This builder for chaining.
-
clearEnsembleSize
public DataFormats.LedgerMetadataFormat.Builder clearEnsembleSize()
required int32 ensembleSize = 2;
- Returns:
- This builder for chaining.
-
hasLength
public boolean hasLength()
required int64 length = 3;
- Specified by:
hasLength
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the length field is set.
-
getLength
public long getLength()
required int64 length = 3;
- Specified by:
getLength
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The length.
-
setLength
public DataFormats.LedgerMetadataFormat.Builder setLength(long value)
required int64 length = 3;
- Parameters:
value
- The length to set.- Returns:
- This builder for chaining.
-
clearLength
public DataFormats.LedgerMetadataFormat.Builder clearLength()
required int64 length = 3;
- Returns:
- This builder for chaining.
-
hasLastEntryId
public boolean hasLastEntryId()
optional int64 lastEntryId = 4;
- Specified by:
hasLastEntryId
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the lastEntryId field is set.
-
getLastEntryId
public long getLastEntryId()
optional int64 lastEntryId = 4;
- Specified by:
getLastEntryId
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The lastEntryId.
-
setLastEntryId
public DataFormats.LedgerMetadataFormat.Builder setLastEntryId(long value)
optional int64 lastEntryId = 4;
- Parameters:
value
- The lastEntryId to set.- Returns:
- This builder for chaining.
-
clearLastEntryId
public DataFormats.LedgerMetadataFormat.Builder clearLastEntryId()
optional int64 lastEntryId = 4;
- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
- Specified by:
hasState
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the state field is set.
-
getState
public DataFormats.LedgerMetadataFormat.State getState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
- Specified by:
getState
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The state.
-
setState
public DataFormats.LedgerMetadataFormat.Builder setState(DataFormats.LedgerMetadataFormat.State value)
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public DataFormats.LedgerMetadataFormat.Builder clearState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
- Returns:
- This builder for chaining.
-
getSegmentList
public java.util.List<DataFormats.LedgerMetadataFormat.Segment> getSegmentList()
repeated .LedgerMetadataFormat.Segment segment = 6;
- Specified by:
getSegmentList
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegmentCount
public int getSegmentCount()
repeated .LedgerMetadataFormat.Segment segment = 6;
- Specified by:
getSegmentCount
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegment
public DataFormats.LedgerMetadataFormat.Segment getSegment(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
- Specified by:
getSegment
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
setSegment
public DataFormats.LedgerMetadataFormat.Builder setSegment(int index, DataFormats.LedgerMetadataFormat.Segment value)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
setSegment
public DataFormats.LedgerMetadataFormat.Builder setSegment(int index, DataFormats.LedgerMetadataFormat.Segment.Builder builderForValue)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
addSegment
public DataFormats.LedgerMetadataFormat.Builder addSegment(DataFormats.LedgerMetadataFormat.Segment value)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
addSegment
public DataFormats.LedgerMetadataFormat.Builder addSegment(int index, DataFormats.LedgerMetadataFormat.Segment value)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
addSegment
public DataFormats.LedgerMetadataFormat.Builder addSegment(DataFormats.LedgerMetadataFormat.Segment.Builder builderForValue)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
addSegment
public DataFormats.LedgerMetadataFormat.Builder addSegment(int index, DataFormats.LedgerMetadataFormat.Segment.Builder builderForValue)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
addAllSegment
public DataFormats.LedgerMetadataFormat.Builder addAllSegment(java.lang.Iterable<? extends DataFormats.LedgerMetadataFormat.Segment> values)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
clearSegment
public DataFormats.LedgerMetadataFormat.Builder clearSegment()
repeated .LedgerMetadataFormat.Segment segment = 6;
-
removeSegment
public DataFormats.LedgerMetadataFormat.Builder removeSegment(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegmentBuilder
public DataFormats.LedgerMetadataFormat.Segment.Builder getSegmentBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegmentOrBuilder
public DataFormats.LedgerMetadataFormat.SegmentOrBuilder getSegmentOrBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
- Specified by:
getSegmentOrBuilder
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegmentOrBuilderList
public java.util.List<? extends DataFormats.LedgerMetadataFormat.SegmentOrBuilder> getSegmentOrBuilderList()
repeated .LedgerMetadataFormat.Segment segment = 6;
- Specified by:
getSegmentOrBuilderList
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
addSegmentBuilder
public DataFormats.LedgerMetadataFormat.Segment.Builder addSegmentBuilder()
repeated .LedgerMetadataFormat.Segment segment = 6;
-
addSegmentBuilder
public DataFormats.LedgerMetadataFormat.Segment.Builder addSegmentBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegmentBuilderList
public java.util.List<DataFormats.LedgerMetadataFormat.Segment.Builder> getSegmentBuilderList()
repeated .LedgerMetadataFormat.Segment segment = 6;
-
hasDigestType
public boolean hasDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
- Specified by:
hasDigestType
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the digestType field is set.
-
getDigestType
public DataFormats.LedgerMetadataFormat.DigestType getDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
- Specified by:
getDigestType
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The digestType.
-
setDigestType
public DataFormats.LedgerMetadataFormat.Builder setDigestType(DataFormats.LedgerMetadataFormat.DigestType value)
optional .LedgerMetadataFormat.DigestType digestType = 7;
- Parameters:
value
- The digestType to set.- Returns:
- This builder for chaining.
-
clearDigestType
public DataFormats.LedgerMetadataFormat.Builder clearDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
- Returns:
- This builder for chaining.
-
hasPassword
public boolean hasPassword()
optional bytes password = 8;
- Specified by:
hasPassword
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the password field is set.
-
getPassword
public com.google.protobuf.ByteString getPassword()
optional bytes password = 8;
- Specified by:
getPassword
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The password.
-
setPassword
public DataFormats.LedgerMetadataFormat.Builder setPassword(com.google.protobuf.ByteString value)
optional bytes password = 8;
- Parameters:
value
- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
public DataFormats.LedgerMetadataFormat.Builder clearPassword()
optional bytes password = 8;
- Returns:
- This builder for chaining.
-
hasAckQuorumSize
public boolean hasAckQuorumSize()
optional int32 ackQuorumSize = 9;
- Specified by:
hasAckQuorumSize
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the ackQuorumSize field is set.
-
getAckQuorumSize
public int getAckQuorumSize()
optional int32 ackQuorumSize = 9;
- Specified by:
getAckQuorumSize
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The ackQuorumSize.
-
setAckQuorumSize
public DataFormats.LedgerMetadataFormat.Builder setAckQuorumSize(int value)
optional int32 ackQuorumSize = 9;
- Parameters:
value
- The ackQuorumSize to set.- Returns:
- This builder for chaining.
-
clearAckQuorumSize
public DataFormats.LedgerMetadataFormat.Builder clearAckQuorumSize()
optional int32 ackQuorumSize = 9;
- Returns:
- This builder for chaining.
-
hasCtime
public boolean hasCtime()
optional int64 ctime = 10;
- Specified by:
hasCtime
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the ctime field is set.
-
getCtime
public long getCtime()
optional int64 ctime = 10;
- Specified by:
getCtime
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The ctime.
-
setCtime
public DataFormats.LedgerMetadataFormat.Builder setCtime(long value)
optional int64 ctime = 10;
- Parameters:
value
- The ctime to set.- Returns:
- This builder for chaining.
-
clearCtime
public DataFormats.LedgerMetadataFormat.Builder clearCtime()
optional int64 ctime = 10;
- Returns:
- This builder for chaining.
-
getCustomMetadataList
public java.util.List<DataFormats.LedgerMetadataFormat.cMetadataMapEntry> getCustomMetadataList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
- Specified by:
getCustomMetadataList
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadataCount
public int getCustomMetadataCount()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
- Specified by:
getCustomMetadataCount
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadata
public DataFormats.LedgerMetadataFormat.cMetadataMapEntry getCustomMetadata(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
- Specified by:
getCustomMetadata
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
setCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder setCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry value)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
setCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder setCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder builderForValue)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
addCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder addCustomMetadata(DataFormats.LedgerMetadataFormat.cMetadataMapEntry value)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
addCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder addCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry value)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
addCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder addCustomMetadata(DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder builderForValue)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
addCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder addCustomMetadata(int index, DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder builderForValue)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
addAllCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder addAllCustomMetadata(java.lang.Iterable<? extends DataFormats.LedgerMetadataFormat.cMetadataMapEntry> values)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
clearCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder clearCustomMetadata()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
removeCustomMetadata
public DataFormats.LedgerMetadataFormat.Builder removeCustomMetadata(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadataBuilder
public DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder getCustomMetadataBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadataOrBuilder
public DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder getCustomMetadataOrBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
- Specified by:
getCustomMetadataOrBuilder
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadataOrBuilderList
public java.util.List<? extends DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder> getCustomMetadataOrBuilderList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
- Specified by:
getCustomMetadataOrBuilderList
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
addCustomMetadataBuilder
public DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder addCustomMetadataBuilder()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
addCustomMetadataBuilder
public DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder addCustomMetadataBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadataBuilderList
public java.util.List<DataFormats.LedgerMetadataFormat.cMetadataMapEntry.Builder> getCustomMetadataBuilderList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
hasCToken
public boolean hasCToken()
optional int64 cToken = 12;
- Specified by:
hasCToken
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- Whether the cToken field is set.
-
getCToken
public long getCToken()
optional int64 cToken = 12;
- Specified by:
getCToken
in interfaceDataFormats.LedgerMetadataFormatOrBuilder
- Returns:
- The cToken.
-
setCToken
public DataFormats.LedgerMetadataFormat.Builder setCToken(long value)
optional int64 cToken = 12;
- Parameters:
value
- The cToken to set.- Returns:
- This builder for chaining.
-
clearCToken
public DataFormats.LedgerMetadataFormat.Builder clearCToken()
optional int64 cToken = 12;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
mergeUnknownFields
public final DataFormats.LedgerMetadataFormat.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.LedgerMetadataFormat.Builder>
-
-