Class SeekSubscriptionRequest.Builder (1.13.8)

public static final class SeekSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<SeekSubscriptionRequest.Builder> implements SeekSubscriptionRequestOrBuilder

Request for SeekSubscription.

Protobuf type google.cloud.pubsublite.v1.SeekSubscriptionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SeekSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

build()

public SeekSubscriptionRequest build()
Returns
Type Description
SeekSubscriptionRequest

buildPartial()

public SeekSubscriptionRequest buildPartial()
Returns
Type Description
SeekSubscriptionRequest

clear()

public SeekSubscriptionRequest.Builder clear()
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SeekSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

clearName()

public SeekSubscriptionRequest.Builder clearName()

Required. The name of the subscription to seek.

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

Returns
Type Description
SeekSubscriptionRequest.Builder

This builder for chaining.

clearNamedTarget()

public SeekSubscriptionRequest.Builder clearNamedTarget()

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

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

Returns
Type Description
SeekSubscriptionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SeekSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

clearTarget()

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

clearTimeTarget()

public SeekSubscriptionRequest.Builder clearTimeTarget()

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
SeekSubscriptionRequest.Builder

clone()

public SeekSubscriptionRequest.Builder clone()
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

getDefaultInstanceForType()

public SeekSubscriptionRequest getDefaultInstanceForType()
Returns
Type Description
SeekSubscriptionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

getTimeTargetBuilder()

public TimeTarget.Builder getTimeTargetBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SeekSubscriptionRequest other)

public SeekSubscriptionRequest.Builder mergeFrom(SeekSubscriptionRequest other)
Parameter
Name Description
other SeekSubscriptionRequest
Returns
Type Description
SeekSubscriptionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SeekSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SeekSubscriptionRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

mergeTimeTarget(TimeTarget value)

public SeekSubscriptionRequest.Builder mergeTimeTarget(TimeTarget value)

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;

Parameter
Name Description
value TimeTarget
Returns
Type Description
SeekSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SeekSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SeekSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

setName(String value)

public SeekSubscriptionRequest.Builder setName(String value)

Required. The name of the subscription to seek.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SeekSubscriptionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SeekSubscriptionRequest.Builder setNameBytes(ByteString value)

Required. The name of the subscription to seek.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SeekSubscriptionRequest.Builder

This builder for chaining.

setNamedTarget(SeekSubscriptionRequest.NamedTarget value)

public SeekSubscriptionRequest.Builder setNamedTarget(SeekSubscriptionRequest.NamedTarget value)

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

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

Parameter
Name Description
value SeekSubscriptionRequest.NamedTarget

The namedTarget to set.

Returns
Type Description
SeekSubscriptionRequest.Builder

This builder for chaining.

setNamedTargetValue(int value)

public SeekSubscriptionRequest.Builder setNamedTargetValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for namedTarget to set.

Returns
Type Description
SeekSubscriptionRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SeekSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides

setTimeTarget(TimeTarget value)

public SeekSubscriptionRequest.Builder setTimeTarget(TimeTarget value)

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;

Parameter
Name Description
value TimeTarget
Returns
Type Description
SeekSubscriptionRequest.Builder

setTimeTarget(TimeTarget.Builder builderForValue)

public SeekSubscriptionRequest.Builder setTimeTarget(TimeTarget.Builder builderForValue)

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;

Parameter
Name Description
builderForValue TimeTarget.Builder
Returns
Type Description
SeekSubscriptionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SeekSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SeekSubscriptionRequest.Builder
Overrides