Class ListNotificationsResponse.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<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.GeneratedMessageV3.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
      • setRepeatedField

        public ListNotificationsResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • setNotifications

        public ListNotificationsResponse.Builder setNotifications​(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 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;
      • 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;
      • 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.
      • 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.
      • setUnknownFields

        public final ListNotificationsResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
      • mergeUnknownFields

        public final ListNotificationsResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>