public static final class NotificationChannel.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder> implements NotificationChannelOrBuilder
A `NotificationChannel` is a medium through which an alert is delivered when a policy violation is detected. Examples of channels include email, SMS, and third-party messaging applications. Fields containing sensitive information like authentication tokens or contact info are only partially populated on retrieval.Protobuf type
google.monitoring.v3.NotificationChannel| Modifier and Type | Method and Description |
|---|---|
NotificationChannel.Builder |
addAllMutationRecords(Iterable<? extends MutationRecord> values)
Records of the modification of this channel.
|
NotificationChannel.Builder |
addMutationRecords(int index,
MutationRecord.Builder builderForValue)
Records of the modification of this channel.
|
NotificationChannel.Builder |
addMutationRecords(int index,
MutationRecord value)
Records of the modification of this channel.
|
NotificationChannel.Builder |
addMutationRecords(MutationRecord.Builder builderForValue)
Records of the modification of this channel.
|
NotificationChannel.Builder |
addMutationRecords(MutationRecord value)
Records of the modification of this channel.
|
MutationRecord.Builder |
addMutationRecordsBuilder()
Records of the modification of this channel.
|
MutationRecord.Builder |
addMutationRecordsBuilder(int index)
Records of the modification of this channel.
|
NotificationChannel.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NotificationChannel |
build() |
NotificationChannel |
buildPartial() |
NotificationChannel.Builder |
clear() |
NotificationChannel.Builder |
clearCreationRecord()
Record of the creation of this channel.
|
NotificationChannel.Builder |
clearDescription()
An optional human-readable description of this notification channel.
|
NotificationChannel.Builder |
clearDisplayName()
An optional human-readable name for this notification channel.
|
NotificationChannel.Builder |
clearEnabled()
Whether notifications are forwarded to the described channel.
|
NotificationChannel.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
NotificationChannel.Builder |
clearLabels() |
NotificationChannel.Builder |
clearMutationRecords()
Records of the modification of this channel.
|
NotificationChannel.Builder |
clearName()
The full REST resource name for this channel.
|
NotificationChannel.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
NotificationChannel.Builder |
clearType()
The type of the notification channel.
|
NotificationChannel.Builder |
clearUserLabels() |
NotificationChannel.Builder |
clearVerificationStatus()
Indicates whether this channel has been verified or not.
|
NotificationChannel.Builder |
clone() |
boolean |
containsLabels(String key)
Configuration fields that define the channel and its behavior.
|
boolean |
containsUserLabels(String key)
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
MutationRecord |
getCreationRecord()
Record of the creation of this channel.
|
MutationRecord.Builder |
getCreationRecordBuilder()
Record of the creation of this channel.
|
MutationRecordOrBuilder |
getCreationRecordOrBuilder()
Record of the creation of this channel.
|
NotificationChannel |
getDefaultInstanceForType() |
String |
getDescription()
An optional human-readable description of this notification channel.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional human-readable description of this notification channel.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
An optional human-readable name for this notification channel.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
An optional human-readable name for this notification channel.
|
com.google.protobuf.BoolValue |
getEnabled()
Whether notifications are forwarded to the described channel.
|
com.google.protobuf.BoolValue.Builder |
getEnabledBuilder()
Whether notifications are forwarded to the described channel.
|
com.google.protobuf.BoolValueOrBuilder |
getEnabledOrBuilder()
Whether notifications are forwarded to the described channel.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Configuration fields that define the channel and its behavior.
|
Map<String,String> |
getLabelsMap()
Configuration fields that define the channel and its behavior.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Configuration fields that define the channel and its behavior.
|
String |
getLabelsOrThrow(String key)
Configuration fields that define the channel and its behavior.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
Map<String,String> |
getMutableUserLabels()
Deprecated.
|
MutationRecord |
getMutationRecords(int index)
Records of the modification of this channel.
|
MutationRecord.Builder |
getMutationRecordsBuilder(int index)
Records of the modification of this channel.
|
List<MutationRecord.Builder> |
getMutationRecordsBuilderList()
Records of the modification of this channel.
|
int |
getMutationRecordsCount()
Records of the modification of this channel.
|
List<MutationRecord> |
getMutationRecordsList()
Records of the modification of this channel.
|
MutationRecordOrBuilder |
getMutationRecordsOrBuilder(int index)
Records of the modification of this channel.
|
List<? extends MutationRecordOrBuilder> |
getMutationRecordsOrBuilderList()
Records of the modification of this channel.
|
String |
getName()
The full REST resource name for this channel.
|
com.google.protobuf.ByteString |
getNameBytes()
The full REST resource name for this channel.
|
String |
getType()
The type of the notification channel.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of the notification channel.
|
Map<String,String> |
getUserLabels()
Deprecated.
|
int |
getUserLabelsCount()
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
Map<String,String> |
getUserLabelsMap()
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
String |
getUserLabelsOrDefault(String key,
String defaultValue)
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
String |
getUserLabelsOrThrow(String key)
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
NotificationChannel.VerificationStatus |
getVerificationStatus()
Indicates whether this channel has been verified or not.
|
int |
getVerificationStatusValue()
Indicates whether this channel has been verified or not.
|
boolean |
hasCreationRecord()
Record of the creation of this channel.
|
boolean |
hasEnabled()
Whether notifications are forwarded to the described channel.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
NotificationChannel.Builder |
mergeCreationRecord(MutationRecord value)
Record of the creation of this channel.
|
NotificationChannel.Builder |
mergeEnabled(com.google.protobuf.BoolValue value)
Whether notifications are forwarded to the described channel.
|
NotificationChannel.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NotificationChannel.Builder |
mergeFrom(com.google.protobuf.Message other) |
NotificationChannel.Builder |
mergeFrom(NotificationChannel other) |
NotificationChannel.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
NotificationChannel.Builder |
putAllLabels(Map<String,String> values)
Configuration fields that define the channel and its behavior.
|
NotificationChannel.Builder |
putAllUserLabels(Map<String,String> values)
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
NotificationChannel.Builder |
putLabels(String key,
String value)
Configuration fields that define the channel and its behavior.
|
NotificationChannel.Builder |
putUserLabels(String key,
String value)
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
NotificationChannel.Builder |
removeLabels(String key)
Configuration fields that define the channel and its behavior.
|
NotificationChannel.Builder |
removeMutationRecords(int index)
Records of the modification of this channel.
|
NotificationChannel.Builder |
removeUserLabels(String key)
User-supplied key/value data that does not need to conform to
the corresponding `NotificationChannelDescriptor`'s schema, unlike
the `labels` field.
|
NotificationChannel.Builder |
setCreationRecord(MutationRecord.Builder builderForValue)
Record of the creation of this channel.
|
NotificationChannel.Builder |
setCreationRecord(MutationRecord value)
Record of the creation of this channel.
|
NotificationChannel.Builder |
setDescription(String value)
An optional human-readable description of this notification channel.
|
NotificationChannel.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional human-readable description of this notification channel.
|
NotificationChannel.Builder |
setDisplayName(String value)
An optional human-readable name for this notification channel.
|
NotificationChannel.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
An optional human-readable name for this notification channel.
|
NotificationChannel.Builder |
setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
Whether notifications are forwarded to the described channel.
|
NotificationChannel.Builder |
setEnabled(com.google.protobuf.BoolValue value)
Whether notifications are forwarded to the described channel.
|
NotificationChannel.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NotificationChannel.Builder |
setMutationRecords(int index,
MutationRecord.Builder builderForValue)
Records of the modification of this channel.
|
NotificationChannel.Builder |
setMutationRecords(int index,
MutationRecord value)
Records of the modification of this channel.
|
NotificationChannel.Builder |
setName(String value)
The full REST resource name for this channel.
|
NotificationChannel.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The full REST resource name for this channel.
|
NotificationChannel.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
NotificationChannel.Builder |
setType(String value)
The type of the notification channel.
|
NotificationChannel.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The type of the notification channel.
|
NotificationChannel.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
NotificationChannel.Builder |
setVerificationStatus(NotificationChannel.VerificationStatus value)
Indicates whether this channel has been verified or not.
|
NotificationChannel.Builder |
setVerificationStatusValue(int value)
Indicates whether this channel has been verified or not.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NotificationChannel build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NotificationChannel buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NotificationChannel.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationChannel.Builder>public NotificationChannel.Builder mergeFrom(NotificationChannel other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public NotificationChannel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationChannel.Builder>IOExceptionpublic String getType()
The type of the notification channel. This field matches the value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
string type = 1;getType in interface NotificationChannelOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The type of the notification channel. This field matches the value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
string type = 1;getTypeBytes in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setType(String value)
The type of the notification channel. This field matches the value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
string type = 1;value - The type to set.public NotificationChannel.Builder clearType()
The type of the notification channel. This field matches the value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
string type = 1;public NotificationChannel.Builder setTypeBytes(com.google.protobuf.ByteString value)
The type of the notification channel. This field matches the value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
string type = 1;value - The bytes for type to set.public String getName()
The full REST resource name for this channel. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
The `[CHANNEL_ID]` is automatically assigned by the server on creation.
string name = 6;getName in interface NotificationChannelOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The full REST resource name for this channel. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
The `[CHANNEL_ID]` is automatically assigned by the server on creation.
string name = 6;getNameBytes in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setName(String value)
The full REST resource name for this channel. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
The `[CHANNEL_ID]` is automatically assigned by the server on creation.
string name = 6;value - The name to set.public NotificationChannel.Builder clearName()
The full REST resource name for this channel. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
The `[CHANNEL_ID]` is automatically assigned by the server on creation.
string name = 6;public NotificationChannel.Builder setNameBytes(com.google.protobuf.ByteString value)
The full REST resource name for this channel. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
The `[CHANNEL_ID]` is automatically assigned by the server on creation.
string name = 6;value - The bytes for name to set.public String getDisplayName()
An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters.
string display_name = 3;getDisplayName in interface NotificationChannelOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters.
string display_name = 3;getDisplayNameBytes in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setDisplayName(String value)
An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters.
string display_name = 3;value - The displayName to set.public NotificationChannel.Builder clearDisplayName()
An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters.
string display_name = 3;public NotificationChannel.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters.
string display_name = 3;value - The bytes for displayName to set.public String getDescription()
An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceed 1024 Unicode characters.
string description = 4;getDescription in interface NotificationChannelOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceed 1024 Unicode characters.
string description = 4;getDescriptionBytes in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setDescription(String value)
An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceed 1024 Unicode characters.
string description = 4;value - The description to set.public NotificationChannel.Builder clearDescription()
An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceed 1024 Unicode characters.
string description = 4;public NotificationChannel.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceed 1024 Unicode characters.
string description = 4;value - The bytes for description to set.public int getLabelsCount()
NotificationChannelOrBuilderConfiguration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;getLabelsCount in interface NotificationChannelOrBuilderpublic boolean containsLabels(String key)
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;containsLabels in interface NotificationChannelOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface NotificationChannelOrBuilderpublic Map<String,String> getLabelsMap()
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;getLabelsMap in interface NotificationChannelOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;getLabelsOrDefault in interface NotificationChannelOrBuilderpublic String getLabelsOrThrow(String key)
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;getLabelsOrThrow in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder clearLabels()
public NotificationChannel.Builder removeLabels(String key)
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;@Deprecated public Map<String,String> getMutableLabels()
public NotificationChannel.Builder putLabels(String key, String value)
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;public NotificationChannel.Builder putAllLabels(Map<String,String> values)
Configuration fields that define the channel and its behavior. The permissible and required labels are specified in the [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the `NotificationChannelDescriptor` corresponding to the `type` field.
map<string, string> labels = 5;public int getUserLabelsCount()
NotificationChannelOrBuilderUser-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;getUserLabelsCount in interface NotificationChannelOrBuilderpublic boolean containsUserLabels(String key)
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;containsUserLabels in interface NotificationChannelOrBuilder@Deprecated public Map<String,String> getUserLabels()
getUserLabelsMap() instead.getUserLabels in interface NotificationChannelOrBuilderpublic Map<String,String> getUserLabelsMap()
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;getUserLabelsMap in interface NotificationChannelOrBuilderpublic String getUserLabelsOrDefault(String key, String defaultValue)
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;getUserLabelsOrDefault in interface NotificationChannelOrBuilderpublic String getUserLabelsOrThrow(String key)
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;getUserLabelsOrThrow in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder clearUserLabels()
public NotificationChannel.Builder removeUserLabels(String key)
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;@Deprecated public Map<String,String> getMutableUserLabels()
public NotificationChannel.Builder putUserLabels(String key, String value)
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;public NotificationChannel.Builder putAllUserLabels(Map<String,String> values)
User-supplied key/value data that does not need to conform to the corresponding `NotificationChannelDescriptor`'s schema, unlike the `labels` field. This field is intended to be used for organizing and identifying the `NotificationChannel` objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
map<string, string> user_labels = 8;public int getVerificationStatusValue()
Indicates whether this channel has been verified or not. On a [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels] or [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation, this field is expected to be populated. If the value is `UNVERIFIED`, then it indicates that the channel is non-functioning (it both requires verification and lacks verification); otherwise, it is assumed that the channel works. If the channel is neither `VERIFIED` nor `UNVERIFIED`, it implies that the channel is of a type that does not require verification or that this specific channel has been exempted from verification because it was created prior to verification being required for channels of this type. This field cannot be modified using a standard [`UpdateNotificationChannel`][google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel] operation. To change the value of this field, you must call [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
.google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
getVerificationStatusValue in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setVerificationStatusValue(int value)
Indicates whether this channel has been verified or not. On a [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels] or [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation, this field is expected to be populated. If the value is `UNVERIFIED`, then it indicates that the channel is non-functioning (it both requires verification and lacks verification); otherwise, it is assumed that the channel works. If the channel is neither `VERIFIED` nor `UNVERIFIED`, it implies that the channel is of a type that does not require verification or that this specific channel has been exempted from verification because it was created prior to verification being required for channels of this type. This field cannot be modified using a standard [`UpdateNotificationChannel`][google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel] operation. To change the value of this field, you must call [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
.google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
value - The enum numeric value on the wire for verificationStatus to set.public NotificationChannel.VerificationStatus getVerificationStatus()
Indicates whether this channel has been verified or not. On a [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels] or [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation, this field is expected to be populated. If the value is `UNVERIFIED`, then it indicates that the channel is non-functioning (it both requires verification and lacks verification); otherwise, it is assumed that the channel works. If the channel is neither `VERIFIED` nor `UNVERIFIED`, it implies that the channel is of a type that does not require verification or that this specific channel has been exempted from verification because it was created prior to verification being required for channels of this type. This field cannot be modified using a standard [`UpdateNotificationChannel`][google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel] operation. To change the value of this field, you must call [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
.google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
getVerificationStatus in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setVerificationStatus(NotificationChannel.VerificationStatus value)
Indicates whether this channel has been verified or not. On a [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels] or [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation, this field is expected to be populated. If the value is `UNVERIFIED`, then it indicates that the channel is non-functioning (it both requires verification and lacks verification); otherwise, it is assumed that the channel works. If the channel is neither `VERIFIED` nor `UNVERIFIED`, it implies that the channel is of a type that does not require verification or that this specific channel has been exempted from verification because it was created prior to verification being required for channels of this type. This field cannot be modified using a standard [`UpdateNotificationChannel`][google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel] operation. To change the value of this field, you must call [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
.google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
value - The verificationStatus to set.public NotificationChannel.Builder clearVerificationStatus()
Indicates whether this channel has been verified or not. On a [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels] or [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation, this field is expected to be populated. If the value is `UNVERIFIED`, then it indicates that the channel is non-functioning (it both requires verification and lacks verification); otherwise, it is assumed that the channel works. If the channel is neither `VERIFIED` nor `UNVERIFIED`, it implies that the channel is of a type that does not require verification or that this specific channel has been exempted from verification because it was created prior to verification being required for channels of this type. This field cannot be modified using a standard [`UpdateNotificationChannel`][google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel] operation. To change the value of this field, you must call [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
.google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
public boolean hasEnabled()
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;hasEnabled in interface NotificationChannelOrBuilderpublic com.google.protobuf.BoolValue getEnabled()
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;getEnabled in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setEnabled(com.google.protobuf.BoolValue value)
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;public NotificationChannel.Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;public NotificationChannel.Builder mergeEnabled(com.google.protobuf.BoolValue value)
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;public NotificationChannel.Builder clearEnabled()
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;public com.google.protobuf.BoolValue.Builder getEnabledBuilder()
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future.
.google.protobuf.BoolValue enabled = 11;getEnabledOrBuilder in interface NotificationChannelOrBuilderpublic boolean hasCreationRecord()
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;hasCreationRecord in interface NotificationChannelOrBuilderpublic MutationRecord getCreationRecord()
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;getCreationRecord in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setCreationRecord(MutationRecord value)
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;public NotificationChannel.Builder setCreationRecord(MutationRecord.Builder builderForValue)
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;public NotificationChannel.Builder mergeCreationRecord(MutationRecord value)
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;public NotificationChannel.Builder clearCreationRecord()
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;public MutationRecord.Builder getCreationRecordBuilder()
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;public MutationRecordOrBuilder getCreationRecordOrBuilder()
Record of the creation of this channel.
.google.monitoring.v3.MutationRecord creation_record = 12;getCreationRecordOrBuilder in interface NotificationChannelOrBuilderpublic List<MutationRecord> getMutationRecordsList()
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;getMutationRecordsList in interface NotificationChannelOrBuilderpublic int getMutationRecordsCount()
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;getMutationRecordsCount in interface NotificationChannelOrBuilderpublic MutationRecord getMutationRecords(int index)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;getMutationRecords in interface NotificationChannelOrBuilderpublic NotificationChannel.Builder setMutationRecords(int index, MutationRecord value)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder setMutationRecords(int index, MutationRecord.Builder builderForValue)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder addMutationRecords(MutationRecord value)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder addMutationRecords(int index, MutationRecord value)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder addMutationRecords(MutationRecord.Builder builderForValue)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder addMutationRecords(int index, MutationRecord.Builder builderForValue)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder addAllMutationRecords(Iterable<? extends MutationRecord> values)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder clearMutationRecords()
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public NotificationChannel.Builder removeMutationRecords(int index)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public MutationRecord.Builder getMutationRecordsBuilder(int index)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public MutationRecordOrBuilder getMutationRecordsOrBuilder(int index)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;getMutationRecordsOrBuilder in interface NotificationChannelOrBuilderpublic List<? extends MutationRecordOrBuilder> getMutationRecordsOrBuilderList()
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;getMutationRecordsOrBuilderList in interface NotificationChannelOrBuilderpublic MutationRecord.Builder addMutationRecordsBuilder()
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public MutationRecord.Builder addMutationRecordsBuilder(int index)
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public List<MutationRecord.Builder> getMutationRecordsBuilderList()
Records of the modification of this channel.
repeated .google.monitoring.v3.MutationRecord mutation_records = 13;public final NotificationChannel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>public final NotificationChannel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannel.Builder>Copyright © 2024 Google LLC. All rights reserved.