Class BatchAddMediaItemsToAlbumRequest.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<BatchAddMediaItemsToAlbumRequest.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<BatchAddMediaItemsToAlbumRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public com.google.protobuf.ProtocolStringList getMediaItemIdsList()
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMediaItemIdsList in interface BatchAddMediaItemsToAlbumRequestOrBuilder
        Returns:
        A list containing the mediaItemIds.
      • getMediaItemIdsCount

        public int getMediaItemIdsCount()
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMediaItemIdsCount in interface BatchAddMediaItemsToAlbumRequestOrBuilder
        Returns:
        The count of mediaItemIds.
      • getMediaItemIds

        public java.lang.String getMediaItemIds​(int index)
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMediaItemIds in interface BatchAddMediaItemsToAlbumRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The mediaItemIds at the given index.
      • getMediaItemIdsBytes

        public com.google.protobuf.ByteString getMediaItemIdsBytes​(int index)
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMediaItemIdsBytes in interface BatchAddMediaItemsToAlbumRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mediaItemIds at the given index.
      • setMediaItemIds

        public BatchAddMediaItemsToAlbumRequest.Builder setMediaItemIds​(int index,
                                                                        java.lang.String value)
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The mediaItemIds to set.
        Returns:
        This builder for chaining.
      • addMediaItemIds

        public BatchAddMediaItemsToAlbumRequest.Builder addMediaItemIds​(java.lang.String value)
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The mediaItemIds to add.
        Returns:
        This builder for chaining.
      • addAllMediaItemIds

        public BatchAddMediaItemsToAlbumRequest.Builder addAllMediaItemIds​(java.lang.Iterable<java.lang.String> values)
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The mediaItemIds to add.
        Returns:
        This builder for chaining.
      • clearMediaItemIds

        public BatchAddMediaItemsToAlbumRequest.Builder clearMediaItemIds()
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • addMediaItemIdsBytes

        public BatchAddMediaItemsToAlbumRequest.Builder addMediaItemIdsBytes​(com.google.protobuf.ByteString value)
         Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
         added.
         The maximum number of media items that can be added in one call is 50.
         
        repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes of the mediaItemIds to add.
        Returns:
        This builder for chaining.
      • getAlbumId

        public java.lang.String getAlbumId()
         Required. Identifier of the [Album][google.photos.types.Album] that the
         media items are added to.
         
        string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAlbumId in interface BatchAddMediaItemsToAlbumRequestOrBuilder
        Returns:
        The albumId.
      • getAlbumIdBytes

        public com.google.protobuf.ByteString getAlbumIdBytes()
         Required. Identifier of the [Album][google.photos.types.Album] that the
         media items are added to.
         
        string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAlbumIdBytes in interface BatchAddMediaItemsToAlbumRequestOrBuilder
        Returns:
        The bytes for albumId.
      • setAlbumId

        public BatchAddMediaItemsToAlbumRequest.Builder setAlbumId​(java.lang.String value)
         Required. Identifier of the [Album][google.photos.types.Album] that the
         media items are added to.
         
        string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The albumId to set.
        Returns:
        This builder for chaining.
      • clearAlbumId

        public BatchAddMediaItemsToAlbumRequest.Builder clearAlbumId()
         Required. Identifier of the [Album][google.photos.types.Album] that the
         media items are added to.
         
        string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setAlbumIdBytes

        public BatchAddMediaItemsToAlbumRequest.Builder setAlbumIdBytes​(com.google.protobuf.ByteString value)
         Required. Identifier of the [Album][google.photos.types.Album] that the
         media items are added to.
         
        string album_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for albumId to set.
        Returns:
        This builder for chaining.