Class FlowControlRequest (1.9.4)

public final class FlowControlRequest extends GeneratedMessageV3 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 Fields

ALLOWED_BYTES_FIELD_NUMBER

public static final int ALLOWED_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

ALLOWED_MESSAGES_FIELD_NUMBER

public static final int ALLOWED_MESSAGES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FlowControlRequest getDefaultInstance()
Returns
TypeDescription
FlowControlRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FlowControlRequest.Builder newBuilder()
Returns
TypeDescription
FlowControlRequest.Builder

newBuilder(FlowControlRequest prototype)

public static FlowControlRequest.Builder newBuilder(FlowControlRequest prototype)
Parameter
NameDescription
prototypeFlowControlRequest
Returns
TypeDescription
FlowControlRequest.Builder

parseDelimitedFrom(InputStream input)

public static FlowControlRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FlowControlRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FlowControlRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FlowControlRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FlowControlRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FlowControlRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FlowControlRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FlowControlRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FlowControlRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FlowControlRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FlowControlRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FlowControlRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FlowControlRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FlowControlRequest> parser()
Returns
TypeDescription
Parser<FlowControlRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<FlowControlRequest> getParserForType()
Returns
TypeDescription
Parser<FlowControlRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FlowControlRequest.Builder newBuilderForType()
Returns
TypeDescription
FlowControlRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FlowControlRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FlowControlRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FlowControlRequest.Builder toBuilder()
Returns
TypeDescription
FlowControlRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException