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.MessageLiteOrBuilder

        isInitialized
      • 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;
        Returns:
        The id.
      • 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;
        Returns:
        The bytes for id.
      • 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;
        Returns:
        The description.
      • 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;
        Returns:
        The bytes for description.
      • 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;
        Returns:
        The productUrl.
      • 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;
        Returns:
        The bytes for productUrl.
      • 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;
        Returns:
        The baseUrl.
      • 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;
        Returns:
        The bytes for baseUrl.
      • getMimeType

        java.lang.String getMimeType()
         MIME type of the media item. For example, `image/jpeg`.
         
        string mime_type = 5;
        Returns:
        The mimeType.
      • getMimeTypeBytes

        com.google.protobuf.ByteString getMimeTypeBytes()
         MIME type of the media item. For example, `image/jpeg`.
         
        string mime_type = 5;
        Returns:
        The bytes for mimeType.
      • hasMediaMetadata

        boolean hasMediaMetadata()
         Metadata related to the media item, such as, height, width, or
         creation time.
         
        .google.photos.types.MediaMetadata media_metadata = 6;
        Returns:
        Whether the mediaMetadata field is set.
      • getMediaMetadata

        MediaMetadata getMediaMetadata()
         Metadata related to the media item, such as, height, width, or
         creation time.
         
        .google.photos.types.MediaMetadata media_metadata = 6;
        Returns:
        The mediaMetadata.
      • 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;
        Returns:
        Whether the contributorInfo field is set.
      • getContributorInfo

        ContributorInfo getContributorInfo()
         Information about the user who created this media item.
         
        .google.photos.types.ContributorInfo contributor_info = 7;
        Returns:
        The contributorInfo.
      • 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;
        Returns:
        The filename.
      • 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;
        Returns:
        The bytes for filename.