Package com.google.photos.types.proto
Class Album
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.photos.types.proto.Album
-
- All Implemented Interfaces:
AlbumOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class Album extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlbum.BuilderRepresentation of an album in Google Photos.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOVER_PHOTO_BASE_URL_FIELD_NUMBERstatic intCOVER_PHOTO_MEDIA_ITEM_ID_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intIS_WRITEABLE_FIELD_NUMBERstatic intMEDIA_ITEMS_COUNT_FIELD_NUMBERstatic intPRODUCT_URL_FIELD_NUMBERstatic intSHARE_INFO_FIELD_NUMBERstatic intTITLE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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.static AlbumgetDefaultInstance()AlbumgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<Album>getParserForType()java.lang.StringgetProductUrl()[Output only] Google Photos URL for the album.com.google.protobuf.ByteStringgetProductUrlBytes()[Output only] Google Photos URL for the album.intgetSerializedSize()ShareInfogetShareInfo()[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.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasShareInfo()[Output only] Information related to shared albums.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Album.BuildernewBuilder()static Album.BuildernewBuilder(Album prototype)Album.BuildernewBuilderForType()protected Album.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)static AlbumparseDelimitedFrom(java.io.InputStream input)static AlbumparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlbumparseFrom(byte[] data)static AlbumparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlbumparseFrom(com.google.protobuf.ByteString data)static AlbumparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlbumparseFrom(com.google.protobuf.CodedInputStream input)static AlbumparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlbumparseFrom(java.io.InputStream input)static AlbumparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlbumparseFrom(java.nio.ByteBuffer data)static AlbumparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Album>parser()Album.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCT_URL_FIELD_NUMBER
public static final int PRODUCT_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_WRITEABLE_FIELD_NUMBER
public static final int IS_WRITEABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHARE_INFO_FIELD_NUMBER
public static final int SHARE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEDIA_ITEMS_COUNT_FIELD_NUMBER
public static final int MEDIA_ITEMS_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COVER_PHOTO_BASE_URL_FIELD_NUMBER
public static final int COVER_PHOTO_BASE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COVER_PHOTO_MEDIA_ITEM_ID_FIELD_NUMBER
public static final int COVER_PHOTO_MEDIA_ITEM_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Album parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Album parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Album parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Album parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Album parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Album parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Album parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Album parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Album parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Album parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Album parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Album parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Album.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Album.Builder newBuilder()
-
newBuilder
public static Album.Builder newBuilder(Album prototype)
-
toBuilder
public Album.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Album.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Album getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Album> parser()
-
getParserForType
public com.google.protobuf.Parser<Album> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Album getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-