Package com.google.monitoring.v3
Class NotificationChannelDescriptor
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.monitoring.v3.NotificationChannelDescriptor
-
- All Implemented Interfaces:
NotificationChannelDescriptorOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class NotificationChannelDescriptor extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.monitoring.v3.NotificationChannelDescriptor- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationChannelDescriptor.BuilderA description of a notification channel.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDESCRIPTION_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intLAUNCH_STAGE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSUPPORTED_TIERS_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)static NotificationChannelDescriptorgetDefaultInstance()NotificationChannelDescriptorgetDefaultInstanceForType()StringgetDescription()A human-readable description of the notification channel type.com.google.protobuf.ByteStringgetDescriptionBytes()A human-readable description of the notification channel type.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()A human-readable name for the notification channel type.com.google.protobuf.ByteStringgetDisplayNameBytes()A human-readable name for the notification channel type.com.google.api.LabelDescriptorgetLabels(int index)The set of labels that must be defined to identify a particular channel of the corresponding type.intgetLabelsCount()The set of labels that must be defined to identify a particular channel of the corresponding type.List<com.google.api.LabelDescriptor>getLabelsList()The set of labels that must be defined to identify a particular channel of the corresponding type.com.google.api.LabelDescriptorOrBuildergetLabelsOrBuilder(int index)The set of labels that must be defined to identify a particular channel of the corresponding type.List<? extends com.google.api.LabelDescriptorOrBuilder>getLabelsOrBuilderList()The set of labels that must be defined to identify a particular channel of the corresponding type.com.google.api.LaunchStagegetLaunchStage()The product launch stage for channels of this type.intgetLaunchStageValue()The product launch stage for channels of this type.StringgetName()The full REST resource name for this descriptor.com.google.protobuf.ByteStringgetNameBytes()The full REST resource name for this descriptor.com.google.protobuf.Parser<NotificationChannelDescriptor>getParserForType()intgetSerializedSize()ServiceTiergetSupportedTiers(int index)Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated.intgetSupportedTiersCount()Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated.List<ServiceTier>getSupportedTiersList()Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated.intgetSupportedTiersValue(int index)Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated.List<Integer>getSupportedTiersValueList()Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated.StringgetType()The type of notification channel, such as "email" and "sms".com.google.protobuf.ByteStringgetTypeBytes()The type of notification channel, such as "email" and "sms".inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static NotificationChannelDescriptor.BuildernewBuilder()static NotificationChannelDescriptor.BuildernewBuilder(NotificationChannelDescriptor prototype)NotificationChannelDescriptor.BuildernewBuilderForType()protected NotificationChannelDescriptor.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static NotificationChannelDescriptorparseDelimitedFrom(InputStream input)static NotificationChannelDescriptorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationChannelDescriptorparseFrom(byte[] data)static NotificationChannelDescriptorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationChannelDescriptorparseFrom(com.google.protobuf.ByteString data)static NotificationChannelDescriptorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationChannelDescriptorparseFrom(com.google.protobuf.CodedInputStream input)static NotificationChannelDescriptorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationChannelDescriptorparseFrom(InputStream input)static NotificationChannelDescriptorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationChannelDescriptorparseFrom(ByteBuffer data)static NotificationChannelDescriptorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<NotificationChannelDescriptor>parser()NotificationChannelDescriptor.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUPPORTED_TIERS_FIELD_NUMBER
public static final int SUPPORTED_TIERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAUNCH_STAGE_FIELD_NUMBER
public static final int LAUNCH_STAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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;- Specified by:
getNamein interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The bytes for name.
-
getType
public String getType()
The type of notification channel, such as "email" and "sms". To view the full list of channels, see [Channel descriptors](https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique.
string type = 1;- Specified by:
getTypein interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
The type of notification channel, such as "email" and "sms". To view the full list of channels, see [Channel descriptors](https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique.
string type = 1;- Specified by:
getTypeBytesin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The bytes for type.
-
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;- Specified by:
getDisplayNamein interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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;- Specified by:
getDisplayNameBytesin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The bytes for displayName.
-
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;- Specified by:
getDescriptionin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.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;- Specified by:
getDescriptionBytesin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The bytes for description.
-
getLabelsList
public List<com.google.api.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;- Specified by:
getLabelsListin interfaceNotificationChannelDescriptorOrBuilder
-
getLabelsOrBuilderList
public List<? extends com.google.api.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;- Specified by:
getLabelsOrBuilderListin interfaceNotificationChannelDescriptorOrBuilder
-
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;- Specified by:
getLabelsCountin interfaceNotificationChannelDescriptorOrBuilder
-
getLabels
public com.google.api.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;- Specified by:
getLabelsin interfaceNotificationChannelDescriptorOrBuilder
-
getLabelsOrBuilder
public com.google.api.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;- Specified by:
getLabelsOrBuilderin interfaceNotificationChannelDescriptorOrBuilder
-
getSupportedTiersList
@Deprecated public List<ServiceTier> getSupportedTiersList()
Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75The 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];- Specified by:
getSupportedTiersListin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- A list containing the supportedTiers.
-
getSupportedTiersCount
@Deprecated public int getSupportedTiersCount()
Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75The 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];- Specified by:
getSupportedTiersCountin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The count of supportedTiers.
-
getSupportedTiers
@Deprecated public ServiceTier getSupportedTiers(int index)
Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75The 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];- Specified by:
getSupportedTiersin interfaceNotificationChannelDescriptorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The 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=75The 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];- Specified by:
getSupportedTiersValueListin interfaceNotificationChannelDescriptorOrBuilder- Returns:
- A list containing the enum numeric values on the wire for supportedTiers.
-
getSupportedTiersValue
@Deprecated public int getSupportedTiersValue(int index)
Deprecated.google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=75The 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];- Specified by:
getSupportedTiersValuein interfaceNotificationChannelDescriptorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of supportedTiers at the given index.
-
getLaunchStageValue
public int getLaunchStageValue()
The product launch stage for channels of this type.
.google.api.LaunchStage launch_stage = 7;- Specified by:
getLaunchStageValuein interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The enum numeric value on the wire for launchStage.
-
getLaunchStage
public com.google.api.LaunchStage getLaunchStage()
The product launch stage for channels of this type.
.google.api.LaunchStage launch_stage = 7;- Specified by:
getLaunchStagein interfaceNotificationChannelDescriptorOrBuilder- Returns:
- The launchStage.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static NotificationChannelDescriptor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NotificationChannelDescriptor parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NotificationChannelDescriptor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NotificationChannelDescriptor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public NotificationChannelDescriptor.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static NotificationChannelDescriptor.Builder newBuilder()
-
newBuilder
public static NotificationChannelDescriptor.Builder newBuilder(NotificationChannelDescriptor prototype)
-
toBuilder
public NotificationChannelDescriptor.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NotificationChannelDescriptor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static NotificationChannelDescriptor getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<NotificationChannelDescriptor> parser()
-
getParserForType
public com.google.protobuf.Parser<NotificationChannelDescriptor> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NotificationChannelDescriptor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-