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 TypeMethodDescriptionbooleanOptional.Deprecated.intOptional.Optional.getCustomAttributesOrDefault(String key, String defaultValue) Optional.Optional.getEtag()Optional.com.google.protobuf.ByteStringOptional.getEventTypes(int index) Optional.com.google.protobuf.ByteStringgetEventTypesBytes(int index) Optional.intOptional.Optional.getName()Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.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()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The etag.
-
getEtagBytes
com.google.protobuf.ByteString getEtagBytes()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for etag.
-
getEventTypesList
Optional. If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the eventTypes.
-
getEventTypesCount
int getEventTypesCount()Optional. If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of eventTypes.
-
getEventTypes
Optional. If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The eventTypes at the given index.
-
getEventTypesBytes
com.google.protobuf.ByteString getEventTypesBytes(int index) Optional. If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the eventTypes at the given index.
-
getCustomAttributesCount
int getCustomAttributesCount()Optional. A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; -
containsCustomAttributes
Optional. A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomAttributes
Deprecated.UsegetCustomAttributesMap()instead. -
getCustomAttributesMap
Optional. A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomAttributesOrDefault
Optional. A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomAttributesOrThrow
Optional. A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getObjectNamePrefix
String getObjectNamePrefix()Optional. If present, only apply this NotificationConfig to object names that begin with this prefix.
string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The objectNamePrefix.
-
getObjectNamePrefixBytes
com.google.protobuf.ByteString getObjectNamePrefixBytes()Optional. If present, only apply this NotificationConfig to object names that begin with this prefix.
string object_name_prefix = 5 [(.google.api.field_behavior) = OPTIONAL];- 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.
-