Class MediaMetadata.Builder

  • All Implemented Interfaces:
    MediaMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    MediaMetadata

    public static final class MediaMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
    implements MediaMetadataOrBuilder
     Metadata for a media item.
     
    Protobuf type google.photos.types.MediaMetadata
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • clear

        public MediaMetadata.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • getDefaultInstanceForType

        public MediaMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MediaMetadata build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MediaMetadata buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MediaMetadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • setField

        public MediaMetadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • clearField

        public MediaMetadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • clearOneof

        public MediaMetadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • setRepeatedField

        public MediaMetadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • addRepeatedField

        public MediaMetadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • mergeFrom

        public MediaMetadata.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MediaMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • mergeFrom

        public MediaMetadata.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MediaMetadata.Builder>
        Throws:
        java.io.IOException
      • hasCreationTime

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

        public 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;
        Specified by:
        getCreationTime in interface MediaMetadataOrBuilder
        Returns:
        The creationTime.
      • setCreationTime

        public MediaMetadata.Builder setCreationTime​(com.google.protobuf.Timestamp value)
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
      • setCreationTime

        public MediaMetadata.Builder setCreationTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
      • mergeCreationTime

        public MediaMetadata.Builder mergeCreationTime​(com.google.protobuf.Timestamp value)
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
      • clearCreationTime

        public MediaMetadata.Builder clearCreationTime()
         Time when the media item was first created (not when it was uploaded to
         Google Photos).
         
        .google.protobuf.Timestamp creation_time = 1;
      • getCreationTimeBuilder

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

        public 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;
        Specified by:
        getCreationTimeOrBuilder in interface MediaMetadataOrBuilder
      • getWidth

        public long getWidth()
         Original width (in pixels) of the media item.
         
        int64 width = 2;
        Specified by:
        getWidth in interface MediaMetadataOrBuilder
        Returns:
        The width.
      • setWidth

        public MediaMetadata.Builder setWidth​(long value)
         Original width (in pixels) of the media item.
         
        int64 width = 2;
        Parameters:
        value - The width to set.
        Returns:
        This builder for chaining.
      • clearWidth

        public MediaMetadata.Builder clearWidth()
         Original width (in pixels) of the media item.
         
        int64 width = 2;
        Returns:
        This builder for chaining.
      • getHeight

        public long getHeight()
         Original height (in pixels) of the media item.
         
        int64 height = 3;
        Specified by:
        getHeight in interface MediaMetadataOrBuilder
        Returns:
        The height.
      • setHeight

        public MediaMetadata.Builder setHeight​(long value)
         Original height (in pixels) of the media item.
         
        int64 height = 3;
        Parameters:
        value - The height to set.
        Returns:
        This builder for chaining.
      • clearHeight

        public MediaMetadata.Builder clearHeight()
         Original height (in pixels) of the media item.
         
        int64 height = 3;
        Returns:
        This builder for chaining.
      • hasPhoto

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

        public Photo getPhoto()
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
        Specified by:
        getPhoto in interface MediaMetadataOrBuilder
        Returns:
        The photo.
      • setPhoto

        public MediaMetadata.Builder setPhoto​(Photo value)
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
      • mergePhoto

        public MediaMetadata.Builder mergePhoto​(Photo value)
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
      • clearPhoto

        public MediaMetadata.Builder clearPhoto()
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
      • getPhotoBuilder

        public Photo.Builder getPhotoBuilder()
         Metadata for a photo media type.
         
        .google.photos.types.Photo photo = 6;
      • hasVideo

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

        public Video getVideo()
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
        Specified by:
        getVideo in interface MediaMetadataOrBuilder
        Returns:
        The video.
      • setVideo

        public MediaMetadata.Builder setVideo​(Video value)
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
      • mergeVideo

        public MediaMetadata.Builder mergeVideo​(Video value)
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
      • clearVideo

        public MediaMetadata.Builder clearVideo()
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
      • getVideoBuilder

        public Video.Builder getVideoBuilder()
         Metadata for a video media type.
         
        .google.photos.types.Video video = 7;
      • setUnknownFields

        public final MediaMetadata.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>
      • mergeUnknownFields

        public final MediaMetadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MediaMetadata.Builder>