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| Modifier and Type | Class and Description |
|---|---|
static class |
NotificationConfig.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 NotificationConfig.
|
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 NotificationConfig.
|
Map<String,String> |
getCustomAttributesMap()
A list of additional attributes to attach to each Pub/Sub
message published for this NotificationConfig.
|
String |
getCustomAttributesOrDefault(String key,
String defaultValue)
A list of additional attributes to attach to each Pub/Sub
message published for this NotificationConfig.
|
String |
getCustomAttributesOrThrow(String key)
A list of additional attributes to attach to each Pub/Sub
message published for this NotificationConfig.
|
static NotificationConfig |
getDefaultInstance() |
NotificationConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEtag()
The etag of the NotificationConfig.
|
com.google.protobuf.ByteString |
getEtagBytes()
The etag of the NotificationConfig.
|
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 NotificationConfig to object names that
begin with this prefix.
|
com.google.protobuf.ByteString |
getObjectNamePrefixBytes()
If present, only apply this NotificationConfig to object names that
begin with this prefix.
|
com.google.protobuf.Parser<NotificationConfig> |
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 NotificationConfig.Builder |
newBuilder() |
static NotificationConfig.Builder |
newBuilder(NotificationConfig prototype) |
NotificationConfig.Builder |
newBuilderForType() |
protected NotificationConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static NotificationConfig |
parseDelimitedFrom(InputStream input) |
static NotificationConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationConfig |
parseFrom(byte[] data) |
static NotificationConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationConfig |
parseFrom(ByteBuffer data) |
static NotificationConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationConfig |
parseFrom(com.google.protobuf.ByteString data) |
static NotificationConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static NotificationConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationConfig |
parseFrom(InputStream input) |
static NotificationConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<NotificationConfig> |
parser() |
NotificationConfig.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 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];getName in interface NotificationConfigOrBuilderpublic 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];getNameBytes in interface NotificationConfigOrBuilderpublic 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 NotificationConfigOrBuilderpublic 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 NotificationConfigOrBuilderpublic 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;getEtag in interface NotificationConfigOrBuilderpublic 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;getEtagBytes in interface NotificationConfigOrBuilderpublic 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 NotificationConfigOrBuilderpublic 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 NotificationConfigOrBuilderpublic 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 NotificationConfigOrBuilderindex - 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 NotificationConfigOrBuilderindex - The index of the value to return.public int getCustomAttributesCount()
NotificationConfigOrBuilderA list of additional attributes to attach to each Pub/Sub message published for this NotificationConfig.
map<string, string> custom_attributes = 4;getCustomAttributesCount in interface NotificationConfigOrBuilderpublic 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;containsCustomAttributes in interface NotificationConfigOrBuilder@Deprecated public Map<String,String> getCustomAttributes()
getCustomAttributesMap() instead.getCustomAttributes in interface NotificationConfigOrBuilderpublic 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;getCustomAttributesMap in interface NotificationConfigOrBuilderpublic 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;getCustomAttributesOrDefault in interface NotificationConfigOrBuilderpublic 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;getCustomAttributesOrThrow in interface NotificationConfigOrBuilderpublic String getObjectNamePrefix()
If present, only apply this NotificationConfig to object names that begin with this prefix.
string object_name_prefix = 5;getObjectNamePrefix in interface NotificationConfigOrBuilderpublic com.google.protobuf.ByteString getObjectNamePrefixBytes()
If present, only apply this NotificationConfig to object names that begin with this prefix.
string object_name_prefix = 5;getObjectNamePrefixBytes in interface NotificationConfigOrBuilderpublic String getPayloadFormat()
Required. The desired content of the Payload.
string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];getPayloadFormat in interface NotificationConfigOrBuilderpublic com.google.protobuf.ByteString getPayloadFormatBytes()
Required. The desired content of the Payload.
string payload_format = 6 [(.google.api.field_behavior) = REQUIRED];getPayloadFormatBytes in interface NotificationConfigOrBuilderpublic 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 NotificationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NotificationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NotificationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NotificationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NotificationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NotificationConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static NotificationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NotificationConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static NotificationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NotificationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static NotificationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic NotificationConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static NotificationConfig.Builder newBuilder()
public static NotificationConfig.Builder newBuilder(NotificationConfig prototype)
public NotificationConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected NotificationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static NotificationConfig getDefaultInstance()
public static com.google.protobuf.Parser<NotificationConfig> parser()
public com.google.protobuf.Parser<NotificationConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public NotificationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.