Class SeekSubscriptionRequest (1.14.7)

public final class SeekSubscriptionRequest extends GeneratedMessageV3 implements SeekSubscriptionRequestOrBuilder

Request for SeekSubscription.

Protobuf type google.cloud.pubsublite.v1.SeekSubscriptionRequest

Static Fields

NAMED_TARGET_FIELD_NUMBER

public static final int NAMED_TARGET_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TIME_TARGET_FIELD_NUMBER

public static final int TIME_TARGET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SeekSubscriptionRequest getDefaultInstance()
Returns
Type Description
SeekSubscriptionRequest

getDescriptor()

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

newBuilder()

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

newBuilder(SeekSubscriptionRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SeekSubscriptionRequest getDefaultInstanceForType()
Returns
Type Description
SeekSubscriptionRequest

getName()

public String getName()

Required. The name of the subscription to seek.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the subscription to seek.

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

Returns
Type Description
ByteString

The bytes for name.

getNamedTarget()

public SeekSubscriptionRequest.NamedTarget getNamedTarget()

Seek to a named position with respect to the message backlog.

.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;

Returns
Type Description
SeekSubscriptionRequest.NamedTarget

The namedTarget.

getNamedTargetValue()

public int getNamedTargetValue()

Seek to a named position with respect to the message backlog.

.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;

Returns
Type Description
int

The enum numeric value on the wire for namedTarget.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetCase()

public SeekSubscriptionRequest.TargetCase getTargetCase()
Returns
Type Description
SeekSubscriptionRequest.TargetCase

getTimeTarget()

public TimeTarget getTimeTarget()

Seek to the first message whose publish or event time is greater than or equal to the specified query time. If no such message can be located, will seek to the end of the message backlog.

.google.cloud.pubsublite.v1.TimeTarget time_target = 3;

Returns
Type Description
TimeTarget

The timeTarget.

getTimeTargetOrBuilder()

public TimeTargetOrBuilder getTimeTargetOrBuilder()

Seek to the first message whose publish or event time is greater than or equal to the specified query time. If no such message can be located, will seek to the end of the message backlog.

.google.cloud.pubsublite.v1.TimeTarget time_target = 3;

Returns
Type Description
TimeTargetOrBuilder

hasNamedTarget()

public boolean hasNamedTarget()

Seek to a named position with respect to the message backlog.

.google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2;

Returns
Type Description
boolean

Whether the namedTarget field is set.

hasTimeTarget()

public boolean hasTimeTarget()

Seek to the first message whose publish or event time is greater than or equal to the specified query time. If no such message can be located, will seek to the end of the message backlog.

.google.cloud.pubsublite.v1.TimeTarget time_target = 3;

Returns
Type Description
boolean

Whether the timeTarget 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 SeekSubscriptionRequest.Builder newBuilderForType()
Returns
Type Description
SeekSubscriptionRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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