Class CommitCursorRequest (1.4.12)

public final class CommitCursorRequest extends GeneratedMessageV3 implements CommitCursorRequestOrBuilder

Request for CommitCursor.

Protobuf type google.cloud.pubsublite.v1.CommitCursorRequest

Static Fields

CURSOR_FIELD_NUMBER

public static final int CURSOR_FIELD_NUMBER
Field Value
TypeDescription
int

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIPTION_FIELD_NUMBER

public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CommitCursorRequest getDefaultInstance()
Returns
TypeDescription
CommitCursorRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CommitCursorRequest.Builder newBuilder()
Returns
TypeDescription
CommitCursorRequest.Builder

newBuilder(CommitCursorRequest prototype)

public static CommitCursorRequest.Builder newBuilder(CommitCursorRequest prototype)
Parameter
NameDescription
prototypeCommitCursorRequest
Returns
TypeDescription
CommitCursorRequest.Builder

parseDelimitedFrom(InputStream input)

public static CommitCursorRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitCursorRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CommitCursorRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CommitCursorRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CommitCursorRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CommitCursorRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CommitCursorRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitCursorRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CommitCursorRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitCursorRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CommitCursorRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CommitCursorRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitCursorRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CommitCursorRequest> parser()
Returns
TypeDescription
Parser<CommitCursorRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCursor()

public Cursor getCursor()

The new value for the committed cursor.

.google.cloud.pubsublite.v1.Cursor cursor = 3;

Returns
TypeDescription
Cursor

The cursor.

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

The new value for the committed cursor.

.google.cloud.pubsublite.v1.Cursor cursor = 3;

Returns
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public CommitCursorRequest getDefaultInstanceForType()
Returns
TypeDescription
CommitCursorRequest

getParserForType()

public Parser<CommitCursorRequest> getParserForType()
Returns
TypeDescription
Parser<CommitCursorRequest>
Overrides

getPartition()

public long getPartition()

The partition for which to update the cursor. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
TypeDescription
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubscription()

public String getSubscription()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
ByteString

The bytes for subscription.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCursor()

public boolean hasCursor()

The new value for the committed cursor.

.google.cloud.pubsublite.v1.Cursor cursor = 3;

Returns
TypeDescription
boolean

Whether the cursor field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CommitCursorRequest.Builder newBuilderForType()
Returns
TypeDescription
CommitCursorRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CommitCursorRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CommitCursorRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CommitCursorRequest.Builder toBuilder()
Returns
TypeDescription
CommitCursorRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException