Class SubscribeRequest.Builder (1.13.8)

public static final class SubscribeRequest.Builder extends GeneratedMessageV3.Builder<SubscribeRequest.Builder> implements SubscribeRequestOrBuilder

A request sent from the client to the server on a stream.

Protobuf type google.cloud.pubsublite.v1.SubscribeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscribeRequest build()
Returns
Type Description
SubscribeRequest

buildPartial()

public SubscribeRequest buildPartial()
Returns
Type Description
SubscribeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFlowControl()

public SubscribeRequest.Builder clearFlowControl()

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Returns
Type Description
SubscribeRequest.Builder

clearInitial()

public SubscribeRequest.Builder clearInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Returns
Type Description
SubscribeRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequest()

public SubscribeRequest.Builder clearRequest()
Returns
Type Description
SubscribeRequest.Builder

clearSeek()

public SubscribeRequest.Builder clearSeek()

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Returns
Type Description
SubscribeRequest.Builder

clone()

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

getDefaultInstanceForType()

public SubscribeRequest getDefaultInstanceForType()
Returns
Type Description
SubscribeRequest

getDescriptorForType()

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

getFlowControl()

public FlowControlRequest getFlowControl()

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Returns
Type Description
FlowControlRequest

The flowControl.

getFlowControlBuilder()

public FlowControlRequest.Builder getFlowControlBuilder()

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Returns
Type Description
FlowControlRequest.Builder

getFlowControlOrBuilder()

public FlowControlRequestOrBuilder getFlowControlOrBuilder()

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Returns
Type Description
FlowControlRequestOrBuilder

getInitial()

public InitialSubscribeRequest getInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Returns
Type Description
InitialSubscribeRequest

The initial.

getInitialBuilder()

public InitialSubscribeRequest.Builder getInitialBuilder()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Returns
Type Description
InitialSubscribeRequest.Builder

getInitialOrBuilder()

public InitialSubscribeRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Returns
Type Description
InitialSubscribeRequestOrBuilder

getRequestCase()

public SubscribeRequest.RequestCase getRequestCase()
Returns
Type Description
SubscribeRequest.RequestCase

getSeek()

public SeekRequest getSeek()

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Returns
Type Description
SeekRequest

The seek.

getSeekBuilder()

public SeekRequest.Builder getSeekBuilder()

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Returns
Type Description
SeekRequest.Builder

getSeekOrBuilder()

public SeekRequestOrBuilder getSeekOrBuilder()

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Returns
Type Description
SeekRequestOrBuilder

hasFlowControl()

public boolean hasFlowControl()

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Returns
Type Description
boolean

Whether the flowControl field is set.

hasInitial()

public boolean hasInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Returns
Type Description
boolean

Whether the initial field is set.

hasSeek()

public boolean hasSeek()

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Returns
Type Description
boolean

Whether the seek field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFlowControl(FlowControlRequest value)

public SubscribeRequest.Builder mergeFlowControl(FlowControlRequest value)

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Parameter
Name Description
value FlowControlRequest
Returns
Type Description
SubscribeRequest.Builder

mergeFrom(SubscribeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInitial(InitialSubscribeRequest value)

public SubscribeRequest.Builder mergeInitial(InitialSubscribeRequest value)

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Parameter
Name Description
value InitialSubscribeRequest
Returns
Type Description
SubscribeRequest.Builder

mergeSeek(SeekRequest value)

public SubscribeRequest.Builder mergeSeek(SeekRequest value)

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Parameter
Name Description
value SeekRequest
Returns
Type Description
SubscribeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlowControl(FlowControlRequest value)

public SubscribeRequest.Builder setFlowControl(FlowControlRequest value)

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Parameter
Name Description
value FlowControlRequest
Returns
Type Description
SubscribeRequest.Builder

setFlowControl(FlowControlRequest.Builder builderForValue)

public SubscribeRequest.Builder setFlowControl(FlowControlRequest.Builder builderForValue)

Request to grant tokens to the server,

.google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3;

Parameter
Name Description
builderForValue FlowControlRequest.Builder
Returns
Type Description
SubscribeRequest.Builder

setInitial(InitialSubscribeRequest value)

public SubscribeRequest.Builder setInitial(InitialSubscribeRequest value)

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Parameter
Name Description
value InitialSubscribeRequest
Returns
Type Description
SubscribeRequest.Builder

setInitial(InitialSubscribeRequest.Builder builderForValue)

public SubscribeRequest.Builder setInitial(InitialSubscribeRequest.Builder builderForValue)

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1;

Parameter
Name Description
builderForValue InitialSubscribeRequest.Builder
Returns
Type Description
SubscribeRequest.Builder

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

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

setSeek(SeekRequest value)

public SubscribeRequest.Builder setSeek(SeekRequest value)

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Parameter
Name Description
value SeekRequest
Returns
Type Description
SubscribeRequest.Builder

setSeek(SeekRequest.Builder builderForValue)

public SubscribeRequest.Builder setSeek(SeekRequest.Builder builderForValue)

Request to update the stream's delivery cursor.

.google.cloud.pubsublite.v1.SeekRequest seek = 2;

Parameter
Name Description
builderForValue SeekRequest.Builder
Returns
Type Description
SubscribeRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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