Package com.google.storage.v2
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 TypeMethodDescriptionbooleanA list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.Deprecated.intA 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.getCustomAttributesOrDefault(String key, String defaultValue) 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.getEtag()The etag of the NotificationConfig.com.google.protobuf.ByteStringThe etag of the NotificationConfig.getEventTypes(int index) If present, only send notifications about listed event types.com.google.protobuf.ByteStringgetEventTypesBytes(int index) If present, only send notifications about listed event types.intIf present, only send notifications about listed event types.If present, only send notifications about listed event types.getName()Required.com.google.protobuf.ByteStringRequired.If present, only apply this NotificationConfig to object names that begin with this prefix.com.google.protobuf.ByteStringIf present, only apply this NotificationConfig to object names that begin with this prefix.Required.com.google.protobuf.ByteStringRequired.getTopic()Required.com.google.protobuf.ByteStringRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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
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
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
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4; -
getCustomAttributes
Deprecated.UsegetCustomAttributesMap()instead. -
getCustomAttributesMap
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4; -
getCustomAttributesOrDefault
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4; -
getCustomAttributesOrThrow
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.
-