Class Photo.Builder

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

    public static final class Photo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
    implements PhotoOrBuilder
     Metadata that is specific to a photo, such as, ISO, focal length and
     exposure time. Some of these fields may be null or not included.
     
    Protobuf type google.photos.types.Photo
    • 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<Photo.Builder>
      • clear

        public Photo.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<Photo.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<Photo.Builder>
      • getDefaultInstanceForType

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

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

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

        public Photo.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<Photo.Builder>
      • setField

        public Photo.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<Photo.Builder>
      • clearField

        public Photo.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<Photo.Builder>
      • clearOneof

        public Photo.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<Photo.Builder>
      • setRepeatedField

        public Photo.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<Photo.Builder>
      • addRepeatedField

        public Photo.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<Photo.Builder>
      • mergeFrom

        public Photo.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<Photo.Builder>
      • isInitialized

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

        public Photo.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<Photo.Builder>
        Throws:
        java.io.IOException
      • getCameraMake

        public java.lang.String getCameraMake()
         Brand of the camera with which the photo was taken.
         
        string camera_make = 1;
        Specified by:
        getCameraMake in interface PhotoOrBuilder
        Returns:
        The cameraMake.
      • getCameraMakeBytes

        public com.google.protobuf.ByteString getCameraMakeBytes()
         Brand of the camera with which the photo was taken.
         
        string camera_make = 1;
        Specified by:
        getCameraMakeBytes in interface PhotoOrBuilder
        Returns:
        The bytes for cameraMake.
      • setCameraMake

        public Photo.Builder setCameraMake​(java.lang.String value)
         Brand of the camera with which the photo was taken.
         
        string camera_make = 1;
        Parameters:
        value - The cameraMake to set.
        Returns:
        This builder for chaining.
      • clearCameraMake

        public Photo.Builder clearCameraMake()
         Brand of the camera with which the photo was taken.
         
        string camera_make = 1;
        Returns:
        This builder for chaining.
      • setCameraMakeBytes

        public Photo.Builder setCameraMakeBytes​(com.google.protobuf.ByteString value)
         Brand of the camera with which the photo was taken.
         
        string camera_make = 1;
        Parameters:
        value - The bytes for cameraMake to set.
        Returns:
        This builder for chaining.
      • getCameraModel

        public java.lang.String getCameraModel()
         Model of the camera with which the photo was taken.
         
        string camera_model = 2;
        Specified by:
        getCameraModel in interface PhotoOrBuilder
        Returns:
        The cameraModel.
      • getCameraModelBytes

        public com.google.protobuf.ByteString getCameraModelBytes()
         Model of the camera with which the photo was taken.
         
        string camera_model = 2;
        Specified by:
        getCameraModelBytes in interface PhotoOrBuilder
        Returns:
        The bytes for cameraModel.
      • setCameraModel

        public Photo.Builder setCameraModel​(java.lang.String value)
         Model of the camera with which the photo was taken.
         
        string camera_model = 2;
        Parameters:
        value - The cameraModel to set.
        Returns:
        This builder for chaining.
      • clearCameraModel

        public Photo.Builder clearCameraModel()
         Model of the camera with which the photo was taken.
         
        string camera_model = 2;
        Returns:
        This builder for chaining.
      • setCameraModelBytes

        public Photo.Builder setCameraModelBytes​(com.google.protobuf.ByteString value)
         Model of the camera with which the photo was taken.
         
        string camera_model = 2;
        Parameters:
        value - The bytes for cameraModel to set.
        Returns:
        This builder for chaining.
      • getFocalLength

        public float getFocalLength()
         Focal length of the camera lens with which the photo was taken.
         
        float focal_length = 3;
        Specified by:
        getFocalLength in interface PhotoOrBuilder
        Returns:
        The focalLength.
      • setFocalLength

        public Photo.Builder setFocalLength​(float value)
         Focal length of the camera lens with which the photo was taken.
         
        float focal_length = 3;
        Parameters:
        value - The focalLength to set.
        Returns:
        This builder for chaining.
      • clearFocalLength

        public Photo.Builder clearFocalLength()
         Focal length of the camera lens with which the photo was taken.
         
        float focal_length = 3;
        Returns:
        This builder for chaining.
      • getApertureFNumber

        public float getApertureFNumber()
         Aperture f number of the camera lens with which the photo was taken.
         
        float aperture_f_number = 4;
        Specified by:
        getApertureFNumber in interface PhotoOrBuilder
        Returns:
        The apertureFNumber.
      • setApertureFNumber

        public Photo.Builder setApertureFNumber​(float value)
         Aperture f number of the camera lens with which the photo was taken.
         
        float aperture_f_number = 4;
        Parameters:
        value - The apertureFNumber to set.
        Returns:
        This builder for chaining.
      • clearApertureFNumber

        public Photo.Builder clearApertureFNumber()
         Aperture f number of the camera lens with which the photo was taken.
         
        float aperture_f_number = 4;
        Returns:
        This builder for chaining.
      • getIsoEquivalent

        public int getIsoEquivalent()
         ISO of the camera with which the photo was taken.
         
        int32 iso_equivalent = 5;
        Specified by:
        getIsoEquivalent in interface PhotoOrBuilder
        Returns:
        The isoEquivalent.
      • setIsoEquivalent

        public Photo.Builder setIsoEquivalent​(int value)
         ISO of the camera with which the photo was taken.
         
        int32 iso_equivalent = 5;
        Parameters:
        value - The isoEquivalent to set.
        Returns:
        This builder for chaining.
      • clearIsoEquivalent

        public Photo.Builder clearIsoEquivalent()
         ISO of the camera with which the photo was taken.
         
        int32 iso_equivalent = 5;
        Returns:
        This builder for chaining.
      • hasExposureTime

        public boolean hasExposureTime()
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
        Specified by:
        hasExposureTime in interface PhotoOrBuilder
        Returns:
        Whether the exposureTime field is set.
      • getExposureTime

        public com.google.protobuf.Duration getExposureTime()
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
        Specified by:
        getExposureTime in interface PhotoOrBuilder
        Returns:
        The exposureTime.
      • setExposureTime

        public Photo.Builder setExposureTime​(com.google.protobuf.Duration value)
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
      • setExposureTime

        public Photo.Builder setExposureTime​(com.google.protobuf.Duration.Builder builderForValue)
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
      • mergeExposureTime

        public Photo.Builder mergeExposureTime​(com.google.protobuf.Duration value)
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
      • clearExposureTime

        public Photo.Builder clearExposureTime()
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
      • getExposureTimeBuilder

        public com.google.protobuf.Duration.Builder getExposureTimeBuilder()
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
      • getExposureTimeOrBuilder

        public com.google.protobuf.DurationOrBuilder getExposureTimeOrBuilder()
         Exposure time of the camera aperture when the photo was taken.
         
        .google.protobuf.Duration exposure_time = 6;
        Specified by:
        getExposureTimeOrBuilder in interface PhotoOrBuilder
      • setUnknownFields

        public final Photo.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<Photo.Builder>
      • mergeUnknownFields

        public final Photo.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<Photo.Builder>