Class SeekSubscriptionRequest.Builder (1.9.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SeekSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides

build()

public SeekSubscriptionRequest build()
Returns
TypeDescription
SeekSubscriptionRequest

buildPartial()

public SeekSubscriptionRequest buildPartial()
Returns
TypeDescription
SeekSubscriptionRequest

clear()

public SeekSubscriptionRequest.Builder clear()
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SeekSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SeekSubscriptionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SeekSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides

clearTarget()

public SeekSubscriptionRequest.Builder clearTarget()
Returns
TypeDescription
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
TypeDescription
SeekSubscriptionRequest.Builder

clone()

public SeekSubscriptionRequest.Builder clone()
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides

getDefaultInstanceForType()

public SeekSubscriptionRequest getDefaultInstanceForType()
Returns
TypeDescription
SeekSubscriptionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for namedTarget.

getTargetCase()

public SeekSubscriptionRequest.TargetCase getTargetCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeTarget field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SeekSubscriptionRequest other)

public SeekSubscriptionRequest.Builder mergeFrom(SeekSubscriptionRequest other)
Parameter
NameDescription
otherSeekSubscriptionRequest
Returns
TypeDescription
SeekSubscriptionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SeekSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SeekSubscriptionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimeTarget
Returns
TypeDescription
SeekSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SeekSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SeekSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueSeekSubscriptionRequest.NamedTarget

The namedTarget to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimeTarget
Returns
TypeDescription
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
NameDescription
builderForValueTimeTarget.Builder
Returns
TypeDescription
SeekSubscriptionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SeekSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SeekSubscriptionRequest.Builder
Overrides