\Google\Photos\TypesPhoto

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.

Generated from protobuf message google.photos.types.Photo

Summary

Methods
Properties
Constants
__construct()
getCameraMake()
setCameraMake()
getCameraModel()
setCameraModel()
getFocalLength()
setFocalLength()
getApertureFNumber()
setApertureFNumber()
getIsoEquivalent()
setIsoEquivalent()
getExposureTime()
setExposureTime()
No public properties found
No constants found
No protected methods found
$camera_make
$camera_model
$focal_length
$aperture_f_number
$iso_equivalent
$exposure_time
N/A
No private methods found
No private properties found
N/A

Properties

$camera_make

$camera_make

Brand of the camera with which the photo was taken.

Generated from protobuf field string camera_make = 1;

$camera_model

$camera_model

Model of the camera with which the photo was taken.

Generated from protobuf field string camera_model = 2;

$focal_length

$focal_length

Focal length of the camera lens with which the photo was taken.

Generated from protobuf field float focal_length = 3;

$aperture_f_number

$aperture_f_number

Aperture f number of the camera lens with which the photo was taken.

Generated from protobuf field float aperture_f_number = 4;

$iso_equivalent

$iso_equivalent

ISO of the camera with which the photo was taken.

Generated from protobuf field int32 iso_equivalent = 5;

$exposure_time

$exposure_time

Exposure time of the camera aperture when the photo was taken.

Generated from protobuf field .google.protobuf.Duration exposure_time = 6;

Methods

__construct()

__construct(array  $data = NULL) : mixed

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $camera_make
      Brand of the camera with which the photo was taken.
@type string $camera_model
      Model of the camera with which the photo was taken.
@type float $focal_length
      Focal length of the camera lens with which the photo was taken.
@type float $aperture_f_number
      Aperture f number of the camera lens with which the photo was taken.
@type int $iso_equivalent
      ISO of the camera with which the photo was taken.
@type \Google\Protobuf\Duration $exposure_time
      Exposure time of the camera aperture when the photo was taken.

}

Returns

mixed

getCameraMake()

getCameraMake() : string

Brand of the camera with which the photo was taken.

Generated from protobuf field string camera_make = 1;

Returns

string

setCameraMake()

setCameraMake(string  $var) : $this

Brand of the camera with which the photo was taken.

Generated from protobuf field string camera_make = 1;

Parameters

string $var

Returns

$this

getCameraModel()

getCameraModel() : string

Model of the camera with which the photo was taken.

Generated from protobuf field string camera_model = 2;

Returns

string

setCameraModel()

setCameraModel(string  $var) : $this

Model of the camera with which the photo was taken.

Generated from protobuf field string camera_model = 2;

Parameters

string $var

Returns

$this

getFocalLength()

getFocalLength() : float

Focal length of the camera lens with which the photo was taken.

Generated from protobuf field float focal_length = 3;

Returns

float

setFocalLength()

setFocalLength(float  $var) : $this

Focal length of the camera lens with which the photo was taken.

Generated from protobuf field float focal_length = 3;

Parameters

float $var

Returns

$this

getApertureFNumber()

getApertureFNumber() : float

Aperture f number of the camera lens with which the photo was taken.

Generated from protobuf field float aperture_f_number = 4;

Returns

float

setApertureFNumber()

setApertureFNumber(float  $var) : $this

Aperture f number of the camera lens with which the photo was taken.

Generated from protobuf field float aperture_f_number = 4;

Parameters

float $var

Returns

$this

getIsoEquivalent()

getIsoEquivalent() : int

ISO of the camera with which the photo was taken.

Generated from protobuf field int32 iso_equivalent = 5;

Returns

int

setIsoEquivalent()

setIsoEquivalent(int  $var) : $this

ISO of the camera with which the photo was taken.

Generated from protobuf field int32 iso_equivalent = 5;

Parameters

int $var

Returns

$this

getExposureTime()

getExposureTime() : \Google\Protobuf\Duration

Exposure time of the camera aperture when the photo was taken.

Generated from protobuf field .google.protobuf.Duration exposure_time = 6;

Returns

\Google\Protobuf\Duration

setExposureTime()

setExposureTime(\Google\Protobuf\Duration  $var) : $this

Exposure time of the camera aperture when the photo was taken.

Generated from protobuf field .google.protobuf.Duration exposure_time = 6;

Parameters

\Google\Protobuf\Duration $var

Returns

$this