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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FlowControlRequest.BuilderImplements
FlowControlRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FlowControlRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
FlowControlRequest.Builder |
build()
public FlowControlRequest build()
Type | Description |
FlowControlRequest |
buildPartial()
public FlowControlRequest buildPartial()
Type | Description |
FlowControlRequest |
clear()
public FlowControlRequest.Builder clear()
Type | Description |
FlowControlRequest.Builder |
clearAllowedBytes()
public FlowControlRequest.Builder clearAllowedBytes()
The number of byte tokens to grant. Must be greater than or equal to 0.
int64 allowed_bytes = 2;
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;
Type | Description |
FlowControlRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public FlowControlRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
FlowControlRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public FlowControlRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
FlowControlRequest.Builder |
clone()
public FlowControlRequest.Builder clone()
Type | Description |
FlowControlRequest.Builder |
getAllowedBytes()
public long getAllowedBytes()
The number of byte tokens to grant. Must be greater than or equal to 0.
int64 allowed_bytes = 2;
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;
Type | Description |
long | The allowedMessages. |
getDefaultInstanceForType()
public FlowControlRequest getDefaultInstanceForType()
Type | Description |
FlowControlRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(FlowControlRequest other)
public FlowControlRequest.Builder mergeFrom(FlowControlRequest other)
Name | Description |
other | FlowControlRequest |
Type | Description |
FlowControlRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FlowControlRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
FlowControlRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public FlowControlRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
FlowControlRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FlowControlRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
FlowControlRequest.Builder |
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;
Name | Description |
value | long The allowedBytes to set. |
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;
Name | Description |
value | long The allowedMessages to set. |
Type | Description |
FlowControlRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public FlowControlRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
FlowControlRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FlowControlRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
FlowControlRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final FlowControlRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
FlowControlRequest.Builder |