Class UpdateAlbumRequest.Builder

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

    public static final class UpdateAlbumRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateAlbumRequest.Builder>
    implements UpdateAlbumRequestOrBuilder
     Request to update an album in Google Photos.
     
    Protobuf type google.photos.library.v1.UpdateAlbumRequest
    • 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<UpdateAlbumRequest.Builder>
      • clear

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

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

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

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

        public UpdateAlbumRequest.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<UpdateAlbumRequest.Builder>
      • setField

        public UpdateAlbumRequest.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<UpdateAlbumRequest.Builder>
      • clearField

        public UpdateAlbumRequest.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<UpdateAlbumRequest.Builder>
      • clearOneof

        public UpdateAlbumRequest.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<UpdateAlbumRequest.Builder>
      • setRepeatedField

        public UpdateAlbumRequest.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<UpdateAlbumRequest.Builder>
      • addRepeatedField

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

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

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

        public UpdateAlbumRequest.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<UpdateAlbumRequest.Builder>
        Throws:
        java.io.IOException
      • hasAlbum

        public boolean hasAlbum()
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAlbum in interface UpdateAlbumRequestOrBuilder
        Returns:
        Whether the album field is set.
      • getAlbum

        public Album getAlbum()
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAlbum in interface UpdateAlbumRequestOrBuilder
        Returns:
        The album.
      • setAlbum

        public UpdateAlbumRequest.Builder setAlbum​(Album value)
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
      • setAlbum

        public UpdateAlbumRequest.Builder setAlbum​(Album.Builder builderForValue)
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeAlbum

        public UpdateAlbumRequest.Builder mergeAlbum​(Album value)
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearAlbum

        public UpdateAlbumRequest.Builder clearAlbum()
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
      • getAlbumBuilder

        public Album.Builder getAlbumBuilder()
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
      • getAlbumOrBuilder

        public AlbumOrBuilder getAlbumOrBuilder()
         Required. The [Album][google.photos.types.Album] to update.
         The album’s `id` field is used to identify the album to be updated.
         The album’s `title` field is used to set the new album title.
         The album’s `cover_photo_media_item_id` field is used to set the new album
         cover photo.
         
        .google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAlbumOrBuilder in interface UpdateAlbumRequestOrBuilder
      • hasUpdateMask

        public boolean hasUpdateMask()
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
        Specified by:
        hasUpdateMask in interface UpdateAlbumRequestOrBuilder
        Returns:
        Whether the updateMask field is set.
      • getUpdateMask

        public com.google.protobuf.FieldMask getUpdateMask()
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
        Specified by:
        getUpdateMask in interface UpdateAlbumRequestOrBuilder
        Returns:
        The updateMask.
      • setUpdateMask

        public UpdateAlbumRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask value)
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
      • setUpdateMask

        public UpdateAlbumRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask.Builder builderForValue)
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
      • mergeUpdateMask

        public UpdateAlbumRequest.Builder mergeUpdateMask​(com.google.protobuf.FieldMask value)
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
      • clearUpdateMask

        public UpdateAlbumRequest.Builder clearUpdateMask()
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
      • getUpdateMaskBuilder

        public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
      • getUpdateMaskOrBuilder

        public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
         Indicate what fields in the provided album to update.
         The only valid values are `title` and `cover_photo_media_item_id`.
         
        .google.protobuf.FieldMask update_mask = 2;
        Specified by:
        getUpdateMaskOrBuilder in interface UpdateAlbumRequestOrBuilder
      • setUnknownFields

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

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