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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Photobuild()PhotobuildPartial()Photo.Builderclear()Photo.BuilderclearApertureFNumber()Aperture f number of the camera lens with which the photo was taken.Photo.BuilderclearCameraMake()Brand of the camera with which the photo was taken.Photo.BuilderclearCameraModel()Model of the camera with which the photo was taken.Photo.BuilderclearExposureTime()Exposure time of the camera aperture when the photo was taken.Photo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Photo.BuilderclearFocalLength()Focal length of the camera lens with which the photo was taken.Photo.BuilderclearIsoEquivalent()ISO of the camera with which the photo was taken.Photo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Photo.Builderclone()floatgetApertureFNumber()Aperture f number of the camera lens with which the photo was taken.java.lang.StringgetCameraMake()Brand of the camera with which the photo was taken.com.google.protobuf.ByteStringgetCameraMakeBytes()Brand of the camera with which the photo was taken.java.lang.StringgetCameraModel()Model of the camera with which the photo was taken.com.google.protobuf.ByteStringgetCameraModelBytes()Model of the camera with which the photo was taken.PhotogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetExposureTime()Exposure time of the camera aperture when the photo was taken.com.google.protobuf.Duration.BuildergetExposureTimeBuilder()Exposure time of the camera aperture when the photo was taken.com.google.protobuf.DurationOrBuildergetExposureTimeOrBuilder()Exposure time of the camera aperture when the photo was taken.floatgetFocalLength()Focal length of the camera lens with which the photo was taken.intgetIsoEquivalent()ISO of the camera with which the photo was taken.booleanhasExposureTime()Exposure time of the camera aperture when the photo was taken.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Photo.BuildermergeExposureTime(com.google.protobuf.Duration value)Exposure time of the camera aperture when the photo was taken.Photo.BuildermergeFrom(Photo other)Photo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Photo.BuildermergeFrom(com.google.protobuf.Message other)Photo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Photo.BuildersetApertureFNumber(float value)Aperture f number of the camera lens with which the photo was taken.Photo.BuildersetCameraMake(java.lang.String value)Brand of the camera with which the photo was taken.Photo.BuildersetCameraMakeBytes(com.google.protobuf.ByteString value)Brand of the camera with which the photo was taken.Photo.BuildersetCameraModel(java.lang.String value)Model of the camera with which the photo was taken.Photo.BuildersetCameraModelBytes(com.google.protobuf.ByteString value)Model of the camera with which the photo was taken.Photo.BuildersetExposureTime(com.google.protobuf.Duration value)Exposure time of the camera aperture when the photo was taken.Photo.BuildersetExposureTime(com.google.protobuf.Duration.Builder builderForValue)Exposure time of the camera aperture when the photo was taken.Photo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Photo.BuildersetFocalLength(float value)Focal length of the camera lens with which the photo was taken.Photo.BuildersetIsoEquivalent(int value)ISO of the camera with which the photo was taken.Photo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Photo.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
clear
public Photo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
getDefaultInstanceForType
public Photo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Photo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Photo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Photo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
setField
public Photo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
clearField
public Photo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
clearOneof
public Photo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
addRepeatedField
public Photo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
mergeFrom
public Photo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Photo.Builder>
-
mergeFrom
public Photo.Builder mergeFrom(Photo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getCameraMakein interfacePhotoOrBuilder
-
getCameraMakeBytes
public com.google.protobuf.ByteString getCameraMakeBytes()
Brand of the camera with which the photo was taken.
string camera_make = 1;- Specified by:
getCameraMakeBytesin 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:
getCameraModelin interfacePhotoOrBuilder
-
getCameraModelBytes
public com.google.protobuf.ByteString getCameraModelBytes()
Model of the camera with which the photo was taken.
string camera_model = 2;- Specified by:
getCameraModelBytesin 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:
getFocalLengthin 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:
getApertureFNumberin 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:
getIsoEquivalentin 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:
hasExposureTimein 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:
getExposureTimein 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:
getExposureTimeOrBuilderin interfacePhotoOrBuilder
-
setUnknownFields
public final Photo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
mergeUnknownFields
public final Photo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Photo.Builder>
-
-