diff --git a/AiPlatform/metadata/V1/ReasoningEngine.php b/AiPlatform/metadata/V1/ReasoningEngine.php index cd7cddf4f55a..52aacf2d8b51 100644 --- a/AiPlatform/metadata/V1/ReasoningEngine.php +++ b/AiPlatform/metadata/V1/ReasoningEngine.php @@ -22,7 +22,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xE0\x1E\x0A1google/cloud/aiplatform/v1/reasoning_engine.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x19google/api/resource.proto\x1A0google/cloud/aiplatform/v1/encryption_spec.proto\x1A(google/cloud/aiplatform/v1/env_var.proto\x1A3google/cloud/aiplatform/v1/service_networking.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA6\x14\x0A\x13ReasoningEngineSpec\x12Z\x0A\x10source_code_spec\x18\x0B \x01(\x0B2>.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\x00\x12W\x0A\x0Econtainer_spec\x18\x0F \x01(\x0B2=.google.cloud.aiplatform.v1.ReasoningEngineSpec.ContainerSpecH\x00\x12!\x0A\x0Fservice_account\x18\x01 \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12V\x0A\x0Cpackage_spec\x18\x02 \x01(\x0B2;.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecB\x03\xE0A\x01\x12\\\x0A\x0Fdeployment_spec\x18\x04 \x01(\x0B2>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpecB\x03\xE0A\x01\x123\x0A\x0Dclass_methods\x18\x03 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12\x1C\x0A\x0Fagent_framework\x18\x05 \x01(\x09B\x03\xE0A\x01\x12X\x0A\x0Didentity_type\x18\x0C \x01(\x0E2<.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityTypeB\x03\xE0A\x01\x1A\x98\x01\x0A\x0BPackageSpec\x12\"\x0A\x15pickle_object_gcs_uri\x18\x01 \x01(\x09B\x03\xE0A\x01\x12%\x0A\x18dependency_files_gcs_uri\x18\x02 \x01(\x09B\x03\xE0A\x01\x12!\x0A\x14requirements_gcs_uri\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Epython_version\x18\x04 \x01(\x09B\x03\xE0A\x01\x1A\xAE\x04\x0A\x0EDeploymentSpec\x124\x0A\x03env\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.EnvVarB\x03\xE0A\x01\x12A\x0A\x0Asecret_env\x18\x02 \x03(\x0B2(.google.cloud.aiplatform.v1.SecretEnvVarB\x03\xE0A\x01\x12Q\x0A\x14psc_interface_config\x18\x04 \x01(\x0B2..google.cloud.aiplatform.v1.PscInterfaceConfigB\x03\xE0A\x01\x12\x1F\x0A\x0Dmin_instances\x18\x05 \x01(\x05B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1F\x0A\x0Dmax_instances\x18\x06 \x01(\x05B\x03\xE0A\x01H\x01\x88\x01\x01\x12p\x0A\x0Fresource_limits\x18\x07 \x03(\x0B2R.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec.ResourceLimitsEntryB\x03\xE0A\x01\x12'\x0A\x15container_concurrency\x18\x08 \x01(\x05B\x03\xE0A\x01H\x02\x88\x01\x01\x1A5\x0A\x13ResourceLimitsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x10\x0A\x0E_min_instancesB\x10\x0A\x0E_max_instancesB\x18\x0A\x16_container_concurrency\x1A\xDD\x08\x0A\x0ESourceCodeSpec\x12d\x0A\x0Dinline_source\x18\x01 \x01(\x0B2K.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\x00\x12y\x0A\x18developer_connect_source\x18\x03 \x01(\x0B2U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\x00\x12`\x0A\x0Bpython_spec\x18\x02 \x01(\x0B2I.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\x01\x12c\x0A\x0Aimage_spec\x18\x05 \x01(\x0B2H.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\x03\xE0A\x01H\x01\x1A.\x0A\x0CInlineSource\x12\x1E\x0A\x0Esource_archive\x18\x01 \x01(\x0CB\x06\xE0A\x02\xE0A\x04\x1A\xAF\x01\x0A\x09ImageSpec\x12p\x0A\x0Abuild_args\x18\x01 \x03(\x0B2W.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\x03\xE0A\x01\x1A0\x0A\x0EBuildArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x99\x01\x0A\x16DeveloperConnectConfig\x12V\x0A\x13git_repository_link\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1developerconnect.googleapis.com/GitRepositoryLink\x12\x10\x0A\x03dir\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A\x84\x01\x0A\x16DeveloperConnectSource\x12j\x0A\x06config\x18\x01 \x01(\x0B2U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\x03\xE0A\x02\x1A\x82\x01\x0A\x0APythonSpec\x12\x14\x0A\x07version\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11entrypoint_module\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11entrypoint_object\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11requirements_file\x18\x04 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06sourceB\x0F\x0A\x0Dlanguage_spec\x1A'\x0A\x0DContainerSpec\x12\x16\x0A\x09image_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\"V\x0A\x0CIdentityType\x12\x1D\x0A\x19IDENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSERVICE_ACCOUNT\x10\x02\x12\x12\x0A\x0EAGENT_IDENTITY\x10\x03B\x13\x0A\x11deployment_sourceB\x12\x0A\x10_service_account\"\xFB\x04\x0A\x0FReasoningEngine\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x04spec\x18\x03 \x01(\x0B2/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x06 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x0Fencryption_spec\x18\x0B \x01(\x0B2*.google.cloud.aiplatform.v1.EncryptionSpec\x12G\x0A\x06labels\x18\x11 \x03(\x0B27.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x9F\x01\xEAA\x9B\x01\x0A)aiplatform.googleapis.com/ReasoningEngine\x12Kprojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}*\x10reasoningEngines2\x0FreasoningEngineB\xF4\x02\x0A\x1Ecom.google.cloud.aiplatform.v1B\x14ReasoningEngineProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1\xEAA\x9E\x01\x0A1developerconnect.googleapis.com/GitRepositoryLink\x12iprojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}b\x06proto3" + "\x0A\xF9\x1F\x0A1google/cloud/aiplatform/v1/reasoning_engine.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x19google/api/resource.proto\x1A0google/cloud/aiplatform/v1/encryption_spec.proto\x1A(google/cloud/aiplatform/v1/env_var.proto\x1A3google/cloud/aiplatform/v1/service_networking.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xBF\x15\x0A\x13ReasoningEngineSpec\x12Z\x0A\x10source_code_spec\x18\x0B \x01(\x0B2>.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\x00\x12W\x0A\x0Econtainer_spec\x18\x0F \x01(\x0B2=.google.cloud.aiplatform.v1.ReasoningEngineSpec.ContainerSpecH\x00\x12!\x0A\x0Fservice_account\x18\x01 \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12V\x0A\x0Cpackage_spec\x18\x02 \x01(\x0B2;.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecB\x03\xE0A\x01\x12\\\x0A\x0Fdeployment_spec\x18\x04 \x01(\x0B2>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpecB\x03\xE0A\x01\x123\x0A\x0Dclass_methods\x18\x03 \x03(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12\x1C\x0A\x0Fagent_framework\x18\x05 \x01(\x09B\x03\xE0A\x01\x12X\x0A\x0Didentity_type\x18\x0C \x01(\x0E2<.google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityTypeB\x03\xE0A\x01\x12R\x0A\x0Abuild_spec\x18\x10 \x01(\x0B29.google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpecB\x03\xE0A\x01\x1A\x98\x01\x0A\x0BPackageSpec\x12\"\x0A\x15pickle_object_gcs_uri\x18\x01 \x01(\x09B\x03\xE0A\x01\x12%\x0A\x18dependency_files_gcs_uri\x18\x02 \x01(\x09B\x03\xE0A\x01\x12!\x0A\x14requirements_gcs_uri\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Epython_version\x18\x04 \x01(\x09B\x03\xE0A\x01\x1A\xAE\x04\x0A\x0EDeploymentSpec\x124\x0A\x03env\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.EnvVarB\x03\xE0A\x01\x12A\x0A\x0Asecret_env\x18\x02 \x03(\x0B2(.google.cloud.aiplatform.v1.SecretEnvVarB\x03\xE0A\x01\x12Q\x0A\x14psc_interface_config\x18\x04 \x01(\x0B2..google.cloud.aiplatform.v1.PscInterfaceConfigB\x03\xE0A\x01\x12\x1F\x0A\x0Dmin_instances\x18\x05 \x01(\x05B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1F\x0A\x0Dmax_instances\x18\x06 \x01(\x05B\x03\xE0A\x01H\x01\x88\x01\x01\x12p\x0A\x0Fresource_limits\x18\x07 \x03(\x0B2R.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec.ResourceLimitsEntryB\x03\xE0A\x01\x12'\x0A\x15container_concurrency\x18\x08 \x01(\x05B\x03\xE0A\x01H\x02\x88\x01\x01\x1A5\x0A\x13ResourceLimitsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x10\x0A\x0E_min_instancesB\x10\x0A\x0E_max_instancesB\x18\x0A\x16_container_concurrency\x1A\xDD\x08\x0A\x0ESourceCodeSpec\x12d\x0A\x0Dinline_source\x18\x01 \x01(\x0B2K.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\x00\x12y\x0A\x18developer_connect_source\x18\x03 \x01(\x0B2U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\x00\x12`\x0A\x0Bpython_spec\x18\x02 \x01(\x0B2I.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\x01\x12c\x0A\x0Aimage_spec\x18\x05 \x01(\x0B2H.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\x03\xE0A\x01H\x01\x1A.\x0A\x0CInlineSource\x12\x1E\x0A\x0Esource_archive\x18\x01 \x01(\x0CB\x06\xE0A\x02\xE0A\x04\x1A\xAF\x01\x0A\x09ImageSpec\x12p\x0A\x0Abuild_args\x18\x01 \x03(\x0B2W.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\x03\xE0A\x01\x1A0\x0A\x0EBuildArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x99\x01\x0A\x16DeveloperConnectConfig\x12V\x0A\x13git_repository_link\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1developerconnect.googleapis.com/GitRepositoryLink\x12\x10\x0A\x03dir\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A\x84\x01\x0A\x16DeveloperConnectSource\x12j\x0A\x06config\x18\x01 \x01(\x0B2U.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\x03\xE0A\x02\x1A\x82\x01\x0A\x0APythonSpec\x12\x14\x0A\x07version\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11entrypoint_module\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11entrypoint_object\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11requirements_file\x18\x04 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06sourceB\x0F\x0A\x0Dlanguage_spec\x1A'\x0A\x0DContainerSpec\x12\x16\x0A\x09image_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x1AC\x0A\x09BuildSpec\x12\x18\x0A\x0Bworker_pool\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x02 \x01(\x09B\x03\xE0A\x01\"V\x0A\x0CIdentityType\x12\x1D\x0A\x19IDENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSERVICE_ACCOUNT\x10\x02\x12\x12\x0A\x0EAGENT_IDENTITY\x10\x03B\x13\x0A\x11deployment_sourceB\x12\x0A\x10_service_account\"\xFB\x04\x0A\x0FReasoningEngine\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x04spec\x18\x03 \x01(\x0B2/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x06 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x0Fencryption_spec\x18\x0B \x01(\x0B2*.google.cloud.aiplatform.v1.EncryptionSpec\x12G\x0A\x06labels\x18\x11 \x03(\x0B27.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x9F\x01\xEAA\x9B\x01\x0A)aiplatform.googleapis.com/ReasoningEngine\x12Kprojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}*\x10reasoningEngines2\x0FreasoningEngineB\xF4\x02\x0A\x1Ecom.google.cloud.aiplatform.v1B\x14ReasoningEngineProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1\xEAA\x9E\x01\x0A1developerconnect.googleapis.com/GitRepositoryLink\x12iprojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}b\x06proto3" , true); static::$is_initialized = true; diff --git a/AiPlatform/src/V1/ReasoningEngineSpec.php b/AiPlatform/src/V1/ReasoningEngineSpec.php index 3f38af63d52e..902bd90fa820 100644 --- a/AiPlatform/src/V1/ReasoningEngineSpec.php +++ b/AiPlatform/src/V1/ReasoningEngineSpec.php @@ -66,6 +66,12 @@ class ReasoningEngineSpec extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.aiplatform.v1.ReasoningEngineSpec.IdentityType identity_type = 12 [(.google.api.field_behavior) = OPTIONAL]; */ protected $identity_type = 0; + /** + * Optional. Configuration for building container image. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpec build_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $build_spec = null; protected $deployment_source; /** @@ -105,6 +111,8 @@ class ReasoningEngineSpec extends \Google\Protobuf\Internal\Message * specified, the `service_account` field will be used if set, otherwise the * default Vertex AI Reasoning Engine Service Agent in the project will be * used. + * @type \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\BuildSpec $build_spec + * Optional. Configuration for building container image. * } */ public function __construct($data = NULL) { @@ -390,6 +398,42 @@ public function setIdentityType($var) return $this; } + /** + * Optional. Configuration for building container image. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpec build_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\BuildSpec|null + */ + public function getBuildSpec() + { + return $this->build_spec; + } + + public function hasBuildSpec() + { + return isset($this->build_spec); + } + + public function clearBuildSpec() + { + unset($this->build_spec); + } + + /** + * Optional. Configuration for building container image. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpec build_spec = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\BuildSpec $var + * @return $this + */ + public function setBuildSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\BuildSpec::class); + $this->build_spec = $var; + + return $this; + } + /** * @return string */ diff --git a/AiPlatform/src/V1/ReasoningEngineSpec/BuildSpec.php b/AiPlatform/src/V1/ReasoningEngineSpec/BuildSpec.php new file mode 100644 index 000000000000..1f803f84cb49 --- /dev/null +++ b/AiPlatform/src/V1/ReasoningEngineSpec/BuildSpec.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpec + */ +class BuildSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource name of the Cloud Build WorkerPool to use for + * the build. + * Format: + * `projects/{project}/locations/{location}/workerPools/{worker_pool}` + * + * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $worker_pool = ''; + /** + * Optional. The service account that Cloud Build uses to run the build. + * This field is only applicable when `worker_pool` is specified (i.e., for + * custom worker pools). If `worker_pool` is not specified, this field is + * ignored and the build runs using the Google-managed service agent. + * Format: `projects/{project}/serviceAccounts/{service_account}` or + * `{service_account}\@{project}.iam.gserviceaccount.com` + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $worker_pool + * Optional. The resource name of the Cloud Build WorkerPool to use for + * the build. + * Format: + * `projects/{project}/locations/{location}/workerPools/{worker_pool}` + * @type string $service_account + * Optional. The service account that Cloud Build uses to run the build. + * This field is only applicable when `worker_pool` is specified (i.e., for + * custom worker pools). If `worker_pool` is not specified, this field is + * ignored and the build runs using the Google-managed service agent. + * Format: `projects/{project}/serviceAccounts/{service_account}` or + * `{service_account}\@{project}.iam.gserviceaccount.com` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ReasoningEngine::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource name of the Cloud Build WorkerPool to use for + * the build. + * Format: + * `projects/{project}/locations/{location}/workerPools/{worker_pool}` + * + * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getWorkerPool() + { + return $this->worker_pool; + } + + /** + * Optional. The resource name of the Cloud Build WorkerPool to use for + * the build. + * Format: + * `projects/{project}/locations/{location}/workerPools/{worker_pool}` + * + * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setWorkerPool($var) + { + GPBUtil::checkString($var, True); + $this->worker_pool = $var; + + return $this; + } + + /** + * Optional. The service account that Cloud Build uses to run the build. + * This field is only applicable when `worker_pool` is specified (i.e., for + * custom worker pools). If `worker_pool` is not specified, this field is + * ignored and the build runs using the Google-managed service agent. + * Format: `projects/{project}/serviceAccounts/{service_account}` or + * `{service_account}\@{project}.iam.gserviceaccount.com` + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. The service account that Cloud Build uses to run the build. + * This field is only applicable when `worker_pool` is specified (i.e., for + * custom worker pools). If `worker_pool` is not specified, this field is + * ignored and the build runs using the Google-managed service agent. + * Format: `projects/{project}/serviceAccounts/{service_account}` or + * `{service_account}\@{project}.iam.gserviceaccount.com` + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + +} +