Class NotificationChannelDescriptor.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannelDescriptor.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannelDescriptor.Builder>
      • getDefaultInstanceForType

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

        public NotificationChannelDescriptor build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public NotificationChannelDescriptor buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationChannelDescriptor.Builder>
      • mergeFrom

        public NotificationChannelDescriptor.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationChannelDescriptor.Builder>
        Throws:
        IOException
      • 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.
      • setName

        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;
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        public NotificationChannelDescriptor.Builder setNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setType

        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](https://cloud.google.com/monitoring/alerts/using-channels-api#ncd).
         Notification channel types are globally unique.
         
        string type = 1;
        Parameters:
        value - The type to set.
        Returns:
        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](https://cloud.google.com/monitoring/alerts/using-channels-api#ncd).
         Notification channel types are globally unique.
         
        string type = 1;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public NotificationChannelDescriptor.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDisplayName

        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;
        Parameters:
        value - The displayName to set.
        Returns:
        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:
        This builder for chaining.
      • setDisplayNameBytes

        public NotificationChannelDescriptor.Builder setDisplayNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDescription

        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;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setDescriptionBytes

        public NotificationChannelDescriptor.Builder setDescriptionBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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:
        getLabelsList 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 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:
        getLabels in interface NotificationChannelDescriptorOrBuilder
      • setLabels

        public NotificationChannelDescriptor.Builder setLabels​(int index,
                                                               com.google.api.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;
      • setLabels

        public NotificationChannelDescriptor.Builder setLabels​(int index,
                                                               com.google.api.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;
      • addLabels

        public NotificationChannelDescriptor.Builder addLabels​(com.google.api.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;
      • addLabels

        public NotificationChannelDescriptor.Builder addLabels​(int index,
                                                               com.google.api.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;
      • addLabels

        public NotificationChannelDescriptor.Builder addLabels​(com.google.api.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;
      • addLabels

        public NotificationChannelDescriptor.Builder addLabels​(int index,
                                                               com.google.api.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;
      • addAllLabels

        public NotificationChannelDescriptor.Builder addAllLabels​(Iterable<? extends com.google.api.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;
      • 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;
      • removeLabels

        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;
      • getLabelsBuilder

        public com.google.api.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;
      • 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:
        getLabelsOrBuilder in interface NotificationChannelDescriptorOrBuilder
      • 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:
        getLabelsOrBuilderList in interface NotificationChannelDescriptorOrBuilder
      • addLabelsBuilder

        public com.google.api.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;
      • addLabelsBuilder

        public com.google.api.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;
      • getLabelsBuilderList

        public List<com.google.api.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;
      • 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];
        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=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];
        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=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];
        Specified by:
        getSupportedTiers in interface NotificationChannelDescriptorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The supportedTiers at the given index.
      • setSupportedTiers

        @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:
        index - The index to set the value at.
        value - The supportedTiers to set.
        Returns:
        This builder for chaining.
      • addSupportedTiers

        @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];
        Parameters:
        value - The supportedTiers to add.
        Returns:
        This builder for chaining.
      • addAllSupportedTiers

        @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];
        Parameters:
        values - The supportedTiers to add.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • 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];
        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=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];
        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.
      • setSupportedTiersValue

        @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:
        index - The index to set the value at.
        value - The enum numeric value on the wire for supportedTiers to set.
        Returns:
        This builder for chaining.
      • addSupportedTiersValue

        @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];
        Parameters:
        value - The enum numeric value on the wire for supportedTiers to add.
        Returns:
        This builder for chaining.
      • addAllSupportedTiersValue

        @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];
        Parameters:
        values - The enum numeric values on the wire for supportedTiers to add.
        Returns:
        This builder for chaining.
      • 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.
      • setLaunchStageValue

        public NotificationChannelDescriptor.Builder setLaunchStageValue​(int value)
         The product launch stage for channels of this type.
         
        .google.api.LaunchStage launch_stage = 7;
        Parameters:
        value - The enum numeric value on the wire for launchStage to set.
        Returns:
        This builder for chaining.
      • getLaunchStage

        public com.google.api.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.
      • setLaunchStage

        public NotificationChannelDescriptor.Builder setLaunchStage​(com.google.api.LaunchStage value)
         The product launch stage for channels of this type.
         
        .google.api.LaunchStage launch_stage = 7;
        Parameters:
        value - The launchStage to set.
        Returns:
        This builder for chaining.
      • clearLaunchStage

        public NotificationChannelDescriptor.Builder clearLaunchStage()
         The product launch stage for channels of this type.
         
        .google.api.LaunchStage launch_stage = 7;
        Returns:
        This builder for chaining.