Class InitialSubscribeRequest.Builder (1.6.3)

public static final class InitialSubscribeRequest.Builder extends GeneratedMessageV3.Builder<InitialSubscribeRequest.Builder> implements InitialSubscribeRequestOrBuilder

The first request that must be sent on a newly-opened stream. The client must wait for the response before sending subsequent requests on the stream.

Protobuf type google.cloud.pubsublite.v1.InitialSubscribeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InitialSubscribeRequest build()
Returns
TypeDescription
InitialSubscribeRequest

buildPartial()

public InitialSubscribeRequest buildPartial()
Returns
TypeDescription
InitialSubscribeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public InitialSubscribeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InitialSubscribeRequest.Builder
Overrides

clearInitialLocation()

public InitialSubscribeRequest.Builder clearInitialLocation()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
InitialSubscribeRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartition()

public InitialSubscribeRequest.Builder clearPartition()

The partition from which to receive messages. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
TypeDescription
InitialSubscribeRequest.Builder

This builder for chaining.

clearSubscription()

public InitialSubscribeRequest.Builder clearSubscription()

The subscription from which to receive messages.

string subscription = 1;

Returns
TypeDescription
InitialSubscribeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InitialSubscribeRequest getDefaultInstanceForType()
Returns
TypeDescription
InitialSubscribeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInitialLocation()

public SeekRequest getInitialLocation()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SeekRequest

The initialLocation.

getInitialLocationBuilder()

public SeekRequest.Builder getInitialLocationBuilder()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SeekRequest.Builder

getInitialLocationOrBuilder()

public SeekRequestOrBuilder getInitialLocationOrBuilder()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SeekRequestOrBuilder

getPartition()

public long getPartition()

The partition from which to receive messages. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
TypeDescription
long

The partition.

getSubscription()

public String getSubscription()

The subscription from which to receive messages.

string subscription = 1;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

The subscription from which to receive messages.

string subscription = 1;

Returns
TypeDescription
ByteString

The bytes for subscription.

hasInitialLocation()

public boolean hasInitialLocation()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the initialLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InitialSubscribeRequest other)

public InitialSubscribeRequest.Builder mergeFrom(InitialSubscribeRequest other)
Parameter
NameDescription
otherInitialSubscribeRequest
Returns
TypeDescription
InitialSubscribeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public InitialSubscribeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InitialSubscribeRequest.Builder
Overrides

mergeInitialLocation(SeekRequest value)

public InitialSubscribeRequest.Builder mergeInitialLocation(SeekRequest value)

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSeekRequest
Returns
TypeDescription
InitialSubscribeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInitialLocation(SeekRequest value)

public InitialSubscribeRequest.Builder setInitialLocation(SeekRequest value)

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSeekRequest
Returns
TypeDescription
InitialSubscribeRequest.Builder

setInitialLocation(SeekRequest.Builder builderForValue)

public InitialSubscribeRequest.Builder setInitialLocation(SeekRequest.Builder builderForValue)

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueSeekRequest.Builder
Returns
TypeDescription
InitialSubscribeRequest.Builder

setPartition(long value)

public InitialSubscribeRequest.Builder setPartition(long value)

The partition from which to receive messages. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Parameter
NameDescription
valuelong

The partition to set.

Returns
TypeDescription
InitialSubscribeRequest.Builder

This builder for chaining.

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

public InitialSubscribeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InitialSubscribeRequest.Builder
Overrides

setSubscription(String value)

public InitialSubscribeRequest.Builder setSubscription(String value)

The subscription from which to receive messages.

string subscription = 1;

Parameter
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
InitialSubscribeRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public InitialSubscribeRequest.Builder setSubscriptionBytes(ByteString value)

The subscription from which to receive messages.

string subscription = 1;

Parameter
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
InitialSubscribeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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