target.apidocs.com.google.api.services.drive.model.File.ImageMediaMetadata.html Maven / Gradle / Ivy
File.ImageMediaMetadata (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class File.ImageMediaMetadata
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.File.ImageMediaMetadata
-
- Enclosing class:
- File
public static final class File.ImageMediaMetadata
extends com.google.api.client.json.GenericJson
Metadata about image media. This will only be present for image types, and its contents will
depend on what can be parsed from the image content.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
static class
File.ImageMediaMetadata.Location
Geographic location information stored in the image.
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ImageMediaMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
File.ImageMediaMetadata
clone()
Float
getAperture()
The aperture used to create the photo (f-number).
String
getCameraMake()
The make of the camera used to create the photo.
String
getCameraModel()
The model of the camera used to create the photo.
String
getColorSpace()
The color space of the photo.
String
getDate()
The date and time the photo was taken (EXIF format timestamp).
Float
getExposureBias()
The exposure bias of the photo (APEX value).
String
getExposureMode()
The exposure mode used to create the photo.
Float
getExposureTime()
The length of the exposure, in seconds.
Boolean
getFlashUsed()
Whether a flash was used to create the photo.
Float
getFocalLength()
The focal length used to create the photo, in millimeters.
Integer
getHeight()
The height of the image in pixels.
Integer
getIsoSpeed()
The ISO speed used to create the photo.
String
getLens()
The lens used to create the photo.
File.ImageMediaMetadata.Location
getLocation()
Geographic location information stored in the image.
Float
getMaxApertureValue()
The smallest f-number of the lens at the focal length used to create the photo (APEX value).
String
getMeteringMode()
The metering mode used to create the photo.
Integer
getRotation()
The rotation in clockwise degrees from the image's original orientation.
String
getSensor()
The type of sensor used to create the photo.
Integer
getSubjectDistance()
The distance to the subject of the photo, in meters.
String
getWhiteBalance()
The white balance mode used to create the photo.
Integer
getWidth()
The width of the image in pixels.
File.ImageMediaMetadata
set(String fieldName,
Object value)
File.ImageMediaMetadata
setAperture(Float aperture)
The aperture used to create the photo (f-number).
File.ImageMediaMetadata
setCameraMake(String cameraMake)
The make of the camera used to create the photo.
File.ImageMediaMetadata
setCameraModel(String cameraModel)
The model of the camera used to create the photo.
File.ImageMediaMetadata
setColorSpace(String colorSpace)
The color space of the photo.
File.ImageMediaMetadata
setDate(String date)
The date and time the photo was taken (EXIF format timestamp).
File.ImageMediaMetadata
setExposureBias(Float exposureBias)
The exposure bias of the photo (APEX value).
File.ImageMediaMetadata
setExposureMode(String exposureMode)
The exposure mode used to create the photo.
File.ImageMediaMetadata
setExposureTime(Float exposureTime)
The length of the exposure, in seconds.
File.ImageMediaMetadata
setFlashUsed(Boolean flashUsed)
Whether a flash was used to create the photo.
File.ImageMediaMetadata
setFocalLength(Float focalLength)
The focal length used to create the photo, in millimeters.
File.ImageMediaMetadata
setHeight(Integer height)
The height of the image in pixels.
File.ImageMediaMetadata
setIsoSpeed(Integer isoSpeed)
The ISO speed used to create the photo.
File.ImageMediaMetadata
setLens(String lens)
The lens used to create the photo.
File.ImageMediaMetadata
setLocation(File.ImageMediaMetadata.Location location)
Geographic location information stored in the image.
File.ImageMediaMetadata
setMaxApertureValue(Float maxApertureValue)
The smallest f-number of the lens at the focal length used to create the photo (APEX value).
File.ImageMediaMetadata
setMeteringMode(String meteringMode)
The metering mode used to create the photo.
File.ImageMediaMetadata
setRotation(Integer rotation)
The rotation in clockwise degrees from the image's original orientation.
File.ImageMediaMetadata
setSensor(String sensor)
The type of sensor used to create the photo.
File.ImageMediaMetadata
setSubjectDistance(Integer subjectDistance)
The distance to the subject of the photo, in meters.
File.ImageMediaMetadata
setWhiteBalance(String whiteBalance)
The white balance mode used to create the photo.
File.ImageMediaMetadata
setWidth(Integer width)
The width of the image in pixels.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAperture
public Float getAperture()
The aperture used to create the photo (f-number).
- Returns:
- value or
null
for none
-
setAperture
public File.ImageMediaMetadata setAperture(Float aperture)
The aperture used to create the photo (f-number).
- Parameters:
aperture
- aperture or null
for none
-
getCameraMake
public String getCameraMake()
The make of the camera used to create the photo.
- Returns:
- value or
null
for none
-
setCameraMake
public File.ImageMediaMetadata setCameraMake(String cameraMake)
The make of the camera used to create the photo.
- Parameters:
cameraMake
- cameraMake or null
for none
-
getCameraModel
public String getCameraModel()
The model of the camera used to create the photo.
- Returns:
- value or
null
for none
-
setCameraModel
public File.ImageMediaMetadata setCameraModel(String cameraModel)
The model of the camera used to create the photo.
- Parameters:
cameraModel
- cameraModel or null
for none
-
getColorSpace
public String getColorSpace()
The color space of the photo.
- Returns:
- value or
null
for none
-
setColorSpace
public File.ImageMediaMetadata setColorSpace(String colorSpace)
The color space of the photo.
- Parameters:
colorSpace
- colorSpace or null
for none
-
getDate
public String getDate()
The date and time the photo was taken (EXIF format timestamp).
- Returns:
- value or
null
for none
-
setDate
public File.ImageMediaMetadata setDate(String date)
The date and time the photo was taken (EXIF format timestamp).
- Parameters:
date
- date or null
for none
-
getExposureBias
public Float getExposureBias()
The exposure bias of the photo (APEX value).
- Returns:
- value or
null
for none
-
setExposureBias
public File.ImageMediaMetadata setExposureBias(Float exposureBias)
The exposure bias of the photo (APEX value).
- Parameters:
exposureBias
- exposureBias or null
for none
-
getExposureMode
public String getExposureMode()
The exposure mode used to create the photo.
- Returns:
- value or
null
for none
-
setExposureMode
public File.ImageMediaMetadata setExposureMode(String exposureMode)
The exposure mode used to create the photo.
- Parameters:
exposureMode
- exposureMode or null
for none
-
getExposureTime
public Float getExposureTime()
The length of the exposure, in seconds.
- Returns:
- value or
null
for none
-
setExposureTime
public File.ImageMediaMetadata setExposureTime(Float exposureTime)
The length of the exposure, in seconds.
- Parameters:
exposureTime
- exposureTime or null
for none
-
getFlashUsed
public Boolean getFlashUsed()
Whether a flash was used to create the photo.
- Returns:
- value or
null
for none
-
setFlashUsed
public File.ImageMediaMetadata setFlashUsed(Boolean flashUsed)
Whether a flash was used to create the photo.
- Parameters:
flashUsed
- flashUsed or null
for none
-
getFocalLength
public Float getFocalLength()
The focal length used to create the photo, in millimeters.
- Returns:
- value or
null
for none
-
setFocalLength
public File.ImageMediaMetadata setFocalLength(Float focalLength)
The focal length used to create the photo, in millimeters.
- Parameters:
focalLength
- focalLength or null
for none
-
getHeight
public Integer getHeight()
The height of the image in pixels.
- Returns:
- value or
null
for none
-
setHeight
public File.ImageMediaMetadata setHeight(Integer height)
The height of the image in pixels.
- Parameters:
height
- height or null
for none
-
getIsoSpeed
public Integer getIsoSpeed()
The ISO speed used to create the photo.
- Returns:
- value or
null
for none
-
setIsoSpeed
public File.ImageMediaMetadata setIsoSpeed(Integer isoSpeed)
The ISO speed used to create the photo.
- Parameters:
isoSpeed
- isoSpeed or null
for none
-
getLens
public String getLens()
The lens used to create the photo.
- Returns:
- value or
null
for none
-
setLens
public File.ImageMediaMetadata setLens(String lens)
The lens used to create the photo.
- Parameters:
lens
- lens or null
for none
-
getLocation
public File.ImageMediaMetadata.Location getLocation()
Geographic location information stored in the image.
- Returns:
- value or
null
for none
-
setLocation
public File.ImageMediaMetadata setLocation(File.ImageMediaMetadata.Location location)
Geographic location information stored in the image.
- Parameters:
location
- location or null
for none
-
getMaxApertureValue
public Float getMaxApertureValue()
The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- Returns:
- value or
null
for none
-
setMaxApertureValue
public File.ImageMediaMetadata setMaxApertureValue(Float maxApertureValue)
The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- Parameters:
maxApertureValue
- maxApertureValue or null
for none
-
getMeteringMode
public String getMeteringMode()
The metering mode used to create the photo.
- Returns:
- value or
null
for none
-
setMeteringMode
public File.ImageMediaMetadata setMeteringMode(String meteringMode)
The metering mode used to create the photo.
- Parameters:
meteringMode
- meteringMode or null
for none
-
getRotation
public Integer getRotation()
The rotation in clockwise degrees from the image's original orientation.
- Returns:
- value or
null
for none
-
setRotation
public File.ImageMediaMetadata setRotation(Integer rotation)
The rotation in clockwise degrees from the image's original orientation.
- Parameters:
rotation
- rotation or null
for none
-
getSensor
public String getSensor()
The type of sensor used to create the photo.
- Returns:
- value or
null
for none
-
setSensor
public File.ImageMediaMetadata setSensor(String sensor)
The type of sensor used to create the photo.
- Parameters:
sensor
- sensor or null
for none
-
getSubjectDistance
public Integer getSubjectDistance()
The distance to the subject of the photo, in meters.
- Returns:
- value or
null
for none
-
setSubjectDistance
public File.ImageMediaMetadata setSubjectDistance(Integer subjectDistance)
The distance to the subject of the photo, in meters.
- Parameters:
subjectDistance
- subjectDistance or null
for none
-
getWhiteBalance
public String getWhiteBalance()
The white balance mode used to create the photo.
- Returns:
- value or
null
for none
-
setWhiteBalance
public File.ImageMediaMetadata setWhiteBalance(String whiteBalance)
The white balance mode used to create the photo.
- Parameters:
whiteBalance
- whiteBalance or null
for none
-
getWidth
public Integer getWidth()
The width of the image in pixels.
- Returns:
- value or
null
for none
-
setWidth
public File.ImageMediaMetadata setWidth(Integer width)
The width of the image in pixels.
- Parameters:
width
- width or null
for none
-
set
public File.ImageMediaMetadata set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public File.ImageMediaMetadata clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.