Class ComputeHeadCursorResponse (1.9.4)

public final class ComputeHeadCursorResponse extends GeneratedMessageV3 implements ComputeHeadCursorResponseOrBuilder

Response containing the head cursor for the requested topic and partition.

Protobuf type google.cloud.pubsublite.v1.ComputeHeadCursorResponse

Static Fields

HEAD_CURSOR_FIELD_NUMBER

public static final int HEAD_CURSOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeHeadCursorResponse getDefaultInstance()
Returns
TypeDescription
ComputeHeadCursorResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ComputeHeadCursorResponse prototype)

public static ComputeHeadCursorResponse.Builder newBuilder(ComputeHeadCursorResponse prototype)
Parameter
NameDescription
prototypeComputeHeadCursorResponse
Returns
TypeDescription
ComputeHeadCursorResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ComputeHeadCursorResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeHeadCursorResponse

getHeadCursor()

public Cursor getHeadCursor()

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Returns
TypeDescription
Cursor

The headCursor.

getHeadCursorOrBuilder()

public CursorOrBuilder getHeadCursorOrBuilder()

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Returns
TypeDescription
CursorOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasHeadCursor()

public boolean hasHeadCursor()

The head cursor.

.google.cloud.pubsublite.v1.Cursor head_cursor = 1;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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