Package com.google.storage.v2
Class NotificationConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.NotificationConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,NotificationConfigOrBuilder,Serializable
public final class NotificationConfig
extends com.google.protobuf.GeneratedMessageV3
implements NotificationConfigOrBuilder
A directive to publish Pub/Sub notifications upon changes to a bucket.Protobuf type
google.storage.v2.NotificationConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA directive to publish Pub/Sub notifications upon changes to a bucket.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanA list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.booleanDeprecated.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.static NotificationConfigstatic final com.google.protobuf.Descriptors.DescriptorgetEtag()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.com.google.protobuf.ProtocolStringListIf 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.com.google.protobuf.Parser<NotificationConfig>Required.com.google.protobuf.ByteStringRequired.intgetTopic()Required.com.google.protobuf.ByteStringRequired.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic NotificationConfig.Builderstatic NotificationConfig.BuildernewBuilder(NotificationConfig prototype) protected NotificationConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static NotificationConfigparseDelimitedFrom(InputStream input) static NotificationConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NotificationConfigparseFrom(byte[] data) static NotificationConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NotificationConfigparseFrom(com.google.protobuf.ByteString data) static NotificationConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NotificationConfigparseFrom(com.google.protobuf.CodedInputStream input) static NotificationConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NotificationConfigparseFrom(InputStream input) static NotificationConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NotificationConfigparseFrom(ByteBuffer data) static NotificationConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NotificationConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
EVENT_TYPES_FIELD_NUMBER
public static final int EVENT_TYPES_FIELD_NUMBER- See Also:
-
CUSTOM_ATTRIBUTES_FIELD_NUMBER
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER- See Also:
-
OBJECT_NAME_PREFIX_FIELD_NUMBER
public static final int OBJECT_NAME_PREFIX_FIELD_NUMBER- See Also:
-
PAYLOAD_FORMAT_FIELD_NUMBER
public static final int PAYLOAD_FORMAT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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];- Specified by:
getNamein interfaceNotificationConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for name.
-
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];- Specified by:
getTopicin interfaceNotificationConfigOrBuilder- Returns:
- The topic.
-
getTopicBytes
public 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];- Specified by:
getTopicBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for topic.
-
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;- Specified by:
getEtagin interfaceNotificationConfigOrBuilder- Returns:
- The etag.
-
getEtagBytes
public 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;- Specified by:
getEtagBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for etag.
-
getEventTypesList
public com.google.protobuf.ProtocolStringList getEventTypesList()If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3;- Specified by:
getEventTypesListin interfaceNotificationConfigOrBuilder- Returns:
- A list containing the eventTypes.
-
getEventTypesCount
public int getEventTypesCount()If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3;- Specified by:
getEventTypesCountin interfaceNotificationConfigOrBuilder- 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;- Specified by:
getEventTypesin interfaceNotificationConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The eventTypes at the given index.
-
getEventTypesBytes
public 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;- Specified by:
getEventTypesBytesin interfaceNotificationConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the eventTypes at the given index.
-
getCustomAttributesCount
public int getCustomAttributesCount()Description copied from interface:NotificationConfigOrBuilderA list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4;- Specified by:
getCustomAttributesCountin interfaceNotificationConfigOrBuilder
-
containsCustomAttributes
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4;- Specified by:
containsCustomAttributesin interfaceNotificationConfigOrBuilder
-
getCustomAttributes
Deprecated.UsegetCustomAttributesMap()instead.- Specified by:
getCustomAttributesin interfaceNotificationConfigOrBuilder
-
getCustomAttributesMap
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4;- Specified by:
getCustomAttributesMapin interfaceNotificationConfigOrBuilder
-
getCustomAttributesOrDefault
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4;- Specified by:
getCustomAttributesOrDefaultin interfaceNotificationConfigOrBuilder
-
getCustomAttributesOrThrow
A list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4;- Specified by:
getCustomAttributesOrThrowin interfaceNotificationConfigOrBuilder
-
getObjectNamePrefix
If present, only apply this NotificationConfig to object names that begin with this prefix.
string object_name_prefix = 5;- Specified by:
getObjectNamePrefixin interfaceNotificationConfigOrBuilder- Returns:
- The objectNamePrefix.
-
getObjectNamePrefixBytes
public com.google.protobuf.ByteString getObjectNamePrefixBytes()If present, only apply this NotificationConfig to object names that begin with this prefix.
string object_name_prefix = 5;- Specified by:
getObjectNamePrefixBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for objectNamePrefix.
-
getPayloadFormat
Required. The desired content of the Payload.
string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPayloadFormatin interfaceNotificationConfigOrBuilder- Returns:
- The payloadFormat.
-
getPayloadFormatBytes
public com.google.protobuf.ByteString getPayloadFormatBytes()Required. The desired content of the Payload.
string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPayloadFormatBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for payloadFormat.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static NotificationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NotificationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NotificationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static NotificationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static NotificationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NotificationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-