Class NotificationChannelDescriptor.Builder (3.38.0)

public static final class NotificationChannelDescriptor.Builder extends GeneratedMessageV3.Builder<NotificationChannelDescriptor.Builder> implements NotificationChannelDescriptorOrBuilder

A description of a notification channel. The descriptor includes the properties of the channel and the set of labels or fields that must be specified to configure channels of a given type.

Protobuf type google.monitoring.v3.NotificationChannelDescriptor

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLabels(Iterable<? extends LabelDescriptor> values)

public NotificationChannelDescriptor.Builder addAllLabels(Iterable<? extends LabelDescriptor> values)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.api.LabelDescriptor>
Returns
TypeDescription
NotificationChannelDescriptor.Builder

addAllSupportedTiers(Iterable<? extends ServiceTier> values) (deprecated)

public NotificationChannelDescriptor.Builder addAllSupportedTiers(Iterable<? extends ServiceTier> values)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.v3.ServiceTier>

The supportedTiers to add.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

addAllSupportedTiersValue(Iterable<Integer> values) (deprecated)

public NotificationChannelDescriptor.Builder addAllSupportedTiersValue(Iterable<Integer> values)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for supportedTiers to add.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

addLabels(LabelDescriptor value)

public NotificationChannelDescriptor.Builder addLabels(LabelDescriptor value)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
valuecom.google.api.LabelDescriptor
Returns
TypeDescription
NotificationChannelDescriptor.Builder

addLabels(LabelDescriptor.Builder builderForValue)

public NotificationChannelDescriptor.Builder addLabels(LabelDescriptor.Builder builderForValue)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
builderForValuecom.google.api.LabelDescriptor.Builder
Returns
TypeDescription
NotificationChannelDescriptor.Builder

addLabels(int index, LabelDescriptor value)

public NotificationChannelDescriptor.Builder addLabels(int index, LabelDescriptor value)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameters
NameDescription
indexint
valuecom.google.api.LabelDescriptor
Returns
TypeDescription
NotificationChannelDescriptor.Builder

addLabels(int index, LabelDescriptor.Builder builderForValue)

public NotificationChannelDescriptor.Builder addLabels(int index, LabelDescriptor.Builder builderForValue)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameters
NameDescription
indexint
builderForValuecom.google.api.LabelDescriptor.Builder
Returns
TypeDescription
NotificationChannelDescriptor.Builder

addLabelsBuilder()

public LabelDescriptor.Builder addLabelsBuilder()

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Returns
TypeDescription
com.google.api.LabelDescriptor.Builder

addLabelsBuilder(int index)

public LabelDescriptor.Builder addLabelsBuilder(int index)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.LabelDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationChannelDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

addSupportedTiers(ServiceTier value) (deprecated)

public NotificationChannelDescriptor.Builder addSupportedTiers(ServiceTier value)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameter
NameDescription
valueServiceTier

The supportedTiers to add.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

addSupportedTiersValue(int value) (deprecated)

public NotificationChannelDescriptor.Builder addSupportedTiersValue(int value)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameter
NameDescription
valueint

The enum numeric value on the wire for supportedTiers to add.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

build()

public NotificationChannelDescriptor build()
Returns
TypeDescription
NotificationChannelDescriptor

buildPartial()

public NotificationChannelDescriptor buildPartial()
Returns
TypeDescription
NotificationChannelDescriptor

clear()

public NotificationChannelDescriptor.Builder clear()
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

clearDescription()

public NotificationChannelDescriptor.Builder clearDescription()

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.

string description = 3;

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

clearDisplayName()

public NotificationChannelDescriptor.Builder clearDisplayName()

A human-readable name for the notification channel type. This form of the name is suitable for a user interface.

string display_name = 2;

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NotificationChannelDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

clearLabels()

public NotificationChannelDescriptor.Builder clearLabels()

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Returns
TypeDescription
NotificationChannelDescriptor.Builder

clearLaunchStage()

public NotificationChannelDescriptor.Builder clearLaunchStage()

The product launch stage for channels of this type.

.google.api.LaunchStage launch_stage = 7;

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

clearName()

public NotificationChannelDescriptor.Builder clearName()

The full REST resource name for this descriptor. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]

In the above, [TYPE] is the value of the type field.

string name = 6;

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationChannelDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

clearSupportedTiers() (deprecated)

public NotificationChannelDescriptor.Builder clearSupportedTiers()

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

clearType()

public NotificationChannelDescriptor.Builder clearType()

The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors. Notification channel types are globally unique.

string type = 1;

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

clone()

public NotificationChannelDescriptor.Builder clone()
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

getDefaultInstanceForType()

public NotificationChannelDescriptor getDefaultInstanceForType()
Returns
TypeDescription
NotificationChannelDescriptor

getDescription()

public String getDescription()

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

A human-readable name for the notification channel type. This form of the name is suitable for a user interface.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A human-readable name for the notification channel type. This form of the name is suitable for a user interface.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLabels(int index)

public LabelDescriptor getLabels(int index)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.LabelDescriptor

getLabelsBuilder(int index)

public LabelDescriptor.Builder getLabelsBuilder(int index)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.LabelDescriptor.Builder

getLabelsBuilderList()

public List<LabelDescriptor.Builder> getLabelsBuilderList()

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Returns
TypeDescription
List<com.google.api.LabelDescriptor.Builder>

getLabelsCount()

public int getLabelsCount()

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Returns
TypeDescription
int

getLabelsList()

public List<LabelDescriptor> getLabelsList()

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Returns
TypeDescription
List<com.google.api.LabelDescriptor>

getLabelsOrBuilder(int index)

public LabelDescriptorOrBuilder getLabelsOrBuilder(int index)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.LabelDescriptorOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelDescriptorOrBuilder> getLabelsOrBuilderList()

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Returns
TypeDescription
List<? extends com.google.api.LabelDescriptorOrBuilder>

getLaunchStage()

public LaunchStage getLaunchStage()

The product launch stage for channels of this type.

.google.api.LaunchStage launch_stage = 7;

Returns
TypeDescription
com.google.api.LaunchStage

The launchStage.

getLaunchStageValue()

public int getLaunchStageValue()

The product launch stage for channels of this type.

.google.api.LaunchStage launch_stage = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for launchStage.

getName()

public String getName()

The full REST resource name for this descriptor. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]

In the above, [TYPE] is the value of the type field.

string name = 6;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The full REST resource name for this descriptor. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]

In the above, [TYPE] is the value of the type field.

string name = 6;

Returns
TypeDescription
ByteString

The bytes for name.

getSupportedTiers(int index) (deprecated)

public ServiceTier getSupportedTiers(int index)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ServiceTier

The supportedTiers at the given index.

getSupportedTiersCount() (deprecated)

public int getSupportedTiersCount()

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Returns
TypeDescription
int

The count of supportedTiers.

getSupportedTiersList() (deprecated)

public List<ServiceTier> getSupportedTiersList()

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Returns
TypeDescription
List<ServiceTier>

A list containing the supportedTiers.

getSupportedTiersValue(int index) (deprecated)

public int getSupportedTiersValue(int index)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of supportedTiers at the given index.

getSupportedTiersValueList() (deprecated)

public List<Integer> getSupportedTiersValueList()

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for supportedTiers.

getType()

public String getType()

The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors. Notification channel types are globally unique.

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors. Notification channel types are globally unique.

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationChannelDescriptor other)

public NotificationChannelDescriptor.Builder mergeFrom(NotificationChannelDescriptor other)
Parameter
NameDescription
otherNotificationChannelDescriptor
Returns
TypeDescription
NotificationChannelDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationChannelDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationChannelDescriptor.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationChannelDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

removeLabels(int index)

public NotificationChannelDescriptor.Builder removeLabels(int index)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
NotificationChannelDescriptor.Builder

setDescription(String value)

public NotificationChannelDescriptor.Builder setDescription(String value)

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NotificationChannelDescriptor.Builder setDescriptionBytes(ByteString value)

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setDisplayName(String value)

public NotificationChannelDescriptor.Builder setDisplayName(String value)

A human-readable name for the notification channel type. This form of the name is suitable for a user interface.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public NotificationChannelDescriptor.Builder setDisplayNameBytes(ByteString value)

A human-readable name for the notification channel type. This form of the name is suitable for a user interface.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationChannelDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

setLabels(int index, LabelDescriptor value)

public NotificationChannelDescriptor.Builder setLabels(int index, LabelDescriptor value)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameters
NameDescription
indexint
valuecom.google.api.LabelDescriptor
Returns
TypeDescription
NotificationChannelDescriptor.Builder

setLabels(int index, LabelDescriptor.Builder builderForValue)

public NotificationChannelDescriptor.Builder setLabels(int index, LabelDescriptor.Builder builderForValue)

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated.

repeated .google.api.LabelDescriptor labels = 4;

Parameters
NameDescription
indexint
builderForValuecom.google.api.LabelDescriptor.Builder
Returns
TypeDescription
NotificationChannelDescriptor.Builder

setLaunchStage(LaunchStage value)

public NotificationChannelDescriptor.Builder setLaunchStage(LaunchStage value)

The product launch stage for channels of this type.

.google.api.LaunchStage launch_stage = 7;

Parameter
NameDescription
valuecom.google.api.LaunchStage

The launchStage to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setLaunchStageValue(int value)

public NotificationChannelDescriptor.Builder setLaunchStageValue(int value)

The product launch stage for channels of this type.

.google.api.LaunchStage launch_stage = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for launchStage to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setName(String value)

public NotificationChannelDescriptor.Builder setName(String value)

The full REST resource name for this descriptor. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]

In the above, [TYPE] is the value of the type field.

string name = 6;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NotificationChannelDescriptor.Builder setNameBytes(ByteString value)

The full REST resource name for this descriptor. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]

In the above, [TYPE] is the value of the type field.

string name = 6;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NotificationChannelDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides

setSupportedTiers(int index, ServiceTier value) (deprecated)

public NotificationChannelDescriptor.Builder setSupportedTiers(int index, ServiceTier value)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameters
NameDescription
indexint

The index to set the value at.

valueServiceTier

The supportedTiers to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setSupportedTiersValue(int index, int value) (deprecated)

public NotificationChannelDescriptor.Builder setSupportedTiersValue(int index, int value)

Deprecated. google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75

The tiers that support this notification channel; the project service tier must be one of the supported_tiers.

repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for supportedTiers to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setType(String value)

public NotificationChannelDescriptor.Builder setType(String value)

The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors. Notification channel types are globally unique.

string type = 1;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public NotificationChannelDescriptor.Builder setTypeBytes(ByteString value)

The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors. Notification channel types are globally unique.

string type = 1;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
NotificationChannelDescriptor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationChannelDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationChannelDescriptor.Builder
Overrides