Class ComputeHeadCursorRequest (1.11.2)
1.16.2 (latest)
1.16.1
1.15.21
1.14.8
1.13.8
1.12.22
1.11.2
1.10.0
1.9.4
1.8.0
1.7.1
1.6.3
1.5.5
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
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ComputeHeadCursorRequest getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static ComputeHeadCursorRequest . Builder newBuilder ()
Returns
newBuilder(ComputeHeadCursorRequest prototype)
public static ComputeHeadCursorRequest . Builder newBuilder ( ComputeHeadCursorRequest prototype )
Parameter
Returns
public static ComputeHeadCursorRequest parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ComputeHeadCursorRequest parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ComputeHeadCursorRequest parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeHeadCursorRequest parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ComputeHeadCursorRequest parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeHeadCursorRequest parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ComputeHeadCursorRequest parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static ComputeHeadCursorRequest parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ComputeHeadCursorRequest parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ComputeHeadCursorRequest parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ComputeHeadCursorRequest parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeHeadCursorRequest parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<ComputeHeadCursorRequest> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ComputeHeadCursorRequest getDefaultInstanceForType ()
Returns
getParserForType()
public Parser<ComputeHeadCursorRequest> getParserForType ()
Returns
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
Type
Description
long
The partition.
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
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
Type
Description
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public ComputeHeadCursorRequest . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeHeadCursorRequest . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public ComputeHeadCursorRequest . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]