Package org.apache.bookkeeper.proto
Class DataFormats.LedgerMetadataFormat
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.apache.bookkeeper.proto.DataFormats.LedgerMetadataFormat
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,DataFormats.LedgerMetadataFormatOrBuilder
- Enclosing class:
- DataFormats
public static final class DataFormats.LedgerMetadataFormat
extends com.google.protobuf.GeneratedMessage
implements DataFormats.LedgerMetadataFormatOrBuilder
* Metadata format for storing ledger informationProtobuf type
LedgerMetadataFormat- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Metadata format for storing ledger informationstatic final classProtobuf typeLedgerMetadataFormat.cMetadataMapEntrystatic interfacestatic enumProtobuf enumLedgerMetadataFormat.DigestTypestatic final classProtobuf typeLedgerMetadataFormat.Segmentstatic interfacestatic enumProtobuf enumLedgerMetadataFormat.StateNested 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 extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintoptional int32 ackQuorumSize = 9;longgetCtime()optional int64 ctime = 10;longoptional int64 cToken = 12;getCustomMetadata(int index) repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;intrepeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;getCustomMetadataOrBuilder(int index) repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional .LedgerMetadataFormat.DigestType digestType = 7;intrequired int32 ensembleSize = 2;longoptional int64 lastEntryId = 4;longrequired int64 length = 3;com.google.protobuf.Parser<DataFormats.LedgerMetadataFormat>com.google.protobuf.ByteStringoptional bytes password = 8;intrequired int32 quorumSize = 1;getSegment(int index) repeated .LedgerMetadataFormat.Segment segment = 6;intrepeated .LedgerMetadataFormat.Segment segment = 6;repeated .LedgerMetadataFormat.Segment segment = 6;getSegmentOrBuilder(int index) repeated .LedgerMetadataFormat.Segment segment = 6;repeated .LedgerMetadataFormat.Segment segment = 6;intgetState()required .LedgerMetadataFormat.State state = 5 [default = OPEN];booleanoptional int32 ackQuorumSize = 9;booleanhasCtime()optional int64 ctime = 10;booleanoptional int64 cToken = 12;booleanoptional .LedgerMetadataFormat.DigestType digestType = 7;booleanrequired int32 ensembleSize = 2;inthashCode()booleanoptional int64 lastEntryId = 4;booleanrequired int64 length = 3;booleanoptional bytes password = 8;booleanrequired int32 quorumSize = 1;booleanhasState()required .LedgerMetadataFormat.State state = 5 [default = OPEN];protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(DataFormats.LedgerMetadataFormat prototype) protected DataFormats.LedgerMetadataFormat.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(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<DataFormats.LedgerMetadataFormat>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
QUORUMSIZE_FIELD_NUMBER
public static final int QUORUMSIZE_FIELD_NUMBER- See Also:
-
ENSEMBLESIZE_FIELD_NUMBER
public static final int ENSEMBLESIZE_FIELD_NUMBER- See Also:
-
LENGTH_FIELD_NUMBER
public static final int LENGTH_FIELD_NUMBER- See Also:
-
LASTENTRYID_FIELD_NUMBER
public static final int LASTENTRYID_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
SEGMENT_FIELD_NUMBER
public static final int SEGMENT_FIELD_NUMBER- See Also:
-
DIGESTTYPE_FIELD_NUMBER
public static final int DIGESTTYPE_FIELD_NUMBER- See Also:
-
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER- See Also:
-
ACKQUORUMSIZE_FIELD_NUMBER
public static final int ACKQUORUMSIZE_FIELD_NUMBER- See Also:
-
CTIME_FIELD_NUMBER
public static final int CTIME_FIELD_NUMBER- See Also:
-
CUSTOMMETADATA_FIELD_NUMBER
public static final int CUSTOMMETADATA_FIELD_NUMBER- See Also:
-
CTOKEN_FIELD_NUMBER
public static final int CTOKEN_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasQuorumSize
public boolean hasQuorumSize()required int32 quorumSize = 1;- Specified by:
hasQuorumSizein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the quorumSize field is set.
-
getQuorumSize
public int getQuorumSize()required int32 quorumSize = 1;- Specified by:
getQuorumSizein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The quorumSize.
-
hasEnsembleSize
public boolean hasEnsembleSize()required int32 ensembleSize = 2;- Specified by:
hasEnsembleSizein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the ensembleSize field is set.
-
getEnsembleSize
public int getEnsembleSize()required int32 ensembleSize = 2;- Specified by:
getEnsembleSizein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The ensembleSize.
-
hasLength
public boolean hasLength()required int64 length = 3;- Specified by:
hasLengthin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the length field is set.
-
getLength
public long getLength()required int64 length = 3;- Specified by:
getLengthin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The length.
-
hasLastEntryId
public boolean hasLastEntryId()optional int64 lastEntryId = 4;- Specified by:
hasLastEntryIdin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the lastEntryId field is set.
-
getLastEntryId
public long getLastEntryId()optional int64 lastEntryId = 4;- Specified by:
getLastEntryIdin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The lastEntryId.
-
hasState
public boolean hasState()required .LedgerMetadataFormat.State state = 5 [default = OPEN];- Specified by:
hasStatein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the state field is set.
-
getState
required .LedgerMetadataFormat.State state = 5 [default = OPEN];- Specified by:
getStatein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The state.
-
getSegmentList
repeated .LedgerMetadataFormat.Segment segment = 6;- Specified by:
getSegmentListin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegmentOrBuilderList
repeated .LedgerMetadataFormat.Segment segment = 6;- Specified by:
getSegmentOrBuilderListin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegmentCount
public int getSegmentCount()repeated .LedgerMetadataFormat.Segment segment = 6;- Specified by:
getSegmentCountin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegment
repeated .LedgerMetadataFormat.Segment segment = 6;- Specified by:
getSegmentin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getSegmentOrBuilder
repeated .LedgerMetadataFormat.Segment segment = 6;- Specified by:
getSegmentOrBuilderin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
hasDigestType
public boolean hasDigestType()optional .LedgerMetadataFormat.DigestType digestType = 7;- Specified by:
hasDigestTypein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the digestType field is set.
-
getDigestType
optional .LedgerMetadataFormat.DigestType digestType = 7;- Specified by:
getDigestTypein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The digestType.
-
hasPassword
public boolean hasPassword()optional bytes password = 8;- Specified by:
hasPasswordin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the password field is set.
-
getPassword
public com.google.protobuf.ByteString getPassword()optional bytes password = 8;- Specified by:
getPasswordin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The password.
-
hasAckQuorumSize
public boolean hasAckQuorumSize()optional int32 ackQuorumSize = 9;- Specified by:
hasAckQuorumSizein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the ackQuorumSize field is set.
-
getAckQuorumSize
public int getAckQuorumSize()optional int32 ackQuorumSize = 9;- Specified by:
getAckQuorumSizein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The ackQuorumSize.
-
hasCtime
public boolean hasCtime()optional int64 ctime = 10;- Specified by:
hasCtimein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the ctime field is set.
-
getCtime
public long getCtime()optional int64 ctime = 10;- Specified by:
getCtimein interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The ctime.
-
getCustomMetadataList
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;- Specified by:
getCustomMetadataListin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadataOrBuilderList
public List<? extends DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder> getCustomMetadataOrBuilderList()repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;- Specified by:
getCustomMetadataOrBuilderListin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadataCount
public int getCustomMetadataCount()repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;- Specified by:
getCustomMetadataCountin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadata
repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;- Specified by:
getCustomMetadatain interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
getCustomMetadataOrBuilder
public DataFormats.LedgerMetadataFormat.cMetadataMapEntryOrBuilder getCustomMetadataOrBuilder(int index) repeated .LedgerMetadataFormat.cMetadataMapEntry customMetadata = 11;- Specified by:
getCustomMetadataOrBuilderin interfaceDataFormats.LedgerMetadataFormatOrBuilder
-
hasCToken
public boolean hasCToken()optional int64 cToken = 12;- Specified by:
hasCTokenin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- Whether the cToken field is set.
-
getCToken
public long getCToken()optional int64 cToken = 12;- Specified by:
getCTokenin interfaceDataFormats.LedgerMetadataFormatOrBuilder- Returns:
- The cToken.
-
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 DataFormats.LedgerMetadataFormat parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DataFormats.LedgerMetadataFormat parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DataFormats.LedgerMetadataFormat parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DataFormats.LedgerMetadataFormat parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DataFormats.LedgerMetadataFormat 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 DataFormats.LedgerMetadataFormat.Builder newBuilder(DataFormats.LedgerMetadataFormat prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataFormats.LedgerMetadataFormat.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
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
-