Class NotificationChannelDescriptor.Builder (3.46.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
Type Description
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
Name Description
values Iterable<? extends com.google.api.LabelDescriptor>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.monitoring.v3.ServiceTier>

The supportedTiers to add.

Returns
Type Description
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
Name Description
values Iterable<Integer>

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

Returns
Type Description
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
Name Description
value com.google.api.LabelDescriptor
Returns
Type Description
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
Name Description
builderForValue com.google.api.LabelDescriptor.Builder
Returns
Type Description
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
Name Description
index int
value com.google.api.LabelDescriptor
Returns
Type Description
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
Name Description
index int
builderForValue com.google.api.LabelDescriptor.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
com.google.api.LabelDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationChannelDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value ServiceTier

The supportedTiers to add.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
NotificationChannelDescriptor.Builder

This builder for chaining.

build()

public NotificationChannelDescriptor build()
Returns
Type Description
NotificationChannelDescriptor

buildPartial()

public NotificationChannelDescriptor buildPartial()
Returns
Type Description
NotificationChannelDescriptor

clear()

public NotificationChannelDescriptor.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
NotificationChannelDescriptor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NotificationChannelDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
NotificationChannelDescriptor.Builder

clearLaunchStage()

public NotificationChannelDescriptor.Builder clearLaunchStage()

The product launch stage for channels of this type.

.google.api.LaunchStage launch_stage = 7;

Returns
Type Description
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
Type Description
NotificationChannelDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationChannelDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
NotificationChannelDescriptor.Builder

This builder for chaining.

clone()

public NotificationChannelDescriptor.Builder clone()
Returns
Type Description
NotificationChannelDescriptor.Builder
Overrides

getDefaultInstanceForType()

public NotificationChannelDescriptor getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NotificationChannelDescriptor other)

public NotificationChannelDescriptor.Builder mergeFrom(NotificationChannelDescriptor other)
Parameter
Name Description
other NotificationChannelDescriptor
Returns
Type Description
NotificationChannelDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationChannelDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotificationChannelDescriptor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NotificationChannelDescriptor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NotificationChannelDescriptor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationChannelDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
NotificationChannelDescriptor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationChannelDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value com.google.api.LabelDescriptor
Returns
Type Description
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
Name Description
index int
builderForValue com.google.api.LabelDescriptor.Builder
Returns
Type Description
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
Name Description
value com.google.api.LaunchStage

The launchStage to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value ServiceTier

The supportedTiers to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
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
Name Description
value String

The type to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
NotificationChannelDescriptor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationChannelDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationChannelDescriptor.Builder
Overrides