Class SubscribeRequest.Builder (1.9.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscribeRequest build()
Returns
TypeDescription
SubscribeRequest

buildPartial()

public SubscribeRequest buildPartial()
Returns
TypeDescription
SubscribeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFlowControl()

public SubscribeRequest.Builder clearFlowControl()

Request to grant tokens to the server,

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

Returns
TypeDescription
SubscribeRequest.Builder

clearInitial()

public SubscribeRequest.Builder clearInitial()

Initial request on the stream.

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

Returns
TypeDescription
SubscribeRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequest()

public SubscribeRequest.Builder clearRequest()
Returns
TypeDescription
SubscribeRequest.Builder

clearSeek()

public SubscribeRequest.Builder clearSeek()

Request to update the stream's delivery cursor.

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

Returns
TypeDescription
SubscribeRequest.Builder

clone()

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

getDefaultInstanceForType()

public SubscribeRequest getDefaultInstanceForType()
Returns
TypeDescription
SubscribeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFlowControl()

public FlowControlRequest getFlowControl()

Request to grant tokens to the server,

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

Returns
TypeDescription
FlowControlRequest

The flowControl.

getFlowControlBuilder()

public FlowControlRequest.Builder getFlowControlBuilder()

Request to grant tokens to the server,

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

Returns
TypeDescription
FlowControlRequest.Builder

getFlowControlOrBuilder()

public FlowControlRequestOrBuilder getFlowControlOrBuilder()

Request to grant tokens to the server,

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

Returns
TypeDescription
FlowControlRequestOrBuilder

getInitial()

public InitialSubscribeRequest getInitial()

Initial request on the stream.

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

Returns
TypeDescription
InitialSubscribeRequest

The initial.

getInitialBuilder()

public InitialSubscribeRequest.Builder getInitialBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialSubscribeRequest.Builder

getInitialOrBuilder()

public InitialSubscribeRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialSubscribeRequestOrBuilder

getRequestCase()

public SubscribeRequest.RequestCase getRequestCase()
Returns
TypeDescription
SubscribeRequest.RequestCase

getSeek()

public SeekRequest getSeek()

Request to update the stream's delivery cursor.

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

Returns
TypeDescription
SeekRequest

The seek.

getSeekBuilder()

public SeekRequest.Builder getSeekBuilder()

Request to update the stream's delivery cursor.

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

Returns
TypeDescription
SeekRequest.Builder

getSeekOrBuilder()

public SeekRequestOrBuilder getSeekOrBuilder()

Request to update the stream's delivery cursor.

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

Returns
TypeDescription
SeekRequestOrBuilder

hasFlowControl()

public boolean hasFlowControl()

Request to grant tokens to the server,

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

Returns
TypeDescription
boolean

Whether the flowControl field is set.

hasInitial()

public boolean hasInitial()

Initial request on the stream.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the seek field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFlowControlRequest
Returns
TypeDescription
SubscribeRequest.Builder

mergeFrom(SubscribeRequest other)

public SubscribeRequest.Builder mergeFrom(SubscribeRequest other)
Parameter
NameDescription
otherSubscribeRequest
Returns
TypeDescription
SubscribeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInitial(InitialSubscribeRequest value)

public SubscribeRequest.Builder setInitial(InitialSubscribeRequest value)

Initial request on the stream.

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

Parameter
NameDescription
valueInitialSubscribeRequest
Returns
TypeDescription
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
NameDescription
builderForValueInitialSubscribeRequest.Builder
Returns
TypeDescription
SubscribeRequest.Builder

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

public SubscribeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSeekRequest
Returns
TypeDescription
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
NameDescription
builderForValueSeekRequest.Builder
Returns
TypeDescription
SubscribeRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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