Package org.apache.bookkeeper.proto
Interface DataFormats.LedgerMetadataFormatOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DataFormats.LedgerMetadataFormat
,DataFormats.LedgerMetadataFormat.Builder
- Enclosing class:
- DataFormats
public static interface DataFormats.LedgerMetadataFormatOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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;
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.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;
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];
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasQuorumSize
boolean hasQuorumSize()
required int32 quorumSize = 1;
- Returns:
- Whether the quorumSize field is set.
-
getQuorumSize
int getQuorumSize()
required int32 quorumSize = 1;
- Returns:
- The quorumSize.
-
hasEnsembleSize
boolean hasEnsembleSize()
required int32 ensembleSize = 2;
- Returns:
- Whether the ensembleSize field is set.
-
getEnsembleSize
int getEnsembleSize()
required int32 ensembleSize = 2;
- Returns:
- The ensembleSize.
-
hasLength
boolean hasLength()
required int64 length = 3;
- Returns:
- Whether the length field is set.
-
getLength
long getLength()
required int64 length = 3;
- Returns:
- The length.
-
hasLastEntryId
boolean hasLastEntryId()
optional int64 lastEntryId = 4;
- Returns:
- Whether the lastEntryId field is set.
-
getLastEntryId
long getLastEntryId()
optional int64 lastEntryId = 4;
- Returns:
- The lastEntryId.
-
hasState
boolean hasState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
- Returns:
- Whether the state field is set.
-
getState
DataFormats.LedgerMetadataFormat.State getState()
required .LedgerMetadataFormat.State state = 5 [default = OPEN];
- Returns:
- The state.
-
getSegmentList
java.util.List<DataFormats.LedgerMetadataFormat.Segment> getSegmentList()
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegment
DataFormats.LedgerMetadataFormat.Segment getSegment(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegmentCount
int getSegmentCount()
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegmentOrBuilderList
java.util.List<? extends DataFormats.LedgerMetadataFormat.SegmentOrBuilder> getSegmentOrBuilderList()
repeated .LedgerMetadataFormat.Segment segment = 6;
-
getSegmentOrBuilder
DataFormats.LedgerMetadataFormat.SegmentOrBuilder getSegmentOrBuilder(int index)
repeated .LedgerMetadataFormat.Segment segment = 6;
-
hasDigestType
boolean hasDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
- Returns:
- Whether the digestType field is set.
-
getDigestType
DataFormats.LedgerMetadataFormat.DigestType getDigestType()
optional .LedgerMetadataFormat.DigestType digestType = 7;
- Returns:
- The digestType.
-
hasPassword
boolean hasPassword()
optional bytes password = 8;
- Returns:
- Whether the password field is set.
-
getPassword
com.google.protobuf.ByteString getPassword()
optional bytes password = 8;
- Returns:
- The password.
-
hasAckQuorumSize
boolean hasAckQuorumSize()
optional int32 ackQuorumSize = 9;
- Returns:
- Whether the ackQuorumSize field is set.
-
getAckQuorumSize
int getAckQuorumSize()
optional int32 ackQuorumSize = 9;
- Returns:
- The ackQuorumSize.
-
hasCtime
boolean hasCtime()
optional int64 ctime = 10;
- Returns:
- Whether the ctime field is set.
-
getCtime
long getCtime()
optional int64 ctime = 10;
- Returns:
- The ctime.
-
getCustomMetadataList
java.util.List<DataFormats.LedgerMetadataFormat.cMetadataMapEntry> getCustomMetadataList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadata
DataFormats.LedgerMetadataFormat.cMetadataMapEntry getCustomMetadata(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadataCount
int getCustomMetadataCount()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadataOrBuilderList
java.util.List<? extends DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder> getCustomMetadataOrBuilderList()
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
getCustomMetadataOrBuilder
DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder getCustomMetadataOrBuilder(int index)
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;
-
hasCToken
boolean hasCToken()
optional int64 cToken = 12;
- Returns:
- Whether the cToken field is set.
-
getCToken
long getCToken()
optional int64 cToken = 12;
- Returns:
- The cToken.
-
-