public final class SubscribeResponse extends GeneratedMessageV3 implements SubscribeResponseOrBuilder
Response to SubscribeRequest.
Protobuf type google.cloud.pubsublite.v1.SubscribeResponse
Static Fields
INITIAL_FIELD_NUMBER
public static final int INITIAL_FIELD_NUMBER
Field Value
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Field Value
SEEK_FIELD_NUMBER
public static final int SEEK_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SubscribeResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SubscribeResponse.Builder newBuilder()
Returns
newBuilder(SubscribeResponse prototype)
public static SubscribeResponse.Builder newBuilder(SubscribeResponse prototype)
Parameter
Returns
public static SubscribeResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SubscribeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SubscribeResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SubscribeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SubscribeResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SubscribeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SubscribeResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SubscribeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SubscribeResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SubscribeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SubscribeResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SubscribeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SubscribeResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SubscribeResponse getDefaultInstanceForType()
Returns
getInitial()
public InitialSubscribeResponse getInitial()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
getInitialOrBuilder()
public InitialSubscribeResponseOrBuilder getInitialOrBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
getMessages()
public MessageResponse getMessages()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
getMessagesOrBuilder()
public MessageResponseOrBuilder getMessagesOrBuilder()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
getParserForType()
public Parser<SubscribeResponse> getParserForType()
Returns
Overrides
getResponseCase()
public SubscribeResponse.ResponseCase getResponseCase()
Returns
getSeek()
public SeekResponse getSeek()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
getSeekOrBuilder()
public SeekResponseOrBuilder getSeekOrBuilder()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasInitial()
public boolean hasInitial()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;
Returns
Type | Description |
boolean | Whether the initial field is set.
|
hasMessages()
public boolean hasMessages()
Response containing messages from the topic partition.
.google.cloud.pubsublite.v1.MessageResponse messages = 3;
Returns
Type | Description |
boolean | Whether the messages field is set.
|
hasSeek()
Response to a Seek operation.
.google.cloud.pubsublite.v1.SeekResponse seek = 2;
Returns
Type | Description |
boolean | Whether the seek field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SubscribeResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SubscribeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SubscribeResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions