Interface PublishRequestOrBuilder (1.125.9)

public interface PublishRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
PubsubMessage

getMessagesCount()

public abstract int getMessagesCount()

Required. The messages to publish.

repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getMessagesList()

public abstract List<PubsubMessage> getMessagesList()

Required. The messages to publish.

repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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];

Parameter
NameDescription
indexint
Returns
TypeDescription
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];

Returns
TypeDescription
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) = { ... }

Returns
TypeDescription
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) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.