Class SubscribeRequest (1.14.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
Type Description
int

INITIAL_FIELD_NUMBER

public static final int INITIAL_FIELD_NUMBER
Field Value
Type Description
int

SEEK_FIELD_NUMBER

public static final int SEEK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubscribeRequest getDefaultInstance()
Returns
Type Description
SubscribeRequest

getDescriptor()

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

newBuilder()

public static SubscribeRequest.Builder newBuilder()
Returns
Type Description
SubscribeRequest.Builder

newBuilder(SubscribeRequest prototype)

public static SubscribeRequest.Builder newBuilder(SubscribeRequest prototype)
Parameter
Name Description
prototype SubscribeRequest
Returns
Type Description
SubscribeRequest.Builder

parseDelimitedFrom(InputStream input)

public static SubscribeRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscribeRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SubscribeRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubscribeRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubscribeRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubscribeRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubscribeRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscribeRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SubscribeRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscribeRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SubscribeRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubscribeRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SubscribeRequest> parser()
Returns
Type Description
Parser<SubscribeRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SubscribeRequest getDefaultInstanceForType()
Returns
Type Description
SubscribeRequest

getFlowControl()

public FlowControlRequest getFlowControl()

Request to grant tokens to the server,

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

Returns
Type Description
FlowControlRequest

The flowControl.

getFlowControlOrBuilder()

public FlowControlRequestOrBuilder getFlowControlOrBuilder()

Request to grant tokens to the server,

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

Returns
Type Description
FlowControlRequestOrBuilder

getInitial()

public InitialSubscribeRequest getInitial()

Initial request on the stream.

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

Returns
Type Description
InitialSubscribeRequest

The initial.

getInitialOrBuilder()

public InitialSubscribeRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

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

Returns
Type Description
InitialSubscribeRequestOrBuilder

getParserForType()

public Parser<SubscribeRequest> getParserForType()
Returns
Type Description
Parser<SubscribeRequest>
Overrides

getRequestCase()

public SubscribeRequest.RequestCase getRequestCase()
Returns
Type Description
SubscribeRequest.RequestCase

getSeek()

public SeekRequest getSeek()

Request to update the stream's delivery cursor.

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

Returns
Type Description
SeekRequest

The seek.

getSeekOrBuilder()

public SeekRequestOrBuilder getSeekOrBuilder()

Request to update the stream's delivery cursor.

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

Returns
Type Description
SeekRequestOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasFlowControl()

public boolean hasFlowControl()

Request to grant tokens to the server,

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

Returns
Type Description
boolean

Whether the flowControl field is set.

hasInitial()

public boolean hasInitial()

Initial request on the stream.

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

Returns
Type Description
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
Type Description
boolean

Whether the seek field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SubscribeRequest.Builder newBuilderForType()
Returns
Type Description
SubscribeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SubscribeRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SubscribeRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SubscribeRequest.Builder toBuilder()
Returns
Type Description
SubscribeRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException