google.api.FieldInfo */ class FieldInfo extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message { /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * Generated from protobuf field .google.api.FieldInfo.Format format = 1; */ protected $format = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $format * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * } */ public function __construct($data = NULL) { \DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\FieldInfo::initOnce(); parent::__construct($data); } /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * Generated from protobuf field .google.api.FieldInfo.Format format = 1; * @return int */ public function getFormat() { return $this->format; } /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * Generated from protobuf field .google.api.FieldInfo.Format format = 1; * @param int $var * @return $this */ public function setFormat($var) { GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\FieldInfo\Format::class); $this->format = $var; return $this; } }