Interface MediaMetadataOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    MediaMetadata, MediaMetadata.Builder

    public interface MediaMetadataOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.Timestamp getCreationTime()
      Time when the media item was first created (not when it was uploaded to Google Photos).
      com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
      Time when the media item was first created (not when it was uploaded to Google Photos).
      long getHeight()
      Original height (in pixels) of the media item.
      MediaMetadata.MetadataCase getMetadataCase()  
      Photo getPhoto()
      Metadata for a photo media type.
      PhotoOrBuilder getPhotoOrBuilder()
      Metadata for a photo media type.
      Video getVideo()
      Metadata for a video media type.
      VideoOrBuilder getVideoOrBuilder()
      Metadata for a video media type.
      long getWidth()
      Original width (in pixels) of the media item.
      boolean hasCreationTime()
      Time when the media item was first created (not when it was uploaded to Google Photos).
      boolean hasPhoto()
      Metadata for a photo media type.
      boolean hasVideo()
      Metadata for a video media type.
      • 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

      • hasCreationTime

        boolean hasCreationTime()
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
        Returns:
        Whether the creationTime field is set.
      • getCreationTime

        com.google.protobuf.Timestamp getCreationTime()
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
        Returns:
        The creationTime.
      • getCreationTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
      • getWidth

        long getWidth()
         Original width (in pixels) of the media item.
         
        int64 width = 2;
        Returns:
        The width.
      • getHeight

        long getHeight()
         Original height (in pixels) of the media item.
         
        int64 height = 3;
        Returns:
        The height.
      • hasPhoto

        boolean hasPhoto()
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
        Returns:
        Whether the photo field is set.
      • getPhoto

        Photo getPhoto()
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
        Returns:
        The photo.
      • getPhotoOrBuilder

        PhotoOrBuilder getPhotoOrBuilder()
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
      • hasVideo

        boolean hasVideo()
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
        Returns:
        Whether the video field is set.
      • getVideo

        Video getVideo()
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
        Returns:
        The video.
      • getVideoOrBuilder

        VideoOrBuilder getVideoOrBuilder()
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;