Class ComputeTimeCursorRequest (1.12.8)

public final class ComputeTimeCursorRequest extends GeneratedMessageV3 implements ComputeTimeCursorRequestOrBuilder

Compute the corresponding cursor for a publish or event time in a topic partition.

Protobuf type google.cloud.pubsublite.v1.ComputeTimeCursorRequest

Static Fields

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_FIELD_NUMBER

public static final int TARGET_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 ComputeTimeCursorRequest getDefaultInstance()
Returns
TypeDescription
ComputeTimeCursorRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ComputeTimeCursorRequest prototype)

public static ComputeTimeCursorRequest.Builder newBuilder(ComputeTimeCursorRequest prototype)
Parameter
NameDescription
prototypeComputeTimeCursorRequest
Returns
TypeDescription
ComputeTimeCursorRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ComputeTimeCursorRequest getDefaultInstanceForType()
Returns
TypeDescription
ComputeTimeCursorRequest

getParserForType()

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

getPartition()

public long getPartition()

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

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

Returns
TypeDescription
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTarget()

public TimeTarget getTarget()

Required. The target publish or event time. Specifying a future time will return an unset cursor.

.google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeTarget

The target.

getTargetOrBuilder()

public TimeTargetOrBuilder getTargetOrBuilder()

Required. The target publish or event time. Specifying a future time will return an unset cursor.

.google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeTargetOrBuilder

getTopic()

public String getTopic()

Required. The topic for which we should compute the 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 cursor.

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

Returns
TypeDescription
ByteString

The bytes for topic.

hasTarget()

public boolean hasTarget()

Required. The target publish or event time. Specifying a future time will return an unset cursor.

.google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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