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, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int MESSAGE_IDS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
MessageOrBuilder
UnknownFieldSet
for this message.getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessage
public 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 PublishResponseOrBuilder
public 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 PublishResponseOrBuilder
public 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 PublishResponseOrBuilder
public 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 PublishResponseOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage
public void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
writeTo
in class GeneratedMessage
java.io.IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessage
public static PublishResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PublishResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PublishResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PublishResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PublishResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static PublishResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static PublishResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static PublishResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static PublishResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static PublishResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public PublishResponse.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static PublishResponse.Builder newBuilder()
public static PublishResponse.Builder newBuilder(PublishResponse prototype)
public PublishResponse.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
public static PublishResponse getDefaultInstance()
public static Parser<PublishResponse> parser()
public Parser<PublishResponse> getParserForType()
MessageLite
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessage
public PublishResponse getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
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 MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder