Class ListAlbumsResponse.Builder

  • All Implemented Interfaces:
    ListAlbumsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ListAlbumsResponse

    public static final class ListAlbumsResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsResponse.Builder>
    implements ListAlbumsResponseOrBuilder
     List of albums requested.
     
    Protobuf type google.photos.library.v1.ListAlbumsResponse
    • 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<ListAlbumsResponse.Builder>
      • clear

        public ListAlbumsResponse.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.GeneratedMessageV3.Builder<ListAlbumsResponse.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<ListAlbumsResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public ListAlbumsResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsResponse.Builder>
      • setField

        public ListAlbumsResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsResponse.Builder>
      • clearField

        public ListAlbumsResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsResponse.Builder>
      • clearOneof

        public ListAlbumsResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsResponse.Builder>
      • setRepeatedField

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

        public ListAlbumsResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlbumsResponse.Builder>
      • mergeFrom

        public ListAlbumsResponse.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<ListAlbumsResponse.Builder>
      • isInitialized

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

        public ListAlbumsResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.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<ListAlbumsResponse.Builder>
        Throws:
        java.io.IOException
      • getAlbumsList

        public java.util.List<Album> getAlbumsList()
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
        Specified by:
        getAlbumsList in interface ListAlbumsResponseOrBuilder
      • getAlbumsCount

        public int getAlbumsCount()
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
        Specified by:
        getAlbumsCount in interface ListAlbumsResponseOrBuilder
      • getAlbums

        public Album getAlbums​(int index)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
        Specified by:
        getAlbums in interface ListAlbumsResponseOrBuilder
      • setAlbums

        public ListAlbumsResponse.Builder setAlbums​(int index,
                                                    Album value)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • setAlbums

        public ListAlbumsResponse.Builder setAlbums​(int index,
                                                    Album.Builder builderForValue)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAlbums

        public ListAlbumsResponse.Builder addAlbums​(Album value)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAlbums

        public ListAlbumsResponse.Builder addAlbums​(int index,
                                                    Album value)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAlbums

        public ListAlbumsResponse.Builder addAlbums​(Album.Builder builderForValue)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAlbums

        public ListAlbumsResponse.Builder addAlbums​(int index,
                                                    Album.Builder builderForValue)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAllAlbums

        public ListAlbumsResponse.Builder addAllAlbums​(java.lang.Iterable<? extends Album> values)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • clearAlbums

        public ListAlbumsResponse.Builder clearAlbums()
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • removeAlbums

        public ListAlbumsResponse.Builder removeAlbums​(int index)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • getAlbumsBuilder

        public Album.Builder getAlbumsBuilder​(int index)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAlbumsBuilder

        public Album.Builder addAlbumsBuilder()
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • addAlbumsBuilder

        public Album.Builder addAlbumsBuilder​(int index)
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • getAlbumsBuilderList

        public java.util.List<Album.Builder> getAlbumsBuilderList()
         Output only. List of albums shown in the Albums tab of the user's Google
         Photos app.
         
        repeated .google.photos.types.Album albums = 1;
      • getNextPageToken

        public java.lang.String getNextPageToken()
         Output only. Token to use to get the next set of albums. Populated if
         there are more albums to retrieve for this request.
         
        string next_page_token = 2;
        Specified by:
        getNextPageToken in interface ListAlbumsResponseOrBuilder
        Returns:
        The nextPageToken.
      • getNextPageTokenBytes

        public com.google.protobuf.ByteString getNextPageTokenBytes()
         Output only. Token to use to get the next set of albums. Populated if
         there are more albums to retrieve for this request.
         
        string next_page_token = 2;
        Specified by:
        getNextPageTokenBytes in interface ListAlbumsResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public ListAlbumsResponse.Builder setNextPageToken​(java.lang.String value)
         Output only. Token to use to get the next set of albums. Populated if
         there are more albums to retrieve for this request.
         
        string next_page_token = 2;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public ListAlbumsResponse.Builder clearNextPageToken()
         Output only. Token to use to get the next set of albums. Populated if
         there are more albums to retrieve for this request.
         
        string next_page_token = 2;
        Returns:
        This builder for chaining.
      • setNextPageTokenBytes

        public ListAlbumsResponse.Builder setNextPageTokenBytes​(com.google.protobuf.ByteString value)
         Output only. Token to use to get the next set of albums. Populated if
         there are more albums to retrieve for this request.
         
        string next_page_token = 2;
        Parameters:
        value - The bytes for nextPageToken to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ListAlbumsResponse.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<ListAlbumsResponse.Builder>
      • mergeUnknownFields

        public final ListAlbumsResponse.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<ListAlbumsResponse.Builder>