Class NotificationChannelDescriptor

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class NotificationChannelDescriptor extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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:
      getName in interface NotificationChannelDescriptorOrBuilder
      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:
      getNameBytes in interface NotificationChannelDescriptorOrBuilder
      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:
      getType in interface NotificationChannelDescriptorOrBuilder
      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:
      getTypeBytes in interface NotificationChannelDescriptorOrBuilder
      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:
      getDisplayName in interface NotificationChannelDescriptorOrBuilder
      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:
      getDisplayNameBytes in interface NotificationChannelDescriptorOrBuilder
      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:
      getDescription in interface NotificationChannelDescriptorOrBuilder
      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:
      getDescriptionBytes in interface NotificationChannelDescriptorOrBuilder
      Returns:
      The bytes for description.
    • 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;
      Specified by:
      getLabelsList in interface NotificationChannelDescriptorOrBuilder
    • 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;
      Specified by:
      getLabelsOrBuilderList in interface NotificationChannelDescriptorOrBuilder
    • 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:
      getLabelsCount in interface NotificationChannelDescriptorOrBuilder
    • getLabels

      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;
      Specified by:
      getLabels in interface NotificationChannelDescriptorOrBuilder
    • getLabelsOrBuilder

      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;
      Specified by:
      getLabelsOrBuilder in interface NotificationChannelDescriptorOrBuilder
    • getSupportedTiersList

      @Deprecated public List<ServiceTier> getSupportedTiersList()
      Deprecated.
      google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. See google/monitoring/v3/notification.proto;l=76
       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];
      Specified by:
      getSupportedTiersList in interface NotificationChannelDescriptorOrBuilder
      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=76
       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];
      Specified by:
      getSupportedTiersCount in interface NotificationChannelDescriptorOrBuilder
      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=76
       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];
      Specified by:
      getSupportedTiers in interface NotificationChannelDescriptorOrBuilder
      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=76
       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];
      Specified by:
      getSupportedTiersValueList in interface NotificationChannelDescriptorOrBuilder
      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=76
       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];
      Specified by:
      getSupportedTiersValue in interface NotificationChannelDescriptorOrBuilder
      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:
      getLaunchStageValue in interface NotificationChannelDescriptorOrBuilder
      Returns:
      The enum numeric value on the wire for launchStage.
    • getLaunchStage

      public LaunchStage getLaunchStage()
       The product launch stage for channels of this type.
       
      .google.api.LaunchStage launch_stage = 7;
      Specified by:
      getLaunchStage in interface NotificationChannelDescriptorOrBuilder
      Returns:
      The launchStage.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static NotificationChannelDescriptor.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected NotificationChannelDescriptor.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static NotificationChannelDescriptor getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NotificationChannelDescriptor> parser()
    • getParserForType

      public com.google.protobuf.Parser<NotificationChannelDescriptor> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public NotificationChannelDescriptor getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder