Class FlowControlRequest.Builder (1.14.7)

public static final class FlowControlRequest.Builder extends GeneratedMessageV3.Builder<FlowControlRequest.Builder> implements FlowControlRequestOrBuilder

Request to grant tokens to the server, requesting delivery of messages when they become available.

Protobuf type google.cloud.pubsublite.v1.FlowControlRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FlowControlRequest build()
Returns
Type Description
FlowControlRequest

buildPartial()

public FlowControlRequest buildPartial()
Returns
Type Description
FlowControlRequest

clear()

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

clearAllowedBytes()

public FlowControlRequest.Builder clearAllowedBytes()

The number of byte tokens to grant. Must be greater than or equal to 0.

int64 allowed_bytes = 2;

Returns
Type Description
FlowControlRequest.Builder

This builder for chaining.

clearAllowedMessages()

public FlowControlRequest.Builder clearAllowedMessages()

The number of message tokens to grant. Must be greater than or equal to 0.

int64 allowed_messages = 1;

Returns
Type Description
FlowControlRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllowedBytes()

public long getAllowedBytes()

The number of byte tokens to grant. Must be greater than or equal to 0.

int64 allowed_bytes = 2;

Returns
Type Description
long

The allowedBytes.

getAllowedMessages()

public long getAllowedMessages()

The number of message tokens to grant. Must be greater than or equal to 0.

int64 allowed_messages = 1;

Returns
Type Description
long

The allowedMessages.

getDefaultInstanceForType()

public FlowControlRequest getDefaultInstanceForType()
Returns
Type Description
FlowControlRequest

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FlowControlRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowedBytes(long value)

public FlowControlRequest.Builder setAllowedBytes(long value)

The number of byte tokens to grant. Must be greater than or equal to 0.

int64 allowed_bytes = 2;

Parameter
Name Description
value long

The allowedBytes to set.

Returns
Type Description
FlowControlRequest.Builder

This builder for chaining.

setAllowedMessages(long value)

public FlowControlRequest.Builder setAllowedMessages(long value)

The number of message tokens to grant. Must be greater than or equal to 0.

int64 allowed_messages = 1;

Parameter
Name Description
value long

The allowedMessages to set.

Returns
Type Description
FlowControlRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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