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 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;
      • 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;
      • getAttributesOrThrow

        String getAttributesOrThrow​(String key)
         Attributes for PubsubMessage.
        
         Pubsub message must contain either non-empty data, or at least one
         attribute.
         
        map<string, string> attributes = 4;