Class StreamingCommitCursorRequest (1.10.0)

public final class StreamingCommitCursorRequest extends GeneratedMessageV3 implements StreamingCommitCursorRequestOrBuilder

A request sent from the client to the server on a stream.

Protobuf type google.cloud.pubsublite.v1.StreamingCommitCursorRequest

Static Fields

COMMIT_FIELD_NUMBER

public static final int COMMIT_FIELD_NUMBER
Field Value
TypeDescription
int

INITIAL_FIELD_NUMBER

public static final int INITIAL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StreamingCommitCursorRequest getDefaultInstance()
Returns
TypeDescription
StreamingCommitCursorRequest

getDescriptor()

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

newBuilder()

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

newBuilder(StreamingCommitCursorRequest prototype)

public static StreamingCommitCursorRequest.Builder newBuilder(StreamingCommitCursorRequest prototype)
Parameter
NameDescription
prototypeStreamingCommitCursorRequest
Returns
TypeDescription
StreamingCommitCursorRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCommit()

public SequencedCommitCursorRequest getCommit()

Request to commit a new cursor value.

.google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2;

Returns
TypeDescription
SequencedCommitCursorRequest

The commit.

getCommitOrBuilder()

public SequencedCommitCursorRequestOrBuilder getCommitOrBuilder()

Request to commit a new cursor value.

.google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2;

Returns
TypeDescription
SequencedCommitCursorRequestOrBuilder

getDefaultInstanceForType()

public StreamingCommitCursorRequest getDefaultInstanceForType()
Returns
TypeDescription
StreamingCommitCursorRequest

getInitial()

public InitialCommitCursorRequest getInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1;

Returns
TypeDescription
InitialCommitCursorRequest

The initial.

getInitialOrBuilder()

public InitialCommitCursorRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1;

Returns
TypeDescription
InitialCommitCursorRequestOrBuilder

getParserForType()

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

getRequestCase()

public StreamingCommitCursorRequest.RequestCase getRequestCase()
Returns
TypeDescription
StreamingCommitCursorRequest.RequestCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCommit()

public boolean hasCommit()

Request to commit a new cursor value.

.google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2;

Returns
TypeDescription
boolean

Whether the commit field is set.

hasInitial()

public boolean hasInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1;

Returns
TypeDescription
boolean

Whether the initial 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 StreamingCommitCursorRequest.Builder newBuilderForType()
Returns
TypeDescription
StreamingCommitCursorRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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