Class BatchCreateMediaItemsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
- com.google.photos.library.v1.proto.BatchCreateMediaItemsRequest.Builder
-
- All Implemented Interfaces:
BatchCreateMediaItemsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- BatchCreateMediaItemsRequest
public static final class BatchCreateMediaItemsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder> implements BatchCreateMediaItemsRequestOrBuilder
Request to create one or more media items in a user's Google Photos library. If an `albumid` is specified, the media items are also added to that album. `albumPosition` is optional and can only be specified if an `albumId` is set.
Protobuf typegoogle.photos.library.v1.BatchCreateMediaItemsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchCreateMediaItemsRequest.BuilderaddAllNewMediaItems(java.lang.Iterable<? extends NewMediaItem> values)List of media items to be created.BatchCreateMediaItemsRequest.BuilderaddNewMediaItems(int index, NewMediaItem value)List of media items to be created.BatchCreateMediaItemsRequest.BuilderaddNewMediaItems(int index, NewMediaItem.Builder builderForValue)List of media items to be created.BatchCreateMediaItemsRequest.BuilderaddNewMediaItems(NewMediaItem value)List of media items to be created.BatchCreateMediaItemsRequest.BuilderaddNewMediaItems(NewMediaItem.Builder builderForValue)List of media items to be created.NewMediaItem.BuilderaddNewMediaItemsBuilder()List of media items to be created.NewMediaItem.BuilderaddNewMediaItemsBuilder(int index)List of media items to be created.BatchCreateMediaItemsRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BatchCreateMediaItemsRequestbuild()BatchCreateMediaItemsRequestbuildPartial()BatchCreateMediaItemsRequest.Builderclear()BatchCreateMediaItemsRequest.BuilderclearAlbumId()Identifier of the album where the media items are added.BatchCreateMediaItemsRequest.BuilderclearAlbumPosition()Position in the album where the media items are added.BatchCreateMediaItemsRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchCreateMediaItemsRequest.BuilderclearNewMediaItems()List of media items to be created.BatchCreateMediaItemsRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchCreateMediaItemsRequest.Builderclone()java.lang.StringgetAlbumId()Identifier of the album where the media items are added.com.google.protobuf.ByteStringgetAlbumIdBytes()Identifier of the album where the media items are added.AlbumPositiongetAlbumPosition()Position in the album where the media items are added.AlbumPosition.BuildergetAlbumPositionBuilder()Position in the album where the media items are added.AlbumPositionOrBuildergetAlbumPositionOrBuilder()Position in the album where the media items are added.BatchCreateMediaItemsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()NewMediaItemgetNewMediaItems(int index)List of media items to be created.NewMediaItem.BuildergetNewMediaItemsBuilder(int index)List of media items to be created.java.util.List<NewMediaItem.Builder>getNewMediaItemsBuilderList()List of media items to be created.intgetNewMediaItemsCount()List of media items to be created.java.util.List<NewMediaItem>getNewMediaItemsList()List of media items to be created.NewMediaItemOrBuildergetNewMediaItemsOrBuilder(int index)List of media items to be created.java.util.List<? extends NewMediaItemOrBuilder>getNewMediaItemsOrBuilderList()List of media items to be created.booleanhasAlbumPosition()Position in the album where the media items are added.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BatchCreateMediaItemsRequest.BuildermergeAlbumPosition(AlbumPosition value)Position in the album where the media items are added.BatchCreateMediaItemsRequest.BuildermergeFrom(BatchCreateMediaItemsRequest other)BatchCreateMediaItemsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchCreateMediaItemsRequest.BuildermergeFrom(com.google.protobuf.Message other)BatchCreateMediaItemsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchCreateMediaItemsRequest.BuilderremoveNewMediaItems(int index)List of media items to be created.BatchCreateMediaItemsRequest.BuildersetAlbumId(java.lang.String value)Identifier of the album where the media items are added.BatchCreateMediaItemsRequest.BuildersetAlbumIdBytes(com.google.protobuf.ByteString value)Identifier of the album where the media items are added.BatchCreateMediaItemsRequest.BuildersetAlbumPosition(AlbumPosition value)Position in the album where the media items are added.BatchCreateMediaItemsRequest.BuildersetAlbumPosition(AlbumPosition.Builder builderForValue)Position in the album where the media items are added.BatchCreateMediaItemsRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BatchCreateMediaItemsRequest.BuildersetNewMediaItems(int index, NewMediaItem value)List of media items to be created.BatchCreateMediaItemsRequest.BuildersetNewMediaItems(int index, NewMediaItem.Builder builderForValue)List of media items to be created.BatchCreateMediaItemsRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BatchCreateMediaItemsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
clear
public BatchCreateMediaItemsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
getDefaultInstanceForType
public BatchCreateMediaItemsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchCreateMediaItemsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchCreateMediaItemsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchCreateMediaItemsRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
setField
public BatchCreateMediaItemsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
clearField
public BatchCreateMediaItemsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
clearOneof
public BatchCreateMediaItemsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
setRepeatedField
public BatchCreateMediaItemsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
addRepeatedField
public BatchCreateMediaItemsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
mergeFrom
public BatchCreateMediaItemsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateMediaItemsRequest.Builder>
-
mergeFrom
public BatchCreateMediaItemsRequest.Builder mergeFrom(BatchCreateMediaItemsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
mergeFrom
public BatchCreateMediaItemsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateMediaItemsRequest.Builder>- Throws:
java.io.IOException
-
getAlbumId
public java.lang.String getAlbumId()
Identifier of the album where the media items are added. The media items are also added to the user's library. This is an optional field.
string album_id = 1;- Specified by:
getAlbumIdin interfaceBatchCreateMediaItemsRequestOrBuilder
-
getAlbumIdBytes
public com.google.protobuf.ByteString getAlbumIdBytes()
Identifier of the album where the media items are added. The media items are also added to the user's library. This is an optional field.
string album_id = 1;- Specified by:
getAlbumIdBytesin interfaceBatchCreateMediaItemsRequestOrBuilder
-
setAlbumId
public BatchCreateMediaItemsRequest.Builder setAlbumId(java.lang.String value)
Identifier of the album where the media items are added. The media items are also added to the user's library. This is an optional field.
string album_id = 1;
-
clearAlbumId
public BatchCreateMediaItemsRequest.Builder clearAlbumId()
Identifier of the album where the media items are added. The media items are also added to the user's library. This is an optional field.
string album_id = 1;
-
setAlbumIdBytes
public BatchCreateMediaItemsRequest.Builder setAlbumIdBytes(com.google.protobuf.ByteString value)
Identifier of the album where the media items are added. The media items are also added to the user's library. This is an optional field.
string album_id = 1;
-
getNewMediaItemsList
public java.util.List<NewMediaItem> getNewMediaItemsList()
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;- Specified by:
getNewMediaItemsListin interfaceBatchCreateMediaItemsRequestOrBuilder
-
getNewMediaItemsCount
public int getNewMediaItemsCount()
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;- Specified by:
getNewMediaItemsCountin interfaceBatchCreateMediaItemsRequestOrBuilder
-
getNewMediaItems
public NewMediaItem getNewMediaItems(int index)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;- Specified by:
getNewMediaItemsin interfaceBatchCreateMediaItemsRequestOrBuilder
-
setNewMediaItems
public BatchCreateMediaItemsRequest.Builder setNewMediaItems(int index, NewMediaItem value)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
setNewMediaItems
public BatchCreateMediaItemsRequest.Builder setNewMediaItems(int index, NewMediaItem.Builder builderForValue)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
addNewMediaItems
public BatchCreateMediaItemsRequest.Builder addNewMediaItems(NewMediaItem value)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
addNewMediaItems
public BatchCreateMediaItemsRequest.Builder addNewMediaItems(int index, NewMediaItem value)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
addNewMediaItems
public BatchCreateMediaItemsRequest.Builder addNewMediaItems(NewMediaItem.Builder builderForValue)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
addNewMediaItems
public BatchCreateMediaItemsRequest.Builder addNewMediaItems(int index, NewMediaItem.Builder builderForValue)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
addAllNewMediaItems
public BatchCreateMediaItemsRequest.Builder addAllNewMediaItems(java.lang.Iterable<? extends NewMediaItem> values)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
clearNewMediaItems
public BatchCreateMediaItemsRequest.Builder clearNewMediaItems()
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
removeNewMediaItems
public BatchCreateMediaItemsRequest.Builder removeNewMediaItems(int index)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
getNewMediaItemsBuilder
public NewMediaItem.Builder getNewMediaItemsBuilder(int index)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
getNewMediaItemsOrBuilder
public NewMediaItemOrBuilder getNewMediaItemsOrBuilder(int index)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;- Specified by:
getNewMediaItemsOrBuilderin interfaceBatchCreateMediaItemsRequestOrBuilder
-
getNewMediaItemsOrBuilderList
public java.util.List<? extends NewMediaItemOrBuilder> getNewMediaItemsOrBuilderList()
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;- Specified by:
getNewMediaItemsOrBuilderListin interfaceBatchCreateMediaItemsRequestOrBuilder
-
addNewMediaItemsBuilder
public NewMediaItem.Builder addNewMediaItemsBuilder()
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
addNewMediaItemsBuilder
public NewMediaItem.Builder addNewMediaItemsBuilder(int index)
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
getNewMediaItemsBuilderList
public java.util.List<NewMediaItem.Builder> getNewMediaItemsBuilderList()
List of media items to be created.
repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
-
hasAlbumPosition
public boolean hasAlbumPosition()
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;- Specified by:
hasAlbumPositionin interfaceBatchCreateMediaItemsRequestOrBuilder
-
getAlbumPosition
public AlbumPosition getAlbumPosition()
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;- Specified by:
getAlbumPositionin interfaceBatchCreateMediaItemsRequestOrBuilder
-
setAlbumPosition
public BatchCreateMediaItemsRequest.Builder setAlbumPosition(AlbumPosition value)
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;
-
setAlbumPosition
public BatchCreateMediaItemsRequest.Builder setAlbumPosition(AlbumPosition.Builder builderForValue)
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;
-
mergeAlbumPosition
public BatchCreateMediaItemsRequest.Builder mergeAlbumPosition(AlbumPosition value)
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;
-
clearAlbumPosition
public BatchCreateMediaItemsRequest.Builder clearAlbumPosition()
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;
-
getAlbumPositionBuilder
public AlbumPosition.Builder getAlbumPositionBuilder()
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;
-
getAlbumPositionOrBuilder
public AlbumPositionOrBuilder getAlbumPositionOrBuilder()
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
.google.photos.library.v1.AlbumPosition album_position = 4;- Specified by:
getAlbumPositionOrBuilderin interfaceBatchCreateMediaItemsRequestOrBuilder
-
setUnknownFields
public final BatchCreateMediaItemsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
mergeUnknownFields
public final BatchCreateMediaItemsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMediaItemsRequest.Builder>
-
-