Class MLDataFormats.ManagedCursorInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.apache.bookkeeper.mledger.proto.MLDataFormats.ManagedCursorInfo
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,MLDataFormats.ManagedCursorInfoOrBuilder
- Enclosing class:
- MLDataFormats
public static final class MLDataFormats.ManagedCursorInfo
extends com.google.protobuf.GeneratedMessageV3
implements MLDataFormats.ManagedCursorInfoOrBuilder
Protobuf type
ManagedCursorInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeManagedCursorInfoNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested 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 com.google.protobuf.Parser<MLDataFormats.ManagedCursorInfo>Deprecated.static final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBatchedEntryDeletionIndexInfo(int index) Store which index in the batch message has been deletedintStore which index in the batch message has been deletedStore which index in the batch message has been deletedgetBatchedEntryDeletionIndexInfoOrBuilder(int index) Store which index in the batch message has been deletedStore which index in the batch message has been deletedgetCursorProperties(int index) Additional custom properties associated with the cursorintAdditional custom properties associated with the cursorAdditional custom properties associated with the cursorgetCursorPropertiesOrBuilder(int index) Additional custom properties associated with the cursorList<? extends MLDataFormats.StringPropertyOrBuilder>Additional custom properties associated with the cursorlongIf the ledger id is -1, then the mark-delete position is the one from the (ledgerId, entryId) snapshot belowstatic final com.google.protobuf.Descriptors.DescriptorgetIndividualDeletedMessages(int index) repeated .MessageRange individualDeletedMessages = 4;intrepeated .MessageRange individualDeletedMessages = 4;repeated .MessageRange individualDeletedMessages = 4;getIndividualDeletedMessagesOrBuilder(int index) repeated .MessageRange individualDeletedMessages = 4;List<? extends MLDataFormats.MessageRangeOrBuilder>repeated .MessageRange individualDeletedMessages = 4;longoptional int64 lastActive = 6;longoptional int64 markDeleteEntryId = 3;longLast snapshot of the mark-delete positioncom.google.protobuf.Parser<MLDataFormats.ManagedCursorInfo>getProperties(int index) Additional custom properties associated with the current cursor positionintAdditional custom properties associated with the current cursor positionAdditional custom properties associated with the current cursor positiongetPropertiesOrBuilder(int index) Additional custom properties associated with the current cursor positionList<? extends MLDataFormats.LongPropertyOrBuilder>Additional custom properties associated with the current cursor positionintfinal com.google.protobuf.UnknownFieldSetbooleanIf the ledger id is -1, then the mark-delete position is the one from the (ledgerId, entryId) snapshot belowinthashCode()booleanoptional int64 lastActive = 6;booleanoptional int64 markDeleteEntryId = 3;booleanLast snapshot of the mark-delete positionprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(MLDataFormats.ManagedCursorInfo prototype) protected MLDataFormats.ManagedCursorInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) 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<MLDataFormats.ManagedCursorInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, 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, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
CURSORSLEDGERID_FIELD_NUMBER
public static final int CURSORSLEDGERID_FIELD_NUMBER- See Also:
-
MARKDELETELEDGERID_FIELD_NUMBER
public static final int MARKDELETELEDGERID_FIELD_NUMBER- See Also:
-
MARKDELETEENTRYID_FIELD_NUMBER
public static final int MARKDELETEENTRYID_FIELD_NUMBER- See Also:
-
INDIVIDUALDELETEDMESSAGES_FIELD_NUMBER
public static final int INDIVIDUALDELETEDMESSAGES_FIELD_NUMBER- See Also:
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER- See Also:
-
LASTACTIVE_FIELD_NUMBER
public static final int LASTACTIVE_FIELD_NUMBER- See Also:
-
BATCHEDENTRYDELETIONINDEXINFO_FIELD_NUMBER
public static final int BATCHEDENTRYDELETIONINDEXINFO_FIELD_NUMBER- See Also:
-
CURSORPROPERTIES_FIELD_NUMBER
public static final int CURSORPROPERTIES_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasCursorsLedgerId
public boolean hasCursorsLedgerId()If the ledger id is -1, then the mark-delete position is the one from the (ledgerId, entryId) snapshot below
required int64 cursorsLedgerId = 1;- Specified by:
hasCursorsLedgerIdin interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- Whether the cursorsLedgerId field is set.
-
getCursorsLedgerId
public long getCursorsLedgerId()If the ledger id is -1, then the mark-delete position is the one from the (ledgerId, entryId) snapshot below
required int64 cursorsLedgerId = 1;- Specified by:
getCursorsLedgerIdin interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- The cursorsLedgerId.
-
hasMarkDeleteLedgerId
public boolean hasMarkDeleteLedgerId()Last snapshot of the mark-delete position
optional int64 markDeleteLedgerId = 2;- Specified by:
hasMarkDeleteLedgerIdin interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- Whether the markDeleteLedgerId field is set.
-
getMarkDeleteLedgerId
public long getMarkDeleteLedgerId()Last snapshot of the mark-delete position
optional int64 markDeleteLedgerId = 2;- Specified by:
getMarkDeleteLedgerIdin interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- The markDeleteLedgerId.
-
hasMarkDeleteEntryId
public boolean hasMarkDeleteEntryId()optional int64 markDeleteEntryId = 3;- Specified by:
hasMarkDeleteEntryIdin interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- Whether the markDeleteEntryId field is set.
-
getMarkDeleteEntryId
public long getMarkDeleteEntryId()optional int64 markDeleteEntryId = 3;- Specified by:
getMarkDeleteEntryIdin interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- The markDeleteEntryId.
-
getIndividualDeletedMessagesList
repeated .MessageRange individualDeletedMessages = 4;- Specified by:
getIndividualDeletedMessagesListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getIndividualDeletedMessagesOrBuilderList
public List<? extends MLDataFormats.MessageRangeOrBuilder> getIndividualDeletedMessagesOrBuilderList()repeated .MessageRange individualDeletedMessages = 4;- Specified by:
getIndividualDeletedMessagesOrBuilderListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getIndividualDeletedMessagesCount
public int getIndividualDeletedMessagesCount()repeated .MessageRange individualDeletedMessages = 4;- Specified by:
getIndividualDeletedMessagesCountin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getIndividualDeletedMessages
repeated .MessageRange individualDeletedMessages = 4;- Specified by:
getIndividualDeletedMessagesin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getIndividualDeletedMessagesOrBuilder
repeated .MessageRange individualDeletedMessages = 4;- Specified by:
getIndividualDeletedMessagesOrBuilderin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getPropertiesList
Additional custom properties associated with the current cursor position
repeated .LongProperty properties = 5;- Specified by:
getPropertiesListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getPropertiesOrBuilderList
Additional custom properties associated with the current cursor position
repeated .LongProperty properties = 5;- Specified by:
getPropertiesOrBuilderListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getPropertiesCount
public int getPropertiesCount()Additional custom properties associated with the current cursor position
repeated .LongProperty properties = 5;- Specified by:
getPropertiesCountin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getProperties
Additional custom properties associated with the current cursor position
repeated .LongProperty properties = 5;- Specified by:
getPropertiesin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getPropertiesOrBuilder
Additional custom properties associated with the current cursor position
repeated .LongProperty properties = 5;- Specified by:
getPropertiesOrBuilderin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
hasLastActive
public boolean hasLastActive()optional int64 lastActive = 6;- Specified by:
hasLastActivein interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- Whether the lastActive field is set.
-
getLastActive
public long getLastActive()optional int64 lastActive = 6;- Specified by:
getLastActivein interfaceMLDataFormats.ManagedCursorInfoOrBuilder- Returns:
- The lastActive.
-
getBatchedEntryDeletionIndexInfoList
Store which index in the batch message has been deleted
repeated .BatchedEntryDeletionIndexInfo batchedEntryDeletionIndexInfo = 7;- Specified by:
getBatchedEntryDeletionIndexInfoListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getBatchedEntryDeletionIndexInfoOrBuilderList
public List<? extends MLDataFormats.BatchedEntryDeletionIndexInfoOrBuilder> getBatchedEntryDeletionIndexInfoOrBuilderList()Store which index in the batch message has been deleted
repeated .BatchedEntryDeletionIndexInfo batchedEntryDeletionIndexInfo = 7;- Specified by:
getBatchedEntryDeletionIndexInfoOrBuilderListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getBatchedEntryDeletionIndexInfoCount
public int getBatchedEntryDeletionIndexInfoCount()Store which index in the batch message has been deleted
repeated .BatchedEntryDeletionIndexInfo batchedEntryDeletionIndexInfo = 7;- Specified by:
getBatchedEntryDeletionIndexInfoCountin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getBatchedEntryDeletionIndexInfo
Store which index in the batch message has been deleted
repeated .BatchedEntryDeletionIndexInfo batchedEntryDeletionIndexInfo = 7;- Specified by:
getBatchedEntryDeletionIndexInfoin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getBatchedEntryDeletionIndexInfoOrBuilder
public MLDataFormats.BatchedEntryDeletionIndexInfoOrBuilder getBatchedEntryDeletionIndexInfoOrBuilder(int index) Store which index in the batch message has been deleted
repeated .BatchedEntryDeletionIndexInfo batchedEntryDeletionIndexInfo = 7;- Specified by:
getBatchedEntryDeletionIndexInfoOrBuilderin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getCursorPropertiesList
Additional custom properties associated with the cursor
repeated .StringProperty cursorProperties = 8;- Specified by:
getCursorPropertiesListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getCursorPropertiesOrBuilderList
Additional custom properties associated with the cursor
repeated .StringProperty cursorProperties = 8;- Specified by:
getCursorPropertiesOrBuilderListin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getCursorPropertiesCount
public int getCursorPropertiesCount()Additional custom properties associated with the cursor
repeated .StringProperty cursorProperties = 8;- Specified by:
getCursorPropertiesCountin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getCursorProperties
Additional custom properties associated with the cursor
repeated .StringProperty cursorProperties = 8;- Specified by:
getCursorPropertiesin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
getCursorPropertiesOrBuilder
Additional custom properties associated with the cursor
repeated .StringProperty cursorProperties = 8;- Specified by:
getCursorPropertiesOrBuilderin interfaceMLDataFormats.ManagedCursorInfoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
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 MLDataFormats.ManagedCursorInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static MLDataFormats.ManagedCursorInfo parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static MLDataFormats.ManagedCursorInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MLDataFormats.ManagedCursorInfo 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 MLDataFormats.ManagedCursorInfo.Builder newBuilder(MLDataFormats.ManagedCursorInfo prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MLDataFormats.ManagedCursorInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-