public final class Notification extends com.google.protobuf.GeneratedMessageV3 implements NotificationOrBuilder
A directive to publish Pub/Sub notifications upon changes to a bucket.Protobuf type
google.storage.v2.Notification| Modifier and Type | Class and Description |
|---|---|
static class |
Notification.Builder
A directive to publish Pub/Sub notifications upon changes to a bucket.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CUSTOM_ATTRIBUTES_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
EVENT_TYPES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OBJECT_NAME_PREFIX_FIELD_NUMBER |
static int |
PAYLOAD_FORMAT_FIELD_NUMBER |
static int |
TOPIC_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCustomAttributes(String key)
A list of additional attributes to attach to each Pub/Sub
message published for this notification subscription.
|
boolean |
equals(Object obj) |
Map<String,String> |
getCustomAttributes()
Deprecated.
|
int |
getCustomAttributesCount()
A list of additional attributes to attach to each Pub/Sub
message published for this notification subscription.
|
Map<String,String> |
getCustomAttributesMap()
A list of additional attributes to attach to each Pub/Sub
message published for this notification subscription.
|
String |
getCustomAttributesOrDefault(String key,
String defaultValue)
A list of additional attributes to attach to each Pub/Sub
message published for this notification subscription.
|
String |
getCustomAttributesOrThrow(String key)
A list of additional attributes to attach to each Pub/Sub
message published for this notification subscription.
|
static Notification |
getDefaultInstance() |
Notification |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEtag()
The etag of the Notification.
|
com.google.protobuf.ByteString |
getEtagBytes()
The etag of the Notification.
|
String |
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 |
getEventTypesCount()
If present, only send notifications about listed event types.
|
com.google.protobuf.ProtocolStringList |
getEventTypesList()
If present, only send notifications about listed event types.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
String |
getObjectNamePrefix()
If present, only apply this notification config to object names that
begin with this prefix.
|
com.google.protobuf.ByteString |
getObjectNamePrefixBytes()
If present, only apply this notification config to object names that
begin with this prefix.
|
com.google.protobuf.Parser<Notification> |
getParserForType() |
String |
getPayloadFormat()
Required.
|
com.google.protobuf.ByteString |
getPayloadFormatBytes()
Required.
|
int |
getSerializedSize() |
String |
getTopic()
Required.
|
com.google.protobuf.ByteString |
getTopicBytes()
Required.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Notification.Builder |
newBuilder() |
static Notification.Builder |
newBuilder(Notification prototype) |
Notification.Builder |
newBuilderForType() |
protected Notification.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Notification |
parseDelimitedFrom(InputStream input) |
static Notification |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(byte[] data) |
static Notification |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(ByteBuffer data) |
static Notification |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(com.google.protobuf.ByteString data) |
static Notification |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Notification |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(InputStream input) |
static Notification |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Notification> |
parser() |
Notification.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int EVENT_TYPES_FIELD_NUMBER
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER
public static final int OBJECT_NAME_PREFIX_FIELD_NUMBER
public static final int PAYLOAD_FORMAT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Required. The resource name of this notification.
Format:
`projects/{project}/buckets/{bucket}/notificationConfigs/{notification}`
The `{project}` portion may be `_` for globally unique buckets.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The resource name of this notification.
Format:
`projects/{project}/buckets/{bucket}/notificationConfigs/{notification}`
The `{project}` portion may be `_` for globally unique buckets.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface NotificationOrBuilderpublic 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];getTopic in interface NotificationOrBuilderpublic 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];getTopicBytes in interface NotificationOrBuilderpublic String getEtag()
The etag of the Notification. If included in the metadata of GetNotificationRequest, the operation will only be performed if the etag matches that of the Notification.
string etag = 7;getEtag in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
The etag of the Notification. If included in the metadata of GetNotificationRequest, the operation will only be performed if the etag matches that of the Notification.
string etag = 7;getEtagBytes in interface NotificationOrBuilderpublic 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;getEventTypesList in interface NotificationOrBuilderpublic int getEventTypesCount()
If present, only send notifications about listed event types. If empty, sent notifications for all event types.
repeated string event_types = 3;getEventTypesCount in interface NotificationOrBuilderpublic 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;getEventTypes in interface NotificationOrBuilderindex - The index of the element to return.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;getEventTypesBytes in interface NotificationOrBuilderindex - The index of the value to return.public int getCustomAttributesCount()
NotificationOrBuilderA list of additional attributes to attach to each Pub/Sub message published for this notification subscription.
map<string, string> custom_attributes = 4;getCustomAttributesCount in interface NotificationOrBuilderpublic boolean containsCustomAttributes(String key)
A list of additional attributes to attach to each Pub/Sub message published for this notification subscription.
map<string, string> custom_attributes = 4;containsCustomAttributes in interface NotificationOrBuilder@Deprecated public Map<String,String> getCustomAttributes()
getCustomAttributesMap() instead.getCustomAttributes in interface NotificationOrBuilderpublic Map<String,String> getCustomAttributesMap()
A list of additional attributes to attach to each Pub/Sub message published for this notification subscription.
map<string, string> custom_attributes = 4;getCustomAttributesMap in interface NotificationOrBuilderpublic String getCustomAttributesOrDefault(String key, String defaultValue)
A list of additional attributes to attach to each Pub/Sub message published for this notification subscription.
map<string, string> custom_attributes = 4;getCustomAttributesOrDefault in interface NotificationOrBuilderpublic String getCustomAttributesOrThrow(String key)
A list of additional attributes to attach to each Pub/Sub message published for this notification subscription.
map<string, string> custom_attributes = 4;getCustomAttributesOrThrow in interface NotificationOrBuilderpublic String getObjectNamePrefix()
If present, only apply this notification config to object names that begin with this prefix.
string object_name_prefix = 5;getObjectNamePrefix in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getObjectNamePrefixBytes()
If present, only apply this notification config to object names that begin with this prefix.
string object_name_prefix = 5;getObjectNamePrefixBytes in interface NotificationOrBuilderpublic String getPayloadFormat()
Required. The desired content of the Payload.
string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];getPayloadFormat in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getPayloadFormatBytes()
Required. The desired content of the Payload.
string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];getPayloadFormatBytes in interface NotificationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Notification parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(InputStream input) throws IOException
IOExceptionpublic static Notification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Notification parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Notification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Notification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Notification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Notification.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Notification.Builder newBuilder()
public static Notification.Builder newBuilder(Notification prototype)
public Notification.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Notification.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Notification getDefaultInstance()
public static com.google.protobuf.Parser<Notification> parser()
public com.google.protobuf.Parser<Notification> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Notification getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.