Interface NotificationConfigOrBuilder

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

public interface NotificationConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
    Deprecated.
    int
    A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
    A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
    A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
    A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
    The etag of the NotificationConfig.
    com.google.protobuf.ByteString
    The etag of the NotificationConfig.
    getEventTypes(int index)
    If present, only send notifications about listed event types.
    com.google.protobuf.ByteString
    getEventTypesBytes(int index)
    If present, only send notifications about listed event types.
    int
    If present, only send notifications about listed event types.
    If present, only send notifications about listed event types.
    Required.
    com.google.protobuf.ByteString
    Required.
    If present, only apply this NotificationConfig to object names that begin with this prefix.
    com.google.protobuf.ByteString
    If present, only apply this NotificationConfig to object names that begin with this prefix.
    Required.
    com.google.protobuf.ByteString
    Required.
    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

    • getName

      String getName()
       Required. The resource name of this NotificationConfig.
       Format:
       `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
       The `{project}` portion may be `_` for globally unique buckets.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of this NotificationConfig.
       Format:
       `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
       The `{project}` portion may be `_` for globally unique buckets.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for name.
    • getTopic

      String getTopic()
       Required. The Pub/Sub topic to which this subscription publishes. Formatted
       as:
       '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'
       
      string topic = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The topic.
    • getTopicBytes

      com.google.protobuf.ByteString getTopicBytes()
       Required. The Pub/Sub topic to which this subscription publishes. Formatted
       as:
       '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'
       
      string topic = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for topic.
    • getEtag

      String getEtag()
       The etag of the NotificationConfig.
       If included in the metadata of GetNotificationConfigRequest, the operation
       will only be performed if the etag matches that of the NotificationConfig.
       
      string etag = 7;
      Returns:
      The etag.
    • getEtagBytes

      com.google.protobuf.ByteString getEtagBytes()
       The etag of the NotificationConfig.
       If included in the metadata of GetNotificationConfigRequest, the operation
       will only be performed if the etag matches that of the NotificationConfig.
       
      string etag = 7;
      Returns:
      The bytes for etag.
    • getEventTypesList

      List<String> getEventTypesList()
       If present, only send notifications about listed event types. If
       empty, sent notifications for all event types.
       
      repeated string event_types = 3;
      Returns:
      A list containing the eventTypes.
    • getEventTypesCount

      int getEventTypesCount()
       If present, only send notifications about listed event types. If
       empty, sent notifications for all event types.
       
      repeated string event_types = 3;
      Returns:
      The count of eventTypes.
    • getEventTypes

      String getEventTypes(int index)
       If present, only send notifications about listed event types. If
       empty, sent notifications for all event types.
       
      repeated string event_types = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The eventTypes at the given index.
    • getEventTypesBytes

      com.google.protobuf.ByteString getEventTypesBytes(int index)
       If present, only send notifications about listed event types. If
       empty, sent notifications for all event types.
       
      repeated string event_types = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the eventTypes at the given index.
    • getCustomAttributesCount

      int getCustomAttributesCount()
       A list of additional attributes to attach to each Pub/Sub
       message published for this NotificationConfig.
       
      map<string, string> custom_attributes = 4;
    • containsCustomAttributes

      boolean containsCustomAttributes(String key)
       A list of additional attributes to attach to each Pub/Sub
       message published for this NotificationConfig.
       
      map<string, string> custom_attributes = 4;
    • getCustomAttributes

      @Deprecated Map<String,String> getCustomAttributes()
      Deprecated.
    • getCustomAttributesMap

      Map<String,String> getCustomAttributesMap()
       A list of additional attributes to attach to each Pub/Sub
       message published for this NotificationConfig.
       
      map<string, string> custom_attributes = 4;
    • getCustomAttributesOrDefault

      String getCustomAttributesOrDefault(String key, String defaultValue)
       A list of additional attributes to attach to each Pub/Sub
       message published for this NotificationConfig.
       
      map<string, string> custom_attributes = 4;
    • getCustomAttributesOrThrow

      String getCustomAttributesOrThrow(String key)
       A list of additional attributes to attach to each Pub/Sub
       message published for this NotificationConfig.
       
      map<string, string> custom_attributes = 4;
    • getObjectNamePrefix

      String getObjectNamePrefix()
       If present, only apply this NotificationConfig to object names that
       begin with this prefix.
       
      string object_name_prefix = 5;
      Returns:
      The objectNamePrefix.
    • getObjectNamePrefixBytes

      com.google.protobuf.ByteString getObjectNamePrefixBytes()
       If present, only apply this NotificationConfig to object names that
       begin with this prefix.
       
      string object_name_prefix = 5;
      Returns:
      The bytes for objectNamePrefix.
    • getPayloadFormat

      String getPayloadFormat()
       Required. The desired content of the Payload.
       
      string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The payloadFormat.
    • getPayloadFormatBytes

      com.google.protobuf.ByteString getPayloadFormatBytes()
       Required. The desired content of the Payload.
       
      string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for payloadFormat.