Interface PubsubTargetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PubsubTarget
,PubsubTarget.Builder
public interface PubsubTargetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsAttributes(String key)
Attributes for PubsubMessage.Map<String,String>
getAttributes()
Deprecated.int
getAttributesCount()
Attributes for PubsubMessage.Map<String,String>
getAttributesMap()
Attributes for PubsubMessage.String
getAttributesOrDefault(String key, String defaultValue)
Attributes for PubsubMessage.String
getAttributesOrThrow(String key)
Attributes for PubsubMessage.com.google.protobuf.ByteString
getData()
The message payload for PubsubMessage.String
getTopicName()
Required.com.google.protobuf.ByteString
getTopicNameBytes()
Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTopicName
String getTopicName()
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same project as the Cloud Scheduler job.
string topic_name = 1 [(.google.api.resource_reference) = { ... }
- Returns:
- The topicName.
-
getTopicNameBytes
com.google.protobuf.ByteString getTopicNameBytes()
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same project as the Cloud Scheduler job.
string topic_name = 1 [(.google.api.resource_reference) = { ... }
- Returns:
- The bytes for topicName.
-
getData
com.google.protobuf.ByteString getData()
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
bytes data = 3;
- Returns:
- The data.
-
getAttributesCount
int getAttributesCount()
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
-
containsAttributes
boolean containsAttributes(String key)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
-
getAttributes
@Deprecated Map<String,String> getAttributes()
Deprecated.UsegetAttributesMap()
instead.
-
getAttributesMap
Map<String,String> getAttributesMap()
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
-
getAttributesOrDefault
String getAttributesOrDefault(String key, String defaultValue)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
-
-