Class FlowControlRequest.Builder (1.9.4)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FlowControlRequest build()
Returns
TypeDescription
FlowControlRequest

buildPartial()

public FlowControlRequest buildPartial()
Returns
TypeDescription
FlowControlRequest

clear()

public FlowControlRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
FlowControlRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public FlowControlRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The allowedMessages.

getDefaultInstanceForType()

public FlowControlRequest getDefaultInstanceForType()
Returns
TypeDescription
FlowControlRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FlowControlRequest other)

public FlowControlRequest.Builder mergeFrom(FlowControlRequest other)
Parameter
NameDescription
otherFlowControlRequest
Returns
TypeDescription
FlowControlRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FlowControlRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The allowedBytes to set.

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

The allowedMessages to set.

Returns
TypeDescription
FlowControlRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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