Package com.google.photos.types.proto
Class Photo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
- com.google.photos.types.proto.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 typegoogle.photos.types.Photo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Photo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Photo
build()
Photo
buildPartial()
Photo.Builder
clear()
Photo.Builder
clearApertureFNumber()
Aperture f number of the camera lens with which the photo was taken.Photo.Builder
clearCameraMake()
Brand of the camera with which the photo was taken.Photo.Builder
clearCameraModel()
Model of the camera with which the photo was taken.Photo.Builder
clearExposureTime()
Exposure time of the camera aperture when the photo was taken.Photo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Photo.Builder
clearFocalLength()
Focal length of the camera lens with which the photo was taken.Photo.Builder
clearIsoEquivalent()
ISO of the camera with which the photo was taken.Photo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Photo.Builder
clone()
float
getApertureFNumber()
Aperture f number of the camera lens with which the photo was taken.java.lang.String
getCameraMake()
Brand of the camera with which the photo was taken.com.google.protobuf.ByteString
getCameraMakeBytes()
Brand of the camera with which the photo was taken.java.lang.String
getCameraModel()
Model of the camera with which the photo was taken.com.google.protobuf.ByteString
getCameraModelBytes()
Model of the camera with which the photo was taken.Photo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getExposureTime()
Exposure time of the camera aperture when the photo was taken.com.google.protobuf.Duration.Builder
getExposureTimeBuilder()
Exposure time of the camera aperture when the photo was taken.com.google.protobuf.DurationOrBuilder
getExposureTimeOrBuilder()
Exposure time of the camera aperture when the photo was taken.float
getFocalLength()
Focal length of the camera lens with which the photo was taken.int
getIsoEquivalent()
ISO of the camera with which the photo was taken.boolean
hasExposureTime()
Exposure time of the camera aperture when the photo was taken.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Photo.Builder
mergeExposureTime(com.google.protobuf.Duration value)
Exposure time of the camera aperture when the photo was taken.Photo.Builder
mergeFrom(Photo other)
Photo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Photo.Builder
mergeFrom(com.google.protobuf.Message other)
Photo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Photo.Builder
setApertureFNumber(float value)
Aperture f number of the camera lens with which the photo was taken.Photo.Builder
setCameraMake(java.lang.String value)
Brand of the camera with which the photo was taken.Photo.Builder
setCameraMakeBytes(com.google.protobuf.ByteString value)
Brand of the camera with which the photo was taken.Photo.Builder
setCameraModel(java.lang.String value)
Model of the camera with which the photo was taken.Photo.Builder
setCameraModelBytes(com.google.protobuf.ByteString value)
Model of the camera with which the photo was taken.Photo.Builder
setExposureTime(com.google.protobuf.Duration value)
Exposure time of the camera aperture when the photo was taken.Photo.Builder
setExposureTime(com.google.protobuf.Duration.Builder builderForValue)
Exposure time of the camera aperture when the photo was taken.Photo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Photo.Builder
setFocalLength(float value)
Focal length of the camera lens with which the photo was taken.Photo.Builder
setIsoEquivalent(int value)
ISO of the camera with which the photo was taken.Photo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Photo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
clear
public Photo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
getDefaultInstanceForType
public Photo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Photo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Photo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Photo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
clearField
public Photo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
clearOneof
public Photo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
mergeFrom
public Photo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Photo.Builder>
-
mergeFrom
public Photo.Builder mergeFrom(Photo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfacePhotoOrBuilder
-
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 interfacePhotoOrBuilder
-
setCameraMake
public Photo.Builder setCameraMake(java.lang.String value)
Brand of the camera with which the photo was taken.
string camera_make = 1;
-
clearCameraMake
public Photo.Builder clearCameraMake()
Brand of the camera with which the photo was taken.
string camera_make = 1;
-
setCameraMakeBytes
public Photo.Builder setCameraMakeBytes(com.google.protobuf.ByteString value)
Brand of the camera with which the photo was taken.
string camera_make = 1;
-
getCameraModel
public java.lang.String getCameraModel()
Model of the camera with which the photo was taken.
string camera_model = 2;
- Specified by:
getCameraModel
in interfacePhotoOrBuilder
-
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 interfacePhotoOrBuilder
-
setCameraModel
public Photo.Builder setCameraModel(java.lang.String value)
Model of the camera with which the photo was taken.
string camera_model = 2;
-
clearCameraModel
public Photo.Builder clearCameraModel()
Model of the camera with which the photo was taken.
string camera_model = 2;
-
setCameraModelBytes
public Photo.Builder setCameraModelBytes(com.google.protobuf.ByteString value)
Model of the camera with which the photo was taken.
string camera_model = 2;
-
getFocalLength
public float getFocalLength()
Focal length of the camera lens with which the photo was taken.
float focal_length = 3;
- Specified by:
getFocalLength
in interfacePhotoOrBuilder
-
setFocalLength
public Photo.Builder setFocalLength(float value)
Focal length of the camera lens with which the photo was taken.
float focal_length = 3;
-
clearFocalLength
public Photo.Builder clearFocalLength()
Focal length of the camera lens with which the photo was taken.
float focal_length = 3;
-
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 interfacePhotoOrBuilder
-
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;
-
clearApertureFNumber
public Photo.Builder clearApertureFNumber()
Aperture f number of the camera lens with which the photo was taken.
float aperture_f_number = 4;
-
getIsoEquivalent
public int getIsoEquivalent()
ISO of the camera with which the photo was taken.
int32 iso_equivalent = 5;
- Specified by:
getIsoEquivalent
in interfacePhotoOrBuilder
-
setIsoEquivalent
public Photo.Builder setIsoEquivalent(int value)
ISO of the camera with which the photo was taken.
int32 iso_equivalent = 5;
-
clearIsoEquivalent
public Photo.Builder clearIsoEquivalent()
ISO of the camera with which the photo was taken.
int32 iso_equivalent = 5;
-
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 interfacePhotoOrBuilder
-
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 interfacePhotoOrBuilder
-
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 interfacePhotoOrBuilder
-
setUnknownFields
public final Photo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
mergeUnknownFields
public final Photo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
-