public interface PublishRequestOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getMessages(int index)
public abstract PubsubMessage getMessages(int index)
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
PubsubMessage |
getMessagesCount()
public abstract int getMessagesCount()
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int |
getMessagesList()
public abstract List<PubsubMessage> getMessagesList()
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<PubsubMessage> |
getMessagesOrBuilder(int index)
public abstract PubsubMessageOrBuilder getMessagesOrBuilder(int index)
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
PubsubMessageOrBuilder |
getMessagesOrBuilderList()
public abstract List<? extends PubsubMessageOrBuilder> getMessagesOrBuilderList()
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<? extends com.google.pubsub.v1.PubsubMessageOrBuilder> |
getTopic()
public abstract String getTopic()
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The topic. |
getTopicBytes()
public abstract ByteString getTopicBytes()
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for topic. |