Class PublishResponse (1.15.0)

public final class PublishResponse extends GeneratedMessageV3 implements PublishResponseOrBuilder

Response to a PublishRequest.

Protobuf type google.cloud.pubsublite.v1.PublishResponse

Static Fields

INITIAL_RESPONSE_FIELD_NUMBER

public static final int INITIAL_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_RESPONSE_FIELD_NUMBER

public static final int MESSAGE_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PublishResponse getDefaultInstance()
Returns
Type Description
PublishResponse

getDescriptor()

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

newBuilder()

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

newBuilder(PublishResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PublishResponse getDefaultInstanceForType()
Returns
Type Description
PublishResponse

getInitialResponse()

public InitialPublishResponse getInitialResponse()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
Type Description
InitialPublishResponse

The initialResponse.

getInitialResponseOrBuilder()

public InitialPublishResponseOrBuilder getInitialResponseOrBuilder()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
Type Description
InitialPublishResponseOrBuilder

getMessageResponse()

public MessagePublishResponse getMessageResponse()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
Type Description
MessagePublishResponse

The messageResponse.

getMessageResponseOrBuilder()

public MessagePublishResponseOrBuilder getMessageResponseOrBuilder()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
Type Description
MessagePublishResponseOrBuilder

getParserForType()

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

getResponseTypeCase()

public PublishResponse.ResponseTypeCase getResponseTypeCase()
Returns
Type Description
PublishResponse.ResponseTypeCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInitialResponse()

public boolean hasInitialResponse()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
Type Description
boolean

Whether the initialResponse field is set.

hasMessageResponse()

public boolean hasMessageResponse()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
Type Description
boolean

Whether the messageResponse 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 PublishResponse.Builder newBuilderForType()
Returns
Type Description
PublishResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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