public final class PublishResponse extends GeneratedMessage implements PublishResponseOrBuilder
google.pubsub.v1.PublishResponse
Response for the `Publish` method.
| Modifier and Type | Class and Description |
|---|---|
static class |
PublishResponse.Builder
Protobuf type
google.pubsub.v1.PublishResponse |
GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>, GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
MESSAGE_IDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static PublishResponse |
getDefaultInstance() |
PublishResponse |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getMessageIds(int index)
The server-assigned ID of each published message, in the same order as
the messages in the request.
|
ByteString |
getMessageIdsBytes(int index)
The server-assigned ID of each published message, in the same order as
the messages in the request.
|
int |
getMessageIdsCount()
The server-assigned ID of each published message, in the same order as
the messages in the request.
|
ProtocolStringList |
getMessageIdsList()
The server-assigned ID of each published message, in the same order as
the messages in the request.
|
Parser<PublishResponse> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message. |
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
static PublishResponse.Builder |
newBuilder() |
static PublishResponse.Builder |
newBuilder(PublishResponse prototype) |
PublishResponse.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
static PublishResponse |
parseDelimitedFrom(java.io.InputStream input) |
static PublishResponse |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static PublishResponse |
parseFrom(byte[] data) |
static PublishResponse |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static PublishResponse |
parseFrom(ByteString data) |
static PublishResponse |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static PublishResponse |
parseFrom(CodedInputStream input) |
static PublishResponse |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static PublishResponse |
parseFrom(java.io.InputStream input) |
static PublishResponse |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<PublishResponse> |
parser() |
PublishResponse.Builder |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output. |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, toStringtoByteArray, toByteString, writeDelimitedTo, writeTofindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int MESSAGE_IDS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
MessageOrBuilderUnknownFieldSet for this message.getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessagepublic static final Descriptors.Descriptor getDescriptor()
public ProtocolStringList getMessageIdsList()
The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.
getMessageIdsList in interface PublishResponseOrBuilderpublic int getMessageIdsCount()
The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.
getMessageIdsCount in interface PublishResponseOrBuilderpublic java.lang.String getMessageIds(int index)
The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.
getMessageIds in interface PublishResponseOrBuilderpublic ByteString getMessageIdsBytes(int index)
The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.
getMessageIdsBytes in interface PublishResponseOrBuilderpublic final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessagepublic void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLiteoutput. This does not
flush or close the stream.writeTo in interface MessageLitewriteTo in class GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
MessageLitegetSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessagepublic static PublishResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PublishResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PublishResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PublishResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PublishResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PublishResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PublishResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PublishResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PublishResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PublishResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic PublishResponse.Builder newBuilderForType()
MessageLitenewBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static PublishResponse.Builder newBuilder()
public static PublishResponse.Builder newBuilder(PublishResponse prototype)
public PublishResponse.Builder toBuilder()
MessageLitetoBuilder in interface MessagetoBuilder in interface MessageLitepublic static PublishResponse getDefaultInstance()
public static Parser<PublishResponse> parser()
public Parser<PublishResponse> getParserForType()
MessageLitegetParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessagepublic PublishResponse getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() method of generated message classes in that
this method is an abstract method of the MessageLite interface
whereas getDefaultInstance() is a static method of a specific
class. They return the same thing.getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder