Interface PubsubTargetOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
PubsubTarget, PubsubTarget.Builder

@Generated public interface PubsubTargetOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Attributes for PubsubMessage.
    Deprecated.
    int
    Attributes for PubsubMessage.
    Attributes for PubsubMessage.
    getAttributesOrDefault(String key, String defaultValue)
    Attributes for PubsubMessage.
    Attributes for PubsubMessage.
    com.google.protobuf.ByteString
    The message payload for PubsubMessage.
    Required.
    com.google.protobuf.ByteString
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.
      Use getAttributesMap() 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;
    • 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;