Class ListNotificationsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListNotificationsResponse.Builder>
com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder
All Implemented Interfaces:
ListNotificationsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListNotificationsResponse

public static final class ListNotificationsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListNotificationsResponse.Builder> implements ListNotificationsResponseOrBuilder
 Response of ListNotifications endpoint.
 
Protobuf type google.cloud.advisorynotifications.v1.ListNotificationsResponse
  • 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<ListNotificationsResponse.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<ListNotificationsResponse.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<ListNotificationsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public ListNotificationsResponse.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<ListNotificationsResponse.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<ListNotificationsResponse.Builder>
    • mergeFrom

      public ListNotificationsResponse.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<ListNotificationsResponse.Builder>
      Throws:
      IOException
    • getNotificationsList

      public List<Notification> getNotificationsList()
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
      Specified by:
      getNotificationsList in interface ListNotificationsResponseOrBuilder
    • getNotificationsCount

      public int getNotificationsCount()
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
      Specified by:
      getNotificationsCount in interface ListNotificationsResponseOrBuilder
    • getNotifications

      public Notification getNotifications(int index)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
      Specified by:
      getNotifications in interface ListNotificationsResponseOrBuilder
    • setNotifications

      public ListNotificationsResponse.Builder setNotifications(int index, Notification value)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • setNotifications

      public ListNotificationsResponse.Builder setNotifications(int index, Notification.Builder builderForValue)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • addNotifications

      public ListNotificationsResponse.Builder addNotifications(Notification value)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • addNotifications

      public ListNotificationsResponse.Builder addNotifications(int index, Notification value)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • addNotifications

      public ListNotificationsResponse.Builder addNotifications(Notification.Builder builderForValue)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • addNotifications

      public ListNotificationsResponse.Builder addNotifications(int index, Notification.Builder builderForValue)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • addAllNotifications

      public ListNotificationsResponse.Builder addAllNotifications(Iterable<? extends Notification> values)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • clearNotifications

      public ListNotificationsResponse.Builder clearNotifications()
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • removeNotifications

      public ListNotificationsResponse.Builder removeNotifications(int index)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • getNotificationsBuilder

      public Notification.Builder getNotificationsBuilder(int index)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • getNotificationsOrBuilder

      public NotificationOrBuilder getNotificationsOrBuilder(int index)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
      Specified by:
      getNotificationsOrBuilder in interface ListNotificationsResponseOrBuilder
    • getNotificationsOrBuilderList

      public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
      Specified by:
      getNotificationsOrBuilderList in interface ListNotificationsResponseOrBuilder
    • addNotificationsBuilder

      public Notification.Builder addNotificationsBuilder()
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • addNotificationsBuilder

      public Notification.Builder addNotificationsBuilder(int index)
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • getNotificationsBuilderList

      public List<Notification.Builder> getNotificationsBuilderList()
       List of notifications under a given parent.
       
      repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListNotificationsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListNotificationsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListNotificationsResponse.Builder setNextPageToken(String value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListNotificationsResponse.Builder clearNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListNotificationsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getTotalSize

      public int getTotalSize()
       Estimation of a total number of notifications.
       
      int32 total_size = 3;
      Specified by:
      getTotalSize in interface ListNotificationsResponseOrBuilder
      Returns:
      The totalSize.
    • setTotalSize

      public ListNotificationsResponse.Builder setTotalSize(int value)
       Estimation of a total number of notifications.
       
      int32 total_size = 3;
      Parameters:
      value - The totalSize to set.
      Returns:
      This builder for chaining.
    • clearTotalSize

      public ListNotificationsResponse.Builder clearTotalSize()
       Estimation of a total number of notifications.
       
      int32 total_size = 3;
      Returns:
      This builder for chaining.