google.api.ClientLibrarySettings */ class ClientLibrarySettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message { /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * Generated from protobuf field string version = 1; */ protected $version = ''; /** * Launch stage of this version of the API. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; */ protected $launch_stage = 0; /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * Generated from protobuf field bool rest_numeric_enums = 3; */ protected $rest_numeric_enums = \false; /** * Settings for legacy Java features, supported in the Service YAML. * * Generated from protobuf field .google.api.JavaSettings java_settings = 21; */ protected $java_settings = null; /** * Settings for C++ client libraries. * * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; */ protected $cpp_settings = null; /** * Settings for PHP client libraries. * * Generated from protobuf field .google.api.PhpSettings php_settings = 23; */ protected $php_settings = null; /** * Settings for Python client libraries. * * Generated from protobuf field .google.api.PythonSettings python_settings = 24; */ protected $python_settings = null; /** * Settings for Node client libraries. * * Generated from protobuf field .google.api.NodeSettings node_settings = 25; */ protected $node_settings = null; /** * Settings for .NET client libraries. * * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; */ protected $dotnet_settings = null; /** * Settings for Ruby client libraries. * * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; */ protected $ruby_settings = null; /** * Settings for Go client libraries. * * Generated from protobuf field .google.api.GoSettings go_settings = 28; */ protected $go_settings = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $version * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * @type int $launch_stage * Launch stage of this version of the API. * @type bool $rest_numeric_enums * When using transport=rest, the client request will encode enums as * numbers rather than strings. * @type \Google\Api\JavaSettings $java_settings * Settings for legacy Java features, supported in the Service YAML. * @type \Google\Api\CppSettings $cpp_settings * Settings for C++ client libraries. * @type \Google\Api\PhpSettings $php_settings * Settings for PHP client libraries. * @type \Google\Api\PythonSettings $python_settings * Settings for Python client libraries. * @type \Google\Api\NodeSettings $node_settings * Settings for Node client libraries. * @type \Google\Api\DotnetSettings $dotnet_settings * Settings for .NET client libraries. * @type \Google\Api\RubySettings $ruby_settings * Settings for Ruby client libraries. * @type \Google\Api\GoSettings $go_settings * Settings for Go client libraries. * } */ public function __construct($data = NULL) { \DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * Generated from protobuf field string version = 1; * @return string */ public function getVersion() { return $this->version; } /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * Generated from protobuf field string version = 1; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } /** * Launch stage of this version of the API. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; * @return int */ public function getLaunchStage() { return $this->launch_stage; } /** * Launch stage of this version of the API. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; * @param int $var * @return $this */ public function setLaunchStage($var) { GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LaunchStage::class); $this->launch_stage = $var; return $this; } /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * Generated from protobuf field bool rest_numeric_enums = 3; * @return bool */ public function getRestNumericEnums() { return $this->rest_numeric_enums; } /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * Generated from protobuf field bool rest_numeric_enums = 3; * @param bool $var * @return $this */ public function setRestNumericEnums($var) { GPBUtil::checkBool($var); $this->rest_numeric_enums = $var; return $this; } /** * Settings for legacy Java features, supported in the Service YAML. * * Generated from protobuf field .google.api.JavaSettings java_settings = 21; * @return \Google\Api\JavaSettings|null */ public function getJavaSettings() { return $this->java_settings; } public function hasJavaSettings() { return isset($this->java_settings); } public function clearJavaSettings() { unset($this->java_settings); } /** * Settings for legacy Java features, supported in the Service YAML. * * Generated from protobuf field .google.api.JavaSettings java_settings = 21; * @param \Google\Api\JavaSettings $var * @return $this */ public function setJavaSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\JavaSettings::class); $this->java_settings = $var; return $this; } /** * Settings for C++ client libraries. * * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; * @return \Google\Api\CppSettings|null */ public function getCppSettings() { return $this->cpp_settings; } public function hasCppSettings() { return isset($this->cpp_settings); } public function clearCppSettings() { unset($this->cpp_settings); } /** * Settings for C++ client libraries. * * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; * @param \Google\Api\CppSettings $var * @return $this */ public function setCppSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CppSettings::class); $this->cpp_settings = $var; return $this; } /** * Settings for PHP client libraries. * * Generated from protobuf field .google.api.PhpSettings php_settings = 23; * @return \Google\Api\PhpSettings|null */ public function getPhpSettings() { return $this->php_settings; } public function hasPhpSettings() { return isset($this->php_settings); } public function clearPhpSettings() { unset($this->php_settings); } /** * Settings for PHP client libraries. * * Generated from protobuf field .google.api.PhpSettings php_settings = 23; * @param \Google\Api\PhpSettings $var * @return $this */ public function setPhpSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\PhpSettings::class); $this->php_settings = $var; return $this; } /** * Settings for Python client libraries. * * Generated from protobuf field .google.api.PythonSettings python_settings = 24; * @return \Google\Api\PythonSettings|null */ public function getPythonSettings() { return $this->python_settings; } public function hasPythonSettings() { return isset($this->python_settings); } public function clearPythonSettings() { unset($this->python_settings); } /** * Settings for Python client libraries. * * Generated from protobuf field .google.api.PythonSettings python_settings = 24; * @param \Google\Api\PythonSettings $var * @return $this */ public function setPythonSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\PythonSettings::class); $this->python_settings = $var; return $this; } /** * Settings for Node client libraries. * * Generated from protobuf field .google.api.NodeSettings node_settings = 25; * @return \Google\Api\NodeSettings|null */ public function getNodeSettings() { return $this->node_settings; } public function hasNodeSettings() { return isset($this->node_settings); } public function clearNodeSettings() { unset($this->node_settings); } /** * Settings for Node client libraries. * * Generated from protobuf field .google.api.NodeSettings node_settings = 25; * @param \Google\Api\NodeSettings $var * @return $this */ public function setNodeSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\NodeSettings::class); $this->node_settings = $var; return $this; } /** * Settings for .NET client libraries. * * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; * @return \Google\Api\DotnetSettings|null */ public function getDotnetSettings() { return $this->dotnet_settings; } public function hasDotnetSettings() { return isset($this->dotnet_settings); } public function clearDotnetSettings() { unset($this->dotnet_settings); } /** * Settings for .NET client libraries. * * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; * @param \Google\Api\DotnetSettings $var * @return $this */ public function setDotnetSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\DotnetSettings::class); $this->dotnet_settings = $var; return $this; } /** * Settings for Ruby client libraries. * * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; * @return \Google\Api\RubySettings|null */ public function getRubySettings() { return $this->ruby_settings; } public function hasRubySettings() { return isset($this->ruby_settings); } public function clearRubySettings() { unset($this->ruby_settings); } /** * Settings for Ruby client libraries. * * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; * @param \Google\Api\RubySettings $var * @return $this */ public function setRubySettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\RubySettings::class); $this->ruby_settings = $var; return $this; } /** * Settings for Go client libraries. * * Generated from protobuf field .google.api.GoSettings go_settings = 28; * @return \Google\Api\GoSettings|null */ public function getGoSettings() { return $this->go_settings; } public function hasGoSettings() { return isset($this->go_settings); } public function clearGoSettings() { unset($this->go_settings); } /** * Settings for Go client libraries. * * Generated from protobuf field .google.api.GoSettings go_settings = 28; * @param \Google\Api\GoSettings $var * @return $this */ public function setGoSettings($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\GoSettings::class); $this->go_settings = $var; return $this; } }