Package com.google.photos.types.proto
Interface MediaItemOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MediaItem
,MediaItem.Builder
public interface MediaItemOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getBaseUrl()
A URL to the media item's bytes.com.google.protobuf.ByteString
getBaseUrlBytes()
A URL to the media item's bytes.ContributorInfo
getContributorInfo()
Information about the user who created this media item.ContributorInfoOrBuilder
getContributorInfoOrBuilder()
Information about the user who created this media item.java.lang.String
getDescription()
Description of the media item.com.google.protobuf.ByteString
getDescriptionBytes()
Description of the media item.java.lang.String
getFilename()
Filename of the media item.com.google.protobuf.ByteString
getFilenameBytes()
Filename of the media item.java.lang.String
getId()
Identifier for the media item.com.google.protobuf.ByteString
getIdBytes()
Identifier for the media item.MediaMetadata
getMediaMetadata()
Metadata related to the media item, such as, height, width, or creation time.MediaMetadataOrBuilder
getMediaMetadataOrBuilder()
Metadata related to the media item, such as, height, width, or creation time.java.lang.String
getMimeType()
MIME type of the media item.com.google.protobuf.ByteString
getMimeTypeBytes()
MIME type of the media item.java.lang.String
getProductUrl()
Google Photos URL for the media item.com.google.protobuf.ByteString
getProductUrlBytes()
Google Photos URL for the media item.boolean
hasContributorInfo()
Information about the user who created this media item.boolean
hasMediaMetadata()
Metadata related to the media item, such as, height, width, or creation time.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.
string id = 1;
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.
string id = 1;
-
getDescription
java.lang.String getDescription()
Description of the media item. This is shown to the user in the item's info section in the Google Photos app.
string description = 2;
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
Description of the media item. This is shown to the user in the item's info section in the Google Photos app.
string description = 2;
-
getProductUrl
java.lang.String getProductUrl()
Google Photos URL for the media item. This link is available to the user only if they're signed in.
string product_url = 3;
-
getProductUrlBytes
com.google.protobuf.ByteString getProductUrlBytes()
Google Photos URL for the media item. This link is available to the user only if they're signed in.
string product_url = 3;
-
getBaseUrl
java.lang.String getBaseUrl()
A URL to the media item'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'` will set the dimensions of a media item of type photo to have a width of 2048 px and height of 1024 px.
string base_url = 4;
-
getBaseUrlBytes
com.google.protobuf.ByteString getBaseUrlBytes()
A URL to the media item'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'` will set the dimensions of a media item of type photo to have a width of 2048 px and height of 1024 px.
string base_url = 4;
-
getMimeType
java.lang.String getMimeType()
MIME type of the media item. For example, `image/jpeg`.
string mime_type = 5;
-
getMimeTypeBytes
com.google.protobuf.ByteString getMimeTypeBytes()
MIME type of the media item. For example, `image/jpeg`.
string mime_type = 5;
-
hasMediaMetadata
boolean hasMediaMetadata()
Metadata related to the media item, such as, height, width, or creation time.
.google.photos.types.MediaMetadata media_metadata = 6;
-
getMediaMetadata
MediaMetadata getMediaMetadata()
Metadata related to the media item, such as, height, width, or creation time.
.google.photos.types.MediaMetadata media_metadata = 6;
-
getMediaMetadataOrBuilder
MediaMetadataOrBuilder getMediaMetadataOrBuilder()
Metadata related to the media item, such as, height, width, or creation time.
.google.photos.types.MediaMetadata media_metadata = 6;
-
hasContributorInfo
boolean hasContributorInfo()
Information about the user who created this media item.
.google.photos.types.ContributorInfo contributor_info = 7;
-
getContributorInfo
ContributorInfo getContributorInfo()
Information about the user who created this media item.
.google.photos.types.ContributorInfo contributor_info = 7;
-
getContributorInfoOrBuilder
ContributorInfoOrBuilder getContributorInfoOrBuilder()
Information about the user who created this media item.
.google.photos.types.ContributorInfo contributor_info = 7;
-
getFilename
java.lang.String getFilename()
Filename of the media item. This is shown to the user in the item's info section in the Google Photos app.
string filename = 8;
-
getFilenameBytes
com.google.protobuf.ByteString getFilenameBytes()
Filename of the media item. This is shown to the user in the item's info section in the Google Photos app.
string filename = 8;
-
-