Class SubscribeRequest (1.11.2)

public final class SubscribeRequest extends GeneratedMessageV3 implements SubscribeRequestOrBuilder

A request sent from the client to the server on a stream.

Protobuf type google.cloud.pubsublite.v1.SubscribeRequest

Static Fields

FLOW_CONTROL_FIELD_NUMBER

public static final int FLOW_CONTROL_FIELD_NUMBER
Field Value
TypeDescription
int

INITIAL_FIELD_NUMBER

public static final int INITIAL_FIELD_NUMBER
Field Value
TypeDescription
int

SEEK_FIELD_NUMBER

public static final int SEEK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubscribeRequest getDefaultInstance()
Returns
TypeDescription
SubscribeRequest

getDescriptor()

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

newBuilder()

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

newBuilder(SubscribeRequest prototype)

public static SubscribeRequest.Builder newBuilder(SubscribeRequest prototype)
Parameter
NameDescription
prototypeSubscribeRequest
Returns
TypeDescription
SubscribeRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SubscribeRequest getDefaultInstanceForType()
Returns
TypeDescription
SubscribeRequest

getFlowControl()

public FlowControlRequest getFlowControl()

Request to grant tokens to the server,

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

Returns
TypeDescription
FlowControlRequest

The flowControl.

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.

getInitialOrBuilder()

public InitialSubscribeRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialSubscribeRequestOrBuilder

getParserForType()

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

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.

getSeekOrBuilder()

public SeekRequestOrBuilder getSeekOrBuilder()

Request to update the stream's delivery cursor.

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

Returns
TypeDescription
SeekRequestOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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 SubscribeRequest.Builder newBuilderForType()
Returns
TypeDescription
SubscribeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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