Class ListNotificationChannelsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListNotificationChannelsResponse.Builder>
com.google.monitoring.v3.ListNotificationChannelsResponse.Builder
All Implemented Interfaces:
ListNotificationChannelsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListNotificationChannelsResponse

public static final class ListNotificationChannelsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListNotificationChannelsResponse.Builder> implements ListNotificationChannelsResponseOrBuilder
 The `ListNotificationChannels` response.
 
Protobuf type google.monitoring.v3.ListNotificationChannelsResponse
  • 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.Builder<ListNotificationChannelsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListNotificationChannelsResponse.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.GeneratedMessage.Builder<ListNotificationChannelsResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ListNotificationChannelsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListNotificationChannelsResponse.Builder>
    • mergeFrom

    • isInitialized

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

      public ListNotificationChannelsResponse.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<ListNotificationChannelsResponse.Builder>
      Throws:
      IOException
    • getNotificationChannelsList

      public List<NotificationChannel> getNotificationChannelsList()
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
      Specified by:
      getNotificationChannelsList in interface ListNotificationChannelsResponseOrBuilder
    • getNotificationChannelsCount

      public int getNotificationChannelsCount()
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
      Specified by:
      getNotificationChannelsCount in interface ListNotificationChannelsResponseOrBuilder
    • getNotificationChannels

      public NotificationChannel getNotificationChannels(int index)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
      Specified by:
      getNotificationChannels in interface ListNotificationChannelsResponseOrBuilder
    • setNotificationChannels

      public ListNotificationChannelsResponse.Builder setNotificationChannels(int index, NotificationChannel value)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • setNotificationChannels

      public ListNotificationChannelsResponse.Builder setNotificationChannels(int index, NotificationChannel.Builder builderForValue)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • addNotificationChannels

      public ListNotificationChannelsResponse.Builder addNotificationChannels(NotificationChannel value)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • addNotificationChannels

      public ListNotificationChannelsResponse.Builder addNotificationChannels(int index, NotificationChannel value)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • addNotificationChannels

      public ListNotificationChannelsResponse.Builder addNotificationChannels(NotificationChannel.Builder builderForValue)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • addNotificationChannels

      public ListNotificationChannelsResponse.Builder addNotificationChannels(int index, NotificationChannel.Builder builderForValue)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • addAllNotificationChannels

      public ListNotificationChannelsResponse.Builder addAllNotificationChannels(Iterable<? extends NotificationChannel> values)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • clearNotificationChannels

      public ListNotificationChannelsResponse.Builder clearNotificationChannels()
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • removeNotificationChannels

      public ListNotificationChannelsResponse.Builder removeNotificationChannels(int index)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • getNotificationChannelsBuilder

      public NotificationChannel.Builder getNotificationChannelsBuilder(int index)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • getNotificationChannelsOrBuilder

      public NotificationChannelOrBuilder getNotificationChannelsOrBuilder(int index)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
      Specified by:
      getNotificationChannelsOrBuilder in interface ListNotificationChannelsResponseOrBuilder
    • getNotificationChannelsOrBuilderList

      public List<? extends NotificationChannelOrBuilder> getNotificationChannelsOrBuilderList()
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
      Specified by:
      getNotificationChannelsOrBuilderList in interface ListNotificationChannelsResponseOrBuilder
    • addNotificationChannelsBuilder

      public NotificationChannel.Builder addNotificationChannelsBuilder()
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • addNotificationChannelsBuilder

      public NotificationChannel.Builder addNotificationChannelsBuilder(int index)
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • getNotificationChannelsBuilderList

      public List<NotificationChannel.Builder> getNotificationChannelsBuilderList()
       The notification channels defined for the specified project.
       
      repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;
    • getNextPageToken

      public String getNextPageToken()
       If not empty, indicates that there may be more results that match
       the request. Use the value in the `page_token` field in a
       subsequent request to fetch the next set of results. If empty,
       all results have been returned.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListNotificationChannelsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       If not empty, indicates that there may be more results that match
       the request. Use the value in the `page_token` field in a
       subsequent request to fetch the next set of results. If empty,
       all results have been returned.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListNotificationChannelsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListNotificationChannelsResponse.Builder setNextPageToken(String value)
       If not empty, indicates that there may be more results that match
       the request. Use the value in the `page_token` field in a
       subsequent request to fetch the next set of results. If empty,
       all results have been returned.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListNotificationChannelsResponse.Builder clearNextPageToken()
       If not empty, indicates that there may be more results that match
       the request. Use the value in the `page_token` field in a
       subsequent request to fetch the next set of results. If empty,
       all results have been returned.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListNotificationChannelsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       If not empty, indicates that there may be more results that match
       the request. Use the value in the `page_token` field in a
       subsequent request to fetch the next set of results. If empty,
       all results have been returned.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getTotalSize

      public int getTotalSize()
       The total number of notification channels in all pages. This number is only
       an estimate, and may change in subsequent pages. https://aip.dev/158
       
      int32 total_size = 4;
      Specified by:
      getTotalSize in interface ListNotificationChannelsResponseOrBuilder
      Returns:
      The totalSize.
    • setTotalSize

      public ListNotificationChannelsResponse.Builder setTotalSize(int value)
       The total number of notification channels in all pages. This number is only
       an estimate, and may change in subsequent pages. https://aip.dev/158
       
      int32 total_size = 4;
      Parameters:
      value - The totalSize to set.
      Returns:
      This builder for chaining.
    • clearTotalSize

       The total number of notification channels in all pages. This number is only
       an estimate, and may change in subsequent pages. https://aip.dev/158
       
      int32 total_size = 4;
      Returns:
      This builder for chaining.