Class ComputeHeadCursorRequest (1.4.12)

public final class ComputeHeadCursorRequest extends GeneratedMessageV3 implements ComputeHeadCursorRequestOrBuilder

Compute the current head cursor for a partition.

Protobuf type google.cloud.pubsublite.v1.ComputeHeadCursorRequest

Static Fields

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

TOPIC_FIELD_NUMBER

public static final int TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeHeadCursorRequest getDefaultInstance()
Returns
TypeDescription
ComputeHeadCursorRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ComputeHeadCursorRequest prototype)

public static ComputeHeadCursorRequest.Builder newBuilder(ComputeHeadCursorRequest prototype)
Parameter
NameDescription
prototypeComputeHeadCursorRequest
Returns
TypeDescription
ComputeHeadCursorRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ComputeHeadCursorRequest getDefaultInstanceForType()
Returns
TypeDescription
ComputeHeadCursorRequest

getParserForType()

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

getPartition()

public long getPartition()

Required. The partition for which we should compute the head cursor.

int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTopic()

public String getTopic()

Required. The topic for which we should compute the head cursor.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Required. The topic for which we should compute the head cursor.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 ComputeHeadCursorRequest.Builder newBuilderForType()
Returns
TypeDescription
ComputeHeadCursorRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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