Class ComputeTimeCursorResponse (1.13.3)

public final class ComputeTimeCursorResponse extends GeneratedMessageV3 implements ComputeTimeCursorResponseOrBuilder

Response containing the cursor corresponding to a publish or event time in a topic partition.

Protobuf type google.cloud.pubsublite.v1.ComputeTimeCursorResponse

Static Fields

CURSOR_FIELD_NUMBER

public static final int CURSOR_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ComputeTimeCursorResponse getDefaultInstance()
Returns
Type Description
ComputeTimeCursorResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ComputeTimeCursorResponse.Builder newBuilder()
Returns
Type Description
ComputeTimeCursorResponse.Builder

newBuilder(ComputeTimeCursorResponse prototype)

public static ComputeTimeCursorResponse.Builder newBuilder(ComputeTimeCursorResponse prototype)
Parameter
Name Description
prototype ComputeTimeCursorResponse
Returns
Type Description
ComputeTimeCursorResponse.Builder

parseDelimitedFrom(InputStream input)

public static ComputeTimeCursorResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeTimeCursorResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ComputeTimeCursorResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeTimeCursorResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeTimeCursorResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeTimeCursorResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeTimeCursorResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeTimeCursorResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ComputeTimeCursorResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeTimeCursorResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ComputeTimeCursorResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeTimeCursorResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeTimeCursorResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ComputeTimeCursorResponse> parser()
Returns
Type Description
Parser<ComputeTimeCursorResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCursor()

public Cursor getCursor()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

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

Returns
Type Description
Cursor

The cursor.

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

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

Returns
Type Description
CursorOrBuilder

getDefaultInstanceForType()

public ComputeTimeCursorResponse getDefaultInstanceForType()
Returns
Type Description
ComputeTimeCursorResponse

getParserForType()

public Parser<ComputeTimeCursorResponse> getParserForType()
Returns
Type Description
Parser<ComputeTimeCursorResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCursor()

public boolean hasCursor()

If present, the cursor references the first message with time greater than or equal to the specified target time. If such a message cannot be found, the cursor will be unset (i.e. cursor is not present).

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

Returns
Type Description
boolean

Whether the cursor field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ComputeTimeCursorResponse.Builder newBuilderForType()
Returns
Type Description
ComputeTimeCursorResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeTimeCursorResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ComputeTimeCursorResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ComputeTimeCursorResponse.Builder toBuilder()
Returns
Type Description
ComputeTimeCursorResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException