public static final class PublishResponse.Builder extends GeneratedMessageV3.Builder<PublishResponse.Builder> implements PublishResponseOrBuilder
Response for the Publish
method.
Protobuf type google.pubsub.v1.PublishResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PublishResponse.BuilderImplements
PublishResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllMessageIds(Iterable<String> values)
public PublishResponse.Builder addAllMessageIds(Iterable<String> values)
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.
repeated string message_ids = 1;
Name | Description |
values | Iterable<String> The messageIds to add. |
Type | Description |
PublishResponse.Builder | This builder for chaining. |
addMessageIds(String value)
public PublishResponse.Builder addMessageIds(String value)
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.
repeated string message_ids = 1;
Name | Description |
value | String The messageIds to add. |
Type | Description |
PublishResponse.Builder | This builder for chaining. |
addMessageIdsBytes(ByteString value)
public PublishResponse.Builder addMessageIdsBytes(ByteString value)
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.
repeated string message_ids = 1;
Name | Description |
value | ByteString The bytes of the messageIds to add. |
Type | Description |
PublishResponse.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublishResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PublishResponse.Builder |
build()
public PublishResponse build()
Type | Description |
PublishResponse |
buildPartial()
public PublishResponse buildPartial()
Type | Description |
PublishResponse |
clear()
public PublishResponse.Builder clear()
Type | Description |
PublishResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public PublishResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PublishResponse.Builder |
clearMessageIds()
public PublishResponse.Builder clearMessageIds()
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.
repeated string message_ids = 1;
Type | Description |
PublishResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PublishResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PublishResponse.Builder |
clone()
public PublishResponse.Builder clone()
Type | Description |
PublishResponse.Builder |
getDefaultInstanceForType()
public PublishResponse getDefaultInstanceForType()
Type | Description |
PublishResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMessageIds(int index)
public 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.
repeated string message_ids = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The messageIds at the given index. |
getMessageIdsBytes(int index)
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.
repeated string message_ids = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the messageIds at the given index. |
getMessageIdsCount()
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.
repeated string message_ids = 1;
Type | Description |
int | The count of messageIds. |
getMessageIdsList()
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.
repeated string message_ids = 1;
Type | Description |
ProtocolStringList | A list containing the messageIds. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PublishResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PublishResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PublishResponse.Builder |
mergeFrom(PublishResponse other)
public PublishResponse.Builder mergeFrom(PublishResponse other)
Name | Description |
other | PublishResponse |
Type | Description |
PublishResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublishResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PublishResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PublishResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PublishResponse.Builder |
setMessageIds(int index, String value)
public PublishResponse.Builder setMessageIds(int index, String value)
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.
repeated string message_ids = 1;
Name | Description |
index | int The index to set the value at. |
value | String The messageIds to set. |
Type | Description |
PublishResponse.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublishResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PublishResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PublishResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PublishResponse.Builder |