Package com.google.photos.types.proto
Class Album.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Album.Builder>
-
- com.google.photos.types.proto.Album.Builder
-
- All Implemented Interfaces:
AlbumOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Album
public static final class Album.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Album.Builder> implements AlbumOrBuilder
Representation of an album in Google Photos. Albums are containers for media items. If an album has been shared by the application, it contains an extra `shareInfo` property.
Protobuf typegoogle.photos.types.Album
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Album.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Albumbuild()AlbumbuildPartial()Album.Builderclear()Album.BuilderclearCoverPhotoBaseUrl()[Output only] A URL to the cover photo's bytes.Album.BuilderclearCoverPhotoMediaItemId()[Output only] Identifier for the media item associated with the cover photo.Album.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Album.BuilderclearId()[Ouput only] Identifier for the album.Album.BuilderclearIsWriteable()[Output only] True if you can create media items in this album.Album.BuilderclearMediaItemsCount()[Output only] The number of media items in the album.Album.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Album.BuilderclearProductUrl()[Output only] Google Photos URL for the album.Album.BuilderclearShareInfo()[Output only] Information related to shared albums.Album.BuilderclearTitle()Name of the album displayed to the user in their Google Photos account.Album.Builderclone()java.lang.StringgetCoverPhotoBaseUrl()[Output only] A URL to the cover photo's bytes.com.google.protobuf.ByteStringgetCoverPhotoBaseUrlBytes()[Output only] A URL to the cover photo's bytes.java.lang.StringgetCoverPhotoMediaItemId()[Output only] Identifier for the media item associated with the cover photo.com.google.protobuf.ByteStringgetCoverPhotoMediaItemIdBytes()[Output only] Identifier for the media item associated with the cover photo.AlbumgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetId()[Ouput only] Identifier for the album.com.google.protobuf.ByteStringgetIdBytes()[Ouput only] Identifier for the album.booleangetIsWriteable()[Output only] True if you can create media items in this album.longgetMediaItemsCount()[Output only] The number of media items in the album.java.lang.StringgetProductUrl()[Output only] Google Photos URL for the album.com.google.protobuf.ByteStringgetProductUrlBytes()[Output only] Google Photos URL for the album.ShareInfogetShareInfo()[Output only] Information related to shared albums.ShareInfo.BuildergetShareInfoBuilder()[Output only] Information related to shared albums.ShareInfoOrBuildergetShareInfoOrBuilder()[Output only] Information related to shared albums.java.lang.StringgetTitle()Name of the album displayed to the user in their Google Photos account.com.google.protobuf.ByteStringgetTitleBytes()Name of the album displayed to the user in their Google Photos account.booleanhasShareInfo()[Output only] Information related to shared albums.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Album.BuildermergeFrom(Album other)Album.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Album.BuildermergeFrom(com.google.protobuf.Message other)Album.BuildermergeShareInfo(ShareInfo value)[Output only] Information related to shared albums.Album.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Album.BuildersetCoverPhotoBaseUrl(java.lang.String value)[Output only] A URL to the cover photo's bytes.Album.BuildersetCoverPhotoBaseUrlBytes(com.google.protobuf.ByteString value)[Output only] A URL to the cover photo's bytes.Album.BuildersetCoverPhotoMediaItemId(java.lang.String value)[Output only] Identifier for the media item associated with the cover photo.Album.BuildersetCoverPhotoMediaItemIdBytes(com.google.protobuf.ByteString value)[Output only] Identifier for the media item associated with the cover photo.Album.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Album.BuildersetId(java.lang.String value)[Ouput only] Identifier for the album.Album.BuildersetIdBytes(com.google.protobuf.ByteString value)[Ouput only] Identifier for the album.Album.BuildersetIsWriteable(boolean value)[Output only] True if you can create media items in this album.Album.BuildersetMediaItemsCount(long value)[Output only] The number of media items in the album.Album.BuildersetProductUrl(java.lang.String value)[Output only] Google Photos URL for the album.Album.BuildersetProductUrlBytes(com.google.protobuf.ByteString value)[Output only] Google Photos URL for the album.Album.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Album.BuildersetShareInfo(ShareInfo value)[Output only] Information related to shared albums.Album.BuildersetShareInfo(ShareInfo.Builder builderForValue)[Output only] Information related to shared albums.Album.BuildersetTitle(java.lang.String value)Name of the album displayed to the user in their Google Photos account.Album.BuildersetTitleBytes(com.google.protobuf.ByteString value)Name of the album displayed to the user in their Google Photos account.Album.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<Album.Builder>
-
clear
public Album.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<Album.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<Album.Builder>
-
getDefaultInstanceForType
public Album getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Album build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Album buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Album.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<Album.Builder>
-
setField
public Album.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<Album.Builder>
-
clearField
public Album.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Album.Builder>
-
clearOneof
public Album.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Album.Builder>
-
setRepeatedField
public Album.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<Album.Builder>
-
addRepeatedField
public Album.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<Album.Builder>
-
mergeFrom
public Album.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Album.Builder>
-
mergeFrom
public Album.Builder mergeFrom(Album other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Album.Builder>
-
mergeFrom
public Album.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<Album.Builder>- Throws:
java.io.IOException
-
getId
public java.lang.String getId()
[Ouput only] Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.
string id = 1;- Specified by:
getIdin interfaceAlbumOrBuilder
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
[Ouput only] Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.
string id = 1;- Specified by:
getIdBytesin interfaceAlbumOrBuilder
-
setId
public Album.Builder setId(java.lang.String value)
[Ouput only] Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.
string id = 1;
-
clearId
public Album.Builder clearId()
[Ouput only] Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.
string id = 1;
-
setIdBytes
public Album.Builder setIdBytes(com.google.protobuf.ByteString value)
[Ouput only] Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.
string id = 1;
-
getTitle
public java.lang.String getTitle()
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters.
string title = 2;- Specified by:
getTitlein interfaceAlbumOrBuilder
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters.
string title = 2;- Specified by:
getTitleBytesin interfaceAlbumOrBuilder
-
setTitle
public Album.Builder setTitle(java.lang.String value)
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters.
string title = 2;
-
clearTitle
public Album.Builder clearTitle()
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters.
string title = 2;
-
setTitleBytes
public Album.Builder setTitleBytes(com.google.protobuf.ByteString value)
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters.
string title = 2;
-
getProductUrl
public java.lang.String getProductUrl()
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link.
string product_url = 3;- Specified by:
getProductUrlin interfaceAlbumOrBuilder
-
getProductUrlBytes
public com.google.protobuf.ByteString getProductUrlBytes()
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link.
string product_url = 3;- Specified by:
getProductUrlBytesin interfaceAlbumOrBuilder
-
setProductUrl
public Album.Builder setProductUrl(java.lang.String value)
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link.
string product_url = 3;
-
clearProductUrl
public Album.Builder clearProductUrl()
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link.
string product_url = 3;
-
setProductUrlBytes
public Album.Builder setProductUrlBytes(com.google.protobuf.ByteString value)
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link.
string product_url = 3;
-
getIsWriteable
public boolean getIsWriteable()
[Output only] True if you can create media items in this album. This field is based on the scopes granted and permissions of the album. If the scopes are changed or permissions of the album are changed, this field is updated.
bool is_writeable = 4;- Specified by:
getIsWriteablein interfaceAlbumOrBuilder
-
setIsWriteable
public Album.Builder setIsWriteable(boolean value)
[Output only] True if you can create media items in this album. This field is based on the scopes granted and permissions of the album. If the scopes are changed or permissions of the album are changed, this field is updated.
bool is_writeable = 4;
-
clearIsWriteable
public Album.Builder clearIsWriteable()
[Output only] True if you can create media items in this album. This field is based on the scopes granted and permissions of the album. If the scopes are changed or permissions of the album are changed, this field is updated.
bool is_writeable = 4;
-
hasShareInfo
public boolean hasShareInfo()
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;- Specified by:
hasShareInfoin interfaceAlbumOrBuilder
-
getShareInfo
public ShareInfo getShareInfo()
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;- Specified by:
getShareInfoin interfaceAlbumOrBuilder
-
setShareInfo
public Album.Builder setShareInfo(ShareInfo value)
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;
-
setShareInfo
public Album.Builder setShareInfo(ShareInfo.Builder builderForValue)
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;
-
mergeShareInfo
public Album.Builder mergeShareInfo(ShareInfo value)
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;
-
clearShareInfo
public Album.Builder clearShareInfo()
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;
-
getShareInfoBuilder
public ShareInfo.Builder getShareInfoBuilder()
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;
-
getShareInfoOrBuilder
public ShareInfoOrBuilder getShareInfoOrBuilder()
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the `photoslibrary.sharing` scope.
.google.photos.types.ShareInfo share_info = 5;- Specified by:
getShareInfoOrBuilderin interfaceAlbumOrBuilder
-
getMediaItemsCount
public long getMediaItemsCount()
[Output only] The number of media items in the album.
int64 media_items_count = 6;- Specified by:
getMediaItemsCountin interfaceAlbumOrBuilder
-
setMediaItemsCount
public Album.Builder setMediaItemsCount(long value)
[Output only] The number of media items in the album.
int64 media_items_count = 6;
-
clearMediaItemsCount
public Album.Builder clearMediaItemsCount()
[Output only] The number of media items in the album.
int64 media_items_count = 6;
-
getCoverPhotoBaseUrl
public java.lang.String getCoverPhotoBaseUrl()
[Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to have a width of 2048 px and height of 1024 px.
string cover_photo_base_url = 7;- Specified by:
getCoverPhotoBaseUrlin interfaceAlbumOrBuilder
-
getCoverPhotoBaseUrlBytes
public com.google.protobuf.ByteString getCoverPhotoBaseUrlBytes()
[Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to have a width of 2048 px and height of 1024 px.
string cover_photo_base_url = 7;- Specified by:
getCoverPhotoBaseUrlBytesin interfaceAlbumOrBuilder
-
setCoverPhotoBaseUrl
public Album.Builder setCoverPhotoBaseUrl(java.lang.String value)
[Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to have a width of 2048 px and height of 1024 px.
string cover_photo_base_url = 7;
-
clearCoverPhotoBaseUrl
public Album.Builder clearCoverPhotoBaseUrl()
[Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to have a width of 2048 px and height of 1024 px.
string cover_photo_base_url = 7;
-
setCoverPhotoBaseUrlBytes
public Album.Builder setCoverPhotoBaseUrlBytes(com.google.protobuf.ByteString value)
[Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to have a width of 2048 px and height of 1024 px.
string cover_photo_base_url = 7;
-
getCoverPhotoMediaItemId
public java.lang.String getCoverPhotoMediaItemId()
[Output only] Identifier for the media item associated with the cover photo.
string cover_photo_media_item_id = 8;- Specified by:
getCoverPhotoMediaItemIdin interfaceAlbumOrBuilder
-
getCoverPhotoMediaItemIdBytes
public com.google.protobuf.ByteString getCoverPhotoMediaItemIdBytes()
[Output only] Identifier for the media item associated with the cover photo.
string cover_photo_media_item_id = 8;- Specified by:
getCoverPhotoMediaItemIdBytesin interfaceAlbumOrBuilder
-
setCoverPhotoMediaItemId
public Album.Builder setCoverPhotoMediaItemId(java.lang.String value)
[Output only] Identifier for the media item associated with the cover photo.
string cover_photo_media_item_id = 8;
-
clearCoverPhotoMediaItemId
public Album.Builder clearCoverPhotoMediaItemId()
[Output only] Identifier for the media item associated with the cover photo.
string cover_photo_media_item_id = 8;
-
setCoverPhotoMediaItemIdBytes
public Album.Builder setCoverPhotoMediaItemIdBytes(com.google.protobuf.ByteString value)
[Output only] Identifier for the media item associated with the cover photo.
string cover_photo_media_item_id = 8;
-
setUnknownFields
public final Album.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Album.Builder>
-
mergeUnknownFields
public final Album.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Album.Builder>
-
-