From 285585e1bc4a9e31ce01ea6fdf15b781df38a81b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:14:32 -0500 Subject: [PATCH] feat: add fast_tryout_enabled to FasterDeploymentConfig v1 proto (#7821) * feat: add BYOSA field to tuning_job PiperOrigin-RevId: 695386844 Source-Link: https://github.com/googleapis/googleapis/commit/e5a3787ec95a2d3ccb1207a6470beb5ee0df3afc Source-Link: https://github.com/googleapis/googleapis-gen/commit/25a5672e5eb1dd46da8fb189a2e4483ab88d91bd Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiMjVhNTY3MmU1ZWIxZGQ0NmRhOGZiMTg5YTJlNDQ4M2FiODhkOTFiZCJ9 * feat: metricX added to evaluation service proto docs: A comment for field `timeout` in message `.google.cloud.aiplatform.v1.Scheduling` is changed docs: A comment for field `restart_job_on_worker_restart` in message `.google.cloud.aiplatform.v1.Scheduling` is changed docs: A comment for method `ListAnnotations` in service `DatasetService` is changed docs: A comment for message `GetDatasetRequest` is changed docs: A comment for message `GetDatasetVersionRequest` is changed docs: A comment for field `update_mask` in message `.google.cloud.aiplatform.v1.UpdateFeatureViewRequest` is changed docs: A comment for method `RebaseTunedModel` in service `GenAiTuningService` is changed PiperOrigin-RevId: 695757711 Source-Link: https://github.com/googleapis/googleapis/commit/424d08509cb0a3b766f10dc1d5a77a8a62193f63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7b8162969a95ed7098d5df2aaef01a58371cba26 Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiN2I4MTYyOTY5YTk1ZWQ3MDk4ZDVkZjJhYWVmMDFhNTgzNzFjYmEyNiJ9 * feat: COMET added to evaluation service proto docs: A comment for field `saved_query_id` in message `.google.cloud.aiplatform.v1.ExportDataConfig` is changed docs: A comment for field `annotation_schema_uri` in message `.google.cloud.aiplatform.v1.ExportDataConfig` is changed docs: A comment for field `predictions` in message `.google.cloud.aiplatform.v1.EvaluatedAnnotation` is changed docs: A comment for field `attributions` in message `.google.cloud.aiplatform.v1.Explanation` is changed docs: A comment for message `DeleteFeatureViewRequest` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListFeatureGroupsRequest` is changed docs: A comment for message `StreamingReadFeatureValuesRequest` is changed docs: A comment for message `DeleteEntityTypeRequest` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListTuningJobsRequest` is changed docs: A comment for field `deployed_index` in message `.google.cloud.aiplatform.v1.MutateDeployedIndexRequest` is changed docs: A comment for field `request` in message `.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata` is changed docs: A comment for field `data_stats` in message `.google.cloud.aiplatform.v1.Model` is changed docs: A comment for field `enable_logging` in message `.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest` is changed docs: A comment for field `next_page_token` in message `.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse` is changed docs: A comment for message `ListPersistentResourcesRequest` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListPersistentResourcesRequest` is changed docs: A comment for method `ResumeSchedule` in service `ScheduleService` is changed docs: A comment for field `bool_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `string_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `bytes_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `float_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `double_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `int_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `int64_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `uint_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `uint64_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed PiperOrigin-RevId: 695815755 Source-Link: https://github.com/googleapis/googleapis/commit/d8cfde0f4386c4901e5120643d9e91ce8f7919c8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/243e9d27887bc101b681515afa90519825a8e6fc Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiMjQzZTlkMjc4ODdiYzEwMWI2ODE1MTVhZmE5MDUxOTgyNWE4ZTZmYyJ9 * feat: add fast_tryout_enabled to FasterDeploymentConfig v1 proto PiperOrigin-RevId: 695856863 Source-Link: https://github.com/googleapis/googleapis/commit/caa3e6d86e7315ee2753e14686319828f8d06d8a Source-Link: https://github.com/googleapis/googleapis-gen/commit/685fa1d711036e2203dfbbe0a89054e2872f3b8d Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiNjg1ZmExZDcxMTAzNmUyMjAzZGZiYmUwYTg5MDU0ZTI4NzJmM2I4ZCJ9 --- AiPlatform/metadata/V1/Endpoint.php | Bin 4180 -> 4321 bytes AiPlatform/metadata/V1/EnvVar.php | 5 +- AiPlatform/metadata/V1/EvaluationService.php | Bin 18327 -> 19801 bytes AiPlatform/metadata/V1/TuningJob.php | Bin 4686 -> 4711 bytes .../DatasetServiceClient/list_annotations.php | 2 + .../rebase_tuned_model.php | 2 - .../ScheduleServiceClient/resume_schedule.php | 5 +- .../PartialResult.php | 8 +- .../src/V1/Client/DatasetServiceClient.php | 2 + .../V1/Client/GenAiTuningServiceClient.php | 2 - .../src/V1/Client/ScheduleServiceClient.php | 5 +- AiPlatform/src/V1/CometInput.php | 121 +++++++++++++ AiPlatform/src/V1/CometInstance.php | 166 ++++++++++++++++++ AiPlatform/src/V1/CometResult.php | 78 ++++++++ AiPlatform/src/V1/CometSpec.php | 149 ++++++++++++++++ AiPlatform/src/V1/CometSpec/CometVersion.php | 56 ++++++ AiPlatform/src/V1/DeleteEntityTypeRequest.php | 3 +- .../src/V1/DeleteFeatureViewRequest.php | 3 +- AiPlatform/src/V1/DeployedModel.php | 44 +++++ .../src/V1/EvaluateInstancesRequest.php | 69 ++++++++ .../src/V1/EvaluateInstancesResponse.php | 69 ++++++++ AiPlatform/src/V1/EvaluatedAnnotation.php | 8 +- AiPlatform/src/V1/Explanation.php | 16 +- AiPlatform/src/V1/ExportDataConfig.php | 24 ++- AiPlatform/src/V1/FasterDeploymentConfig.php | 67 +++++++ AiPlatform/src/V1/GetDatasetRequest.php | 1 + .../src/V1/GetDatasetVersionRequest.php | 1 + .../src/V1/ListFeatureGroupsRequest.php | 32 ++-- .../V1/ListNotebookExecutionJobsRequest.php | 12 +- .../V1/ListNotebookExecutionJobsResponse.php | 20 ++- .../src/V1/ListPersistentResourcesRequest.php | 19 +- AiPlatform/src/V1/ListTuningJobsRequest.php | 20 ++- AiPlatform/src/V1/MetricxInput.php | 121 +++++++++++++ AiPlatform/src/V1/MetricxInstance.php | 166 ++++++++++++++++++ AiPlatform/src/V1/MetricxResult.php | 78 ++++++++ AiPlatform/src/V1/MetricxSpec.php | 149 ++++++++++++++++ .../src/V1/MetricxSpec/MetricxVersion.php | 70 ++++++++ AiPlatform/src/V1/Model.php | 8 +- .../src/V1/ModelMonitoringAlertConfig.php | 24 +-- .../src/V1/MutateDeployedIndexRequest.php | 30 ++-- AiPlatform/src/V1/Scheduling.php | 16 +- AiPlatform/src/V1/Schema.php | 16 +- .../V1/StreamingReadFeatureValuesRequest.php | 2 +- AiPlatform/src/V1/Tensor.php | 104 +++++------ .../src/V1/ToolParameterKVMatchSpec.php | 8 +- AiPlatform/src/V1/TuningJob.php | 54 ++++++ .../src/V1/UpdateFeatureViewRequest.php | 5 + .../Client/GenAiTuningServiceClientTest.php | 6 + 48 files changed, 1686 insertions(+), 180 deletions(-) create mode 100644 AiPlatform/src/V1/CometInput.php create mode 100644 AiPlatform/src/V1/CometInstance.php create mode 100644 AiPlatform/src/V1/CometResult.php create mode 100644 AiPlatform/src/V1/CometSpec.php create mode 100644 AiPlatform/src/V1/CometSpec/CometVersion.php create mode 100644 AiPlatform/src/V1/FasterDeploymentConfig.php create mode 100644 AiPlatform/src/V1/MetricxInput.php create mode 100644 AiPlatform/src/V1/MetricxInstance.php create mode 100644 AiPlatform/src/V1/MetricxResult.php create mode 100644 AiPlatform/src/V1/MetricxSpec.php create mode 100644 AiPlatform/src/V1/MetricxSpec/MetricxVersion.php diff --git a/AiPlatform/metadata/V1/Endpoint.php b/AiPlatform/metadata/V1/Endpoint.php index a316ceabb952a57f39e47e81e771a25bd3d2e871..aacec71ee538da161d8f19dc7afc7c04da897e10 100644 GIT binary patch delta 162 zcmcbj@KABXKW3)slABoOvoY;t-@K6P2$OOMmqc1(aY<@Xd`fCTPJU%>YF810ozxp2q}NplH delta 44 zcmV+{0Mq~BA=DtS{sRJv7_tPP1_I*-v!M#a0<*gf(E$iT%K-`=V{dJfFb5lx<`4Ua C3lQi4 diff --git a/AiPlatform/metadata/V1/EnvVar.php b/AiPlatform/metadata/V1/EnvVar.php index 11d566cf6cbc..cab60001abbb 100644 --- a/AiPlatform/metadata/V1/EnvVar.php +++ b/AiPlatform/metadata/V1/EnvVar.php @@ -15,10 +15,11 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' -Ë -(google/cloud/aiplatform/v1/env_var.protogoogle.cloud.aiplatform.v1"/ +æ +(google/cloud/aiplatform/v1/env_var.protogoogle.cloud.aiplatform.v1google/api/resource.proto"/ EnvVar name ( BàA value ( BàABÉ diff --git a/AiPlatform/metadata/V1/EvaluationService.php b/AiPlatform/metadata/V1/EvaluationService.php index aa0980f0d56182ed0f4983147664771c3f72a7f4..765536d89a4d418ca2b3ce9e64af923459d4fd7a 100644 GIT binary patch delta 958 zcmb_aF>ljA7|q#*B%hPiIiko_n%Z)Qc8V&eYUzO5#z_?mrKJf(3`kaFSy80m6emFp zNWjK`XsZJu!CzoNio~yAfU!(S3=AwR?AUkbG+|<3yL<0_?>@bEZ%)z0TlC?xaOLAG z1m*LaWs(qm;cIsCSWGA68z4D@`|il@c_-tMqLR{ru9_iYg+M)q_aPnJ{GRiOYcw)g z(Bln;k!Mm{_@13yNcF@L-h~u%^WEXNKT?VsT9=G_Yvfp3UZt*0N(8nhWFlKGUeORy z6)nx3nR24$K5b<6Qv`6i72YM>aLU2xOTteb;q49 zeRDk-N+>((_}w7dDJur*Lrz*V-Ja`|XoAYZg=%y3k*&I-4L@| Q3`hvGDiz8wv#m<30$s=yEdT%j diff --git a/AiPlatform/metadata/V1/TuningJob.php b/AiPlatform/metadata/V1/TuningJob.php index 869e513605254f17c060681c413ac388ad7d1103..a0cf2b6b021563f0128d9d623bb0b6ecbe112515 100644 GIT binary patch delta 52 zcmX@7@?2%ZEM~_4n`bj?FftzBe1s*ASyD)xi@!Lvs4O!%H9j#pIlnZoL_$n~QG;`{ I5{C{K0QD6RlmGw# delta 26 icmaE^a!zH#EM~@Mn`bj?Ffy*&e1s*Ad9yW#4i^BD>j`53 diff --git a/AiPlatform/samples/V1/DatasetServiceClient/list_annotations.php b/AiPlatform/samples/V1/DatasetServiceClient/list_annotations.php index e9e1c221bb3c..e03256609ac4 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/list_annotations.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/list_annotations.php @@ -31,6 +31,8 @@ /** * Lists Annotations belongs to a dataitem + * This RPC is only available in InternalDatasetService. It is only used for + * exporting conversation data to CCAI Insights. * * @param string $formattedParent The resource name of the DataItem to list Annotations from. * Format: diff --git a/AiPlatform/samples/V1/GenAiTuningServiceClient/rebase_tuned_model.php b/AiPlatform/samples/V1/GenAiTuningServiceClient/rebase_tuned_model.php index 3036fada50ef..bd6a0a5c6aae 100644 --- a/AiPlatform/samples/V1/GenAiTuningServiceClient/rebase_tuned_model.php +++ b/AiPlatform/samples/V1/GenAiTuningServiceClient/rebase_tuned_model.php @@ -33,8 +33,6 @@ /** * Rebase a TunedModel. - * Creates a LongRunningOperation that takes a legacy Tuned GenAI model - * Reference and creates a TuningJob based on newly available model. * * @param string $formattedParent The resource name of the Location into which to rebase the Model. * Format: `projects/{project}/locations/{location}` diff --git a/AiPlatform/samples/V1/ScheduleServiceClient/resume_schedule.php b/AiPlatform/samples/V1/ScheduleServiceClient/resume_schedule.php index e87e9f6e3de4..bac54ef751da 100644 --- a/AiPlatform/samples/V1/ScheduleServiceClient/resume_schedule.php +++ b/AiPlatform/samples/V1/ScheduleServiceClient/resume_schedule.php @@ -34,8 +34,9 @@ * * When the Schedule is resumed, new runs will be scheduled starting from the * next execution time after the current time based on the time_specification - * in the Schedule. If [Schedule.catchUp][] is set up true, all - * missed runs will be scheduled for backfill first. + * in the Schedule. If + * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up + * true, all missed runs will be scheduled for backfill first. * * @param string $formattedName The name of the Schedule resource to be resumed. * Format: diff --git a/AiPlatform/src/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php b/AiPlatform/src/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php index 92b74b262b78..4ef3be5bd8df 100644 --- a/AiPlatform/src/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php +++ b/AiPlatform/src/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php @@ -18,7 +18,7 @@ class PartialResult extends \Google\Protobuf\Internal\Message { /** * It's the same as the value in - * [MigrateResourceRequest.migrate_resource_requests][]. + * [BatchMigrateResourcesRequest.migrate_resource_requests][google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrate_resource_requests]. * * Generated from protobuf field .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; */ @@ -39,7 +39,7 @@ class PartialResult extends \Google\Protobuf\Internal\Message * Migrated dataset resource name. * @type \Google\Cloud\AIPlatform\V1\MigrateResourceRequest $request * It's the same as the value in - * [MigrateResourceRequest.migrate_resource_requests][]. + * [BatchMigrateResourcesRequest.migrate_resource_requests][google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrate_resource_requests]. * } */ public function __construct($data = NULL) { @@ -142,7 +142,7 @@ public function setDataset($var) /** * It's the same as the value in - * [MigrateResourceRequest.migrate_resource_requests][]. + * [BatchMigrateResourcesRequest.migrate_resource_requests][google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrate_resource_requests]. * * Generated from protobuf field .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; * @return \Google\Cloud\AIPlatform\V1\MigrateResourceRequest|null @@ -164,7 +164,7 @@ public function clearRequest() /** * It's the same as the value in - * [MigrateResourceRequest.migrate_resource_requests][]. + * [BatchMigrateResourcesRequest.migrate_resource_requests][google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrate_resource_requests]. * * Generated from protobuf field .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; * @param \Google\Cloud\AIPlatform\V1\MigrateResourceRequest $var diff --git a/AiPlatform/src/V1/Client/DatasetServiceClient.php b/AiPlatform/src/V1/Client/DatasetServiceClient.php index 3b71beec0cf9..71741aa05d09 100644 --- a/AiPlatform/src/V1/Client/DatasetServiceClient.php +++ b/AiPlatform/src/V1/Client/DatasetServiceClient.php @@ -701,6 +701,8 @@ public function importData(ImportDataRequest $request, array $callOptions = []): /** * Lists Annotations belongs to a dataitem + * This RPC is only available in InternalDatasetService. It is only used for + * exporting conversation data to CCAI Insights. * * The async variant is {@see DatasetServiceClient::listAnnotationsAsync()} . * diff --git a/AiPlatform/src/V1/Client/GenAiTuningServiceClient.php b/AiPlatform/src/V1/Client/GenAiTuningServiceClient.php index ff4c08034ea6..2ebb7d3638ae 100644 --- a/AiPlatform/src/V1/Client/GenAiTuningServiceClient.php +++ b/AiPlatform/src/V1/Client/GenAiTuningServiceClient.php @@ -553,8 +553,6 @@ public function listTuningJobs(ListTuningJobsRequest $request, array $callOption /** * Rebase a TunedModel. - * Creates a LongRunningOperation that takes a legacy Tuned GenAI model - * Reference and creates a TuningJob based on newly available model. * * The async variant is {@see GenAiTuningServiceClient::rebaseTunedModelAsync()} . * diff --git a/AiPlatform/src/V1/Client/ScheduleServiceClient.php b/AiPlatform/src/V1/Client/ScheduleServiceClient.php index 9fd3b439007e..9ac1be597f11 100644 --- a/AiPlatform/src/V1/Client/ScheduleServiceClient.php +++ b/AiPlatform/src/V1/Client/ScheduleServiceClient.php @@ -650,8 +650,9 @@ public function pauseSchedule(PauseScheduleRequest $request, array $callOptions * * When the Schedule is resumed, new runs will be scheduled starting from the * next execution time after the current time based on the time_specification - * in the Schedule. If [Schedule.catchUp][] is set up true, all - * missed runs will be scheduled for backfill first. + * in the Schedule. If + * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up + * true, all missed runs will be scheduled for backfill first. * * The async variant is {@see ScheduleServiceClient::resumeScheduleAsync()} . * diff --git a/AiPlatform/src/V1/CometInput.php b/AiPlatform/src/V1/CometInput.php new file mode 100644 index 000000000000..a95399c52bea --- /dev/null +++ b/AiPlatform/src/V1/CometInput.php @@ -0,0 +1,121 @@ +google.cloud.aiplatform.v1.CometInput + */ +class CometInput extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Spec for comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metric_spec = null; + /** + * Required. Comet instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\CometSpec $metric_spec + * Required. Spec for comet metric. + * @type \Google\Cloud\AIPlatform\V1\CometInstance $instance + * Required. Comet instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Spec for comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\CometSpec|null + */ + public function getMetricSpec() + { + return $this->metric_spec; + } + + public function hasMetricSpec() + { + return isset($this->metric_spec); + } + + public function clearMetricSpec() + { + unset($this->metric_spec); + } + + /** + * Required. Spec for comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\CometSpec $var + * @return $this + */ + public function setMetricSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CometSpec::class); + $this->metric_spec = $var; + + return $this; + } + + /** + * Required. Comet instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\CometInstance|null + */ + public function getInstance() + { + return $this->instance; + } + + public function hasInstance() + { + return isset($this->instance); + } + + public function clearInstance() + { + unset($this->instance); + } + + /** + * Required. Comet instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\CometInstance $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CometInstance::class); + $this->instance = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/CometInstance.php b/AiPlatform/src/V1/CometInstance.php new file mode 100644 index 000000000000..33c754fd9b89 --- /dev/null +++ b/AiPlatform/src/V1/CometInstance.php @@ -0,0 +1,166 @@ +google.cloud.aiplatform.v1.CometInstance + */ +class CometInstance extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Output of the evaluated model. + * + * Generated from protobuf field optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $prediction = null; + /** + * Optional. Ground truth used to compare against the prediction. + * + * Generated from protobuf field optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $reference = null; + /** + * Optional. Source text in original language. + * + * Generated from protobuf field optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $prediction + * Required. Output of the evaluated model. + * @type string $reference + * Optional. Ground truth used to compare against the prediction. + * @type string $source + * Optional. Source text in original language. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Output of the evaluated model. + * + * Generated from protobuf field optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPrediction() + { + return isset($this->prediction) ? $this->prediction : ''; + } + + public function hasPrediction() + { + return isset($this->prediction); + } + + public function clearPrediction() + { + unset($this->prediction); + } + + /** + * Required. Output of the evaluated model. + * + * Generated from protobuf field optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPrediction($var) + { + GPBUtil::checkString($var, True); + $this->prediction = $var; + + return $this; + } + + /** + * Optional. Ground truth used to compare against the prediction. + * + * Generated from protobuf field optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getReference() + { + return isset($this->reference) ? $this->reference : ''; + } + + public function hasReference() + { + return isset($this->reference); + } + + public function clearReference() + { + unset($this->reference); + } + + /** + * Optional. Ground truth used to compare against the prediction. + * + * Generated from protobuf field optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setReference($var) + { + GPBUtil::checkString($var, True); + $this->reference = $var; + + return $this; + } + + /** + * Optional. Source text in original language. + * + * Generated from protobuf field optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSource() + { + return isset($this->source) ? $this->source : ''; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * Optional. Source text in original language. + * + * Generated from protobuf field optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/CometResult.php b/AiPlatform/src/V1/CometResult.php new file mode 100644 index 000000000000..6103cc842838 --- /dev/null +++ b/AiPlatform/src/V1/CometResult.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CometResult + */ +class CometResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Comet score. Range depends on version. + * + * Generated from protobuf field optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $score = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $score + * Output only. Comet score. Range depends on version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Comet score. Range depends on version. + * + * Generated from protobuf field optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. Comet score. Range depends on version. + * + * Generated from protobuf field optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/CometSpec.php b/AiPlatform/src/V1/CometSpec.php new file mode 100644 index 000000000000..4a98f0654f01 --- /dev/null +++ b/AiPlatform/src/V1/CometSpec.php @@ -0,0 +1,149 @@ +google.cloud.aiplatform.v1.CometSpec + */ +class CometSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Which version to use for evaluation. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = null; + /** + * Optional. Source language in BCP-47 format. + * + * Generated from protobuf field string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source_language = ''; + /** + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * + * Generated from protobuf field string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $target_language = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $version + * Required. Which version to use for evaluation. + * @type string $source_language + * Optional. Source language in BCP-47 format. + * @type string $target_language + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Which version to use for evaluation. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getVersion() + { + return isset($this->version) ? $this->version : 0; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * Required. Which version to use for evaluation. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\CometSpec\CometVersion::class); + $this->version = $var; + + return $this; + } + + /** + * Optional. Source language in BCP-47 format. + * + * Generated from protobuf field string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSourceLanguage() + { + return $this->source_language; + } + + /** + * Optional. Source language in BCP-47 format. + * + * Generated from protobuf field string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSourceLanguage($var) + { + GPBUtil::checkString($var, True); + $this->source_language = $var; + + return $this; + } + + /** + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * + * Generated from protobuf field string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTargetLanguage() + { + return $this->target_language; + } + + /** + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * + * Generated from protobuf field string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTargetLanguage($var) + { + GPBUtil::checkString($var, True); + $this->target_language = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/CometSpec/CometVersion.php b/AiPlatform/src/V1/CometSpec/CometVersion.php new file mode 100644 index 000000000000..cedb2915e14c --- /dev/null +++ b/AiPlatform/src/V1/CometSpec/CometVersion.php @@ -0,0 +1,56 @@ +google.cloud.aiplatform.v1.CometSpec.CometVersion + */ +class CometVersion +{ + /** + * Comet version unspecified. + * + * Generated from protobuf enum COMET_VERSION_UNSPECIFIED = 0; + */ + const COMET_VERSION_UNSPECIFIED = 0; + /** + * Comet 22 for translation + source + reference + * (source-reference-combined). + * + * Generated from protobuf enum COMET_22_SRC_REF = 2; + */ + const COMET_22_SRC_REF = 2; + + private static $valueToName = [ + self::COMET_VERSION_UNSPECIFIED => 'COMET_VERSION_UNSPECIFIED', + self::COMET_22_SRC_REF => 'COMET_22_SRC_REF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/AiPlatform/src/V1/DeleteEntityTypeRequest.php b/AiPlatform/src/V1/DeleteEntityTypeRequest.php index 092391e1e127..0a208d31ee62 100644 --- a/AiPlatform/src/V1/DeleteEntityTypeRequest.php +++ b/AiPlatform/src/V1/DeleteEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [FeaturestoreService.DeleteEntityTypes][]. + * Request message for + * [FeaturestoreService.DeleteEntityType][google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityType]. * * Generated from protobuf message google.cloud.aiplatform.v1.DeleteEntityTypeRequest */ diff --git a/AiPlatform/src/V1/DeleteFeatureViewRequest.php b/AiPlatform/src/V1/DeleteFeatureViewRequest.php index 11a935f82552..28cb6cdc512c 100644 --- a/AiPlatform/src/V1/DeleteFeatureViewRequest.php +++ b/AiPlatform/src/V1/DeleteFeatureViewRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [FeatureOnlineStoreAdminService.DeleteFeatureViews][]. + * Request message for + * [FeatureOnlineStoreAdminService.DeleteFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureView]. * * Generated from protobuf message google.cloud.aiplatform.v1.DeleteFeatureViewRequest */ diff --git a/AiPlatform/src/V1/DeployedModel.php b/AiPlatform/src/V1/DeployedModel.php index d419f06649d2..2d30eb47c1bd 100644 --- a/AiPlatform/src/V1/DeployedModel.php +++ b/AiPlatform/src/V1/DeployedModel.php @@ -130,6 +130,12 @@ class DeployedModel extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $private_endpoints = null; + /** + * Configuration for faster model deployment. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FasterDeploymentConfig faster_deployment_config = 23; + */ + protected $faster_deployment_config = null; /** * System labels to apply to Model Garden deployments. * System labels are managed by Google for internal use only. @@ -226,6 +232,8 @@ class DeployedModel extends \Google\Protobuf\Internal\Message * requests directly to the deployed model services running on Cloud via * private services access. This field is populated if * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + * @type \Google\Cloud\AIPlatform\V1\FasterDeploymentConfig $faster_deployment_config + * Configuration for faster model deployment. * @type array|\Google\Protobuf\Internal\MapField $system_labels * System labels to apply to Model Garden deployments. * System labels are managed by Google for internal use only. @@ -751,6 +759,42 @@ public function setPrivateEndpoints($var) return $this; } + /** + * Configuration for faster model deployment. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FasterDeploymentConfig faster_deployment_config = 23; + * @return \Google\Cloud\AIPlatform\V1\FasterDeploymentConfig|null + */ + public function getFasterDeploymentConfig() + { + return $this->faster_deployment_config; + } + + public function hasFasterDeploymentConfig() + { + return isset($this->faster_deployment_config); + } + + public function clearFasterDeploymentConfig() + { + unset($this->faster_deployment_config); + } + + /** + * Configuration for faster model deployment. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FasterDeploymentConfig faster_deployment_config = 23; + * @param \Google\Cloud\AIPlatform\V1\FasterDeploymentConfig $var + * @return $this + */ + public function setFasterDeploymentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FasterDeploymentConfig::class); + $this->faster_deployment_config = $var; + + return $this; + } + /** * System labels to apply to Model Garden deployments. * System labels are managed by Google for internal use only. diff --git a/AiPlatform/src/V1/EvaluateInstancesRequest.php b/AiPlatform/src/V1/EvaluateInstancesRequest.php index 9e465cecb463..601cdf53a343 100644 --- a/AiPlatform/src/V1/EvaluateInstancesRequest.php +++ b/AiPlatform/src/V1/EvaluateInstancesRequest.php @@ -82,6 +82,11 @@ class EvaluateInstancesRequest extends \Google\Protobuf\Internal\Message * Input for tool parameter key match metric. * @type \Google\Cloud\AIPlatform\V1\ToolParameterKVMatchInput $tool_parameter_kv_match_input * Input for tool parameter key value match metric. + * @type \Google\Cloud\AIPlatform\V1\CometInput $comet_input + * Translation metrics. + * Input for Comet metric. + * @type \Google\Cloud\AIPlatform\V1\MetricxInput $metricx_input + * Input for Metricx metric. * @type string $location * Required. The resource name of the Location to evaluate the instances. * Format: `projects/{project}/locations/{location}` @@ -817,6 +822,70 @@ public function setToolParameterKvMatchInput($var) return $this; } + /** + * Translation metrics. + * Input for Comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometInput comet_input = 31; + * @return \Google\Cloud\AIPlatform\V1\CometInput|null + */ + public function getCometInput() + { + return $this->readOneof(31); + } + + public function hasCometInput() + { + return $this->hasOneof(31); + } + + /** + * Translation metrics. + * Input for Comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometInput comet_input = 31; + * @param \Google\Cloud\AIPlatform\V1\CometInput $var + * @return $this + */ + public function setCometInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CometInput::class); + $this->writeOneof(31, $var); + + return $this; + } + + /** + * Input for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxInput metricx_input = 32; + * @return \Google\Cloud\AIPlatform\V1\MetricxInput|null + */ + public function getMetricxInput() + { + return $this->readOneof(32); + } + + public function hasMetricxInput() + { + return $this->hasOneof(32); + } + + /** + * Input for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxInput metricx_input = 32; + * @param \Google\Cloud\AIPlatform\V1\MetricxInput $var + * @return $this + */ + public function setMetricxInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MetricxInput::class); + $this->writeOneof(32, $var); + + return $this; + } + /** * Required. The resource name of the Location to evaluate the instances. * Format: `projects/{project}/locations/{location}` diff --git a/AiPlatform/src/V1/EvaluateInstancesResponse.php b/AiPlatform/src/V1/EvaluateInstancesResponse.php index 7a033ce7ab7a..6bbefde04f8f 100644 --- a/AiPlatform/src/V1/EvaluateInstancesResponse.php +++ b/AiPlatform/src/V1/EvaluateInstancesResponse.php @@ -76,6 +76,11 @@ class EvaluateInstancesResponse extends \Google\Protobuf\Internal\Message * Results for tool parameter key match metric. * @type \Google\Cloud\AIPlatform\V1\ToolParameterKVMatchResults $tool_parameter_kv_match_results * Results for tool parameter key value match metric. + * @type \Google\Cloud\AIPlatform\V1\CometResult $comet_result + * Translation metrics. + * Result for Comet metric. + * @type \Google\Cloud\AIPlatform\V1\MetricxResult $metricx_result + * Result for Metricx metric. * } */ public function __construct($data = NULL) { @@ -810,6 +815,70 @@ public function setToolParameterKvMatchResults($var) return $this; } + /** + * Translation metrics. + * Result for Comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometResult comet_result = 29; + * @return \Google\Cloud\AIPlatform\V1\CometResult|null + */ + public function getCometResult() + { + return $this->readOneof(29); + } + + public function hasCometResult() + { + return $this->hasOneof(29); + } + + /** + * Translation metrics. + * Result for Comet metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CometResult comet_result = 29; + * @param \Google\Cloud\AIPlatform\V1\CometResult $var + * @return $this + */ + public function setCometResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CometResult::class); + $this->writeOneof(29, $var); + + return $this; + } + + /** + * Result for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxResult metricx_result = 30; + * @return \Google\Cloud\AIPlatform\V1\MetricxResult|null + */ + public function getMetricxResult() + { + return $this->readOneof(30); + } + + public function hasMetricxResult() + { + return $this->hasOneof(30); + } + + /** + * Result for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxResult metricx_result = 30; + * @param \Google\Cloud\AIPlatform\V1\MetricxResult $var + * @return $this + */ + public function setMetricxResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MetricxResult::class); + $this->writeOneof(30, $var); + + return $this; + } + /** * @return string */ diff --git a/AiPlatform/src/V1/EvaluatedAnnotation.php b/AiPlatform/src/V1/EvaluatedAnnotation.php index ecc61359bd46..8a01b8063f7e 100644 --- a/AiPlatform/src/V1/EvaluatedAnnotation.php +++ b/AiPlatform/src/V1/EvaluatedAnnotation.php @@ -30,7 +30,7 @@ class EvaluatedAnnotation extends \Google\Protobuf\Internal\Message * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. * For false positive, there is one and only one prediction, which doesn't * match any ground truth annotation of the corresponding - * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * [data_item_view_id][google.cloud.aiplatform.v1.EvaluatedAnnotation.evaluated_data_item_view_id]. * For false negative, there are zero or more predictions which are similar to * the only ground truth annotation in * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] @@ -112,7 +112,7 @@ class EvaluatedAnnotation extends \Google\Protobuf\Internal\Message * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. * For false positive, there is one and only one prediction, which doesn't * match any ground truth annotation of the corresponding - * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * [data_item_view_id][google.cloud.aiplatform.v1.EvaluatedAnnotation.evaluated_data_item_view_id]. * For false negative, there are zero or more predictions which are similar to * the only ground truth annotation in * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] @@ -194,7 +194,7 @@ public function setType($var) * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. * For false positive, there is one and only one prediction, which doesn't * match any ground truth annotation of the corresponding - * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * [data_item_view_id][google.cloud.aiplatform.v1.EvaluatedAnnotation.evaluated_data_item_view_id]. * For false negative, there are zero or more predictions which are similar to * the only ground truth annotation in * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] @@ -217,7 +217,7 @@ public function getPredictions() * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. * For false positive, there is one and only one prediction, which doesn't * match any ground truth annotation of the corresponding - * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * [data_item_view_id][google.cloud.aiplatform.v1.EvaluatedAnnotation.evaluated_data_item_view_id]. * For false negative, there are zero or more predictions which are similar to * the only ground truth annotation in * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] diff --git a/AiPlatform/src/V1/Explanation.php b/AiPlatform/src/V1/Explanation.php index cef78bb0e03b..a40e8ec9f67e 100644 --- a/AiPlatform/src/V1/Explanation.php +++ b/AiPlatform/src/V1/Explanation.php @@ -37,8 +37,8 @@ class Explanation extends \Google\Protobuf\Internal\Message * If users set * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], * the attributions are sorted by - * [instance_output_value][Attributions.instance_output_value] in descending - * order. If + * [instance_output_value][google.cloud.aiplatform.v1.Attribution.instance_output_value] + * in descending order. If * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] * is specified, the attributions are stored by * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] @@ -81,8 +81,8 @@ class Explanation extends \Google\Protobuf\Internal\Message * If users set * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], * the attributions are sorted by - * [instance_output_value][Attributions.instance_output_value] in descending - * order. If + * [instance_output_value][google.cloud.aiplatform.v1.Attribution.instance_output_value] + * in descending order. If * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] * is specified, the attributions are stored by * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] @@ -117,8 +117,8 @@ public function __construct($data = NULL) { * If users set * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], * the attributions are sorted by - * [instance_output_value][Attributions.instance_output_value] in descending - * order. If + * [instance_output_value][google.cloud.aiplatform.v1.Attribution.instance_output_value] + * in descending order. If * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] * is specified, the attributions are stored by * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] @@ -151,8 +151,8 @@ public function getAttributions() * If users set * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], * the attributions are sorted by - * [instance_output_value][Attributions.instance_output_value] in descending - * order. If + * [instance_output_value][google.cloud.aiplatform.v1.Attribution.instance_output_value] + * in descending order. If * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] * is specified, the attributions are stored by * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] diff --git a/AiPlatform/src/V1/ExportDataConfig.php b/AiPlatform/src/V1/ExportDataConfig.php index 77a162111eb5..8a695c41b060 100644 --- a/AiPlatform/src/V1/ExportDataConfig.php +++ b/AiPlatform/src/V1/ExportDataConfig.php @@ -27,7 +27,8 @@ class ExportDataConfig extends \Google\Protobuf\Internal\Message protected $annotations_filter = ''; /** * The ID of a SavedQuery (annotation set) under the Dataset specified by - * [dataset_id][] used for filtering Annotations for training. + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name] + * used for filtering Annotations for training. * Only used for custom training data export use cases. * Only applicable to Datasets that have SavedQueries. * Only Annotations that are associated with this SavedQuery are used in @@ -54,7 +55,8 @@ class ExportDataConfig extends \Google\Protobuf\Internal\Message * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the * chosen schema must be consistent with * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the - * Dataset specified by [dataset_id][]. + * Dataset specified by + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name]. * Only used for custom training data export use cases. * Only applicable to Datasets that have DataItems and Annotations. * Only Annotations that both match this schema and belong to DataItems not @@ -106,7 +108,8 @@ class ExportDataConfig extends \Google\Protobuf\Internal\Message * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. * @type string $saved_query_id * The ID of a SavedQuery (annotation set) under the Dataset specified by - * [dataset_id][] used for filtering Annotations for training. + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name] + * used for filtering Annotations for training. * Only used for custom training data export use cases. * Only applicable to Datasets that have SavedQueries. * Only Annotations that are associated with this SavedQuery are used in @@ -129,7 +132,8 @@ class ExportDataConfig extends \Google\Protobuf\Internal\Message * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the * chosen schema must be consistent with * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the - * Dataset specified by [dataset_id][]. + * Dataset specified by + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name]. * Only used for custom training data export use cases. * Only applicable to Datasets that have DataItems and Annotations. * Only Annotations that both match this schema and belong to DataItems not @@ -293,7 +297,8 @@ public function setAnnotationsFilter($var) /** * The ID of a SavedQuery (annotation set) under the Dataset specified by - * [dataset_id][] used for filtering Annotations for training. + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name] + * used for filtering Annotations for training. * Only used for custom training data export use cases. * Only applicable to Datasets that have SavedQueries. * Only Annotations that are associated with this SavedQuery are used in @@ -319,7 +324,8 @@ public function getSavedQueryId() /** * The ID of a SavedQuery (annotation set) under the Dataset specified by - * [dataset_id][] used for filtering Annotations for training. + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name] + * used for filtering Annotations for training. * Only used for custom training data export use cases. * Only applicable to Datasets that have SavedQueries. * Only Annotations that are associated with this SavedQuery are used in @@ -355,7 +361,8 @@ public function setSavedQueryId($var) * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the * chosen schema must be consistent with * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the - * Dataset specified by [dataset_id][]. + * Dataset specified by + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name]. * Only used for custom training data export use cases. * Only applicable to Datasets that have DataItems and Annotations. * Only Annotations that both match this schema and belong to DataItems not @@ -384,7 +391,8 @@ public function getAnnotationSchemaUri() * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the * chosen schema must be consistent with * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the - * Dataset specified by [dataset_id][]. + * Dataset specified by + * [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name]. * Only used for custom training data export use cases. * Only applicable to Datasets that have DataItems and Annotations. * Only Annotations that both match this schema and belong to DataItems not diff --git a/AiPlatform/src/V1/FasterDeploymentConfig.php b/AiPlatform/src/V1/FasterDeploymentConfig.php new file mode 100644 index 000000000000..684dce41deec --- /dev/null +++ b/AiPlatform/src/V1/FasterDeploymentConfig.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.FasterDeploymentConfig + */ +class FasterDeploymentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * If true, enable fast tryout feature for this deployed model. + * + * Generated from protobuf field bool fast_tryout_enabled = 2; + */ + protected $fast_tryout_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $fast_tryout_enabled + * If true, enable fast tryout feature for this deployed model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce(); + parent::__construct($data); + } + + /** + * If true, enable fast tryout feature for this deployed model. + * + * Generated from protobuf field bool fast_tryout_enabled = 2; + * @return bool + */ + public function getFastTryoutEnabled() + { + return $this->fast_tryout_enabled; + } + + /** + * If true, enable fast tryout feature for this deployed model. + * + * Generated from protobuf field bool fast_tryout_enabled = 2; + * @param bool $var + * @return $this + */ + public function setFastTryoutEnabled($var) + { + GPBUtil::checkBool($var); + $this->fast_tryout_enabled = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/GetDatasetRequest.php b/AiPlatform/src/V1/GetDatasetRequest.php index c566c1947c2d..d211be479a1c 100644 --- a/AiPlatform/src/V1/GetDatasetRequest.php +++ b/AiPlatform/src/V1/GetDatasetRequest.php @@ -11,6 +11,7 @@ /** * Request message for * [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. + * Next ID: 4 * * Generated from protobuf message google.cloud.aiplatform.v1.GetDatasetRequest */ diff --git a/AiPlatform/src/V1/GetDatasetVersionRequest.php b/AiPlatform/src/V1/GetDatasetVersionRequest.php index 98c340f55dc6..4aadea506f98 100644 --- a/AiPlatform/src/V1/GetDatasetVersionRequest.php +++ b/AiPlatform/src/V1/GetDatasetVersionRequest.php @@ -11,6 +11,7 @@ /** * Request message for * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion]. + * Next ID: 4 * * Generated from protobuf message google.cloud.aiplatform.v1.GetDatasetVersionRequest */ diff --git a/AiPlatform/src/V1/ListFeatureGroupsRequest.php b/AiPlatform/src/V1/ListFeatureGroupsRequest.php index 6c8f374c84b4..c49b5cbb7a0c 100644 --- a/AiPlatform/src/V1/ListFeatureGroupsRequest.php +++ b/AiPlatform/src/V1/ListFeatureGroupsRequest.php @@ -54,11 +54,11 @@ class ListFeatureGroupsRequest extends \Google\Protobuf\Internal\Message protected $page_size = 0; /** * A page token, received from a previous - * [FeatureGroupAdminService.ListFeatureGroups][] call. - * Provide this to retrieve the subsequent page. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to - * [FeatureGroupAdminService.ListFeatureGroups][] must - * match the call that provided the page token. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * must match the call that provided the page token. * * Generated from protobuf field string page_token = 4; */ @@ -122,11 +122,11 @@ public static function build(string $parent): self * coerced to 100. * @type string $page_token * A page token, received from a previous - * [FeatureGroupAdminService.ListFeatureGroups][] call. - * Provide this to retrieve the subsequent page. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to - * [FeatureGroupAdminService.ListFeatureGroups][] must - * match the call that provided the page token. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * must match the call that provided the page token. * @type string $order_by * A comma-separated list of fields to order by, sorted in ascending order. * Use "desc" after a field name for descending. @@ -256,11 +256,11 @@ public function setPageSize($var) /** * A page token, received from a previous - * [FeatureGroupAdminService.ListFeatureGroups][] call. - * Provide this to retrieve the subsequent page. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to - * [FeatureGroupAdminService.ListFeatureGroups][] must - * match the call that provided the page token. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * must match the call that provided the page token. * * Generated from protobuf field string page_token = 4; * @return string @@ -272,11 +272,11 @@ public function getPageToken() /** * A page token, received from a previous - * [FeatureGroupAdminService.ListFeatureGroups][] call. - * Provide this to retrieve the subsequent page. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to - * [FeatureGroupAdminService.ListFeatureGroups][] must - * match the call that provided the page token. + * [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + * must match the call that provided the page token. * * Generated from protobuf field string page_token = 4; * @param string $var diff --git a/AiPlatform/src/V1/ListNotebookExecutionJobsRequest.php b/AiPlatform/src/V1/ListNotebookExecutionJobsRequest.php index 37d0f27ffb0d..7f8b4ed44ac2 100644 --- a/AiPlatform/src/V1/ListNotebookExecutionJobsRequest.php +++ b/AiPlatform/src/V1/ListNotebookExecutionJobsRequest.php @@ -47,7 +47,8 @@ class ListNotebookExecutionJobsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The standard list page token. * Typically obtained via - * [ListNotebookExecutionJobs.next_page_token][] of the previous + * [ListNotebookExecutionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token] + * of the previous * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs] * call. * @@ -114,7 +115,8 @@ public static function build(string $parent): self * @type string $page_token * Optional. The standard list page token. * Typically obtained via - * [ListNotebookExecutionJobs.next_page_token][] of the previous + * [ListNotebookExecutionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token] + * of the previous * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs] * call. * @type string $order_by @@ -236,7 +238,8 @@ public function setPageSize($var) /** * Optional. The standard list page token. * Typically obtained via - * [ListNotebookExecutionJobs.next_page_token][] of the previous + * [ListNotebookExecutionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token] + * of the previous * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs] * call. * @@ -251,7 +254,8 @@ public function getPageToken() /** * Optional. The standard list page token. * Typically obtained via - * [ListNotebookExecutionJobs.next_page_token][] of the previous + * [ListNotebookExecutionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token] + * of the previous * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs] * call. * diff --git a/AiPlatform/src/V1/ListNotebookExecutionJobsResponse.php b/AiPlatform/src/V1/ListNotebookExecutionJobsResponse.php index a10e712c3175..151c1b42cc22 100644 --- a/AiPlatform/src/V1/ListNotebookExecutionJobsResponse.php +++ b/AiPlatform/src/V1/ListNotebookExecutionJobsResponse.php @@ -23,8 +23,9 @@ class ListNotebookExecutionJobsResponse extends \Google\Protobuf\Internal\Messag private $notebook_execution_jobs; /** * A token to retrieve next page of results. - * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that - * page. + * Pass to + * [ListNotebookExecutionJobsRequest.page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.page_token] + * to obtain that page. * * Generated from protobuf field string next_page_token = 2; */ @@ -40,8 +41,9 @@ class ListNotebookExecutionJobsResponse extends \Google\Protobuf\Internal\Messag * List of NotebookExecutionJobs in the requested page. * @type string $next_page_token * A token to retrieve next page of results. - * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that - * page. + * Pass to + * [ListNotebookExecutionJobsRequest.page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.page_token] + * to obtain that page. * } */ public function __construct($data = NULL) { @@ -77,8 +79,9 @@ public function setNotebookExecutionJobs($var) /** * A token to retrieve next page of results. - * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that - * page. + * Pass to + * [ListNotebookExecutionJobsRequest.page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.page_token] + * to obtain that page. * * Generated from protobuf field string next_page_token = 2; * @return string @@ -90,8 +93,9 @@ public function getNextPageToken() /** * A token to retrieve next page of results. - * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that - * page. + * Pass to + * [ListNotebookExecutionJobsRequest.page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.page_token] + * to obtain that page. * * Generated from protobuf field string next_page_token = 2; * @param string $var diff --git a/AiPlatform/src/V1/ListPersistentResourcesRequest.php b/AiPlatform/src/V1/ListPersistentResourcesRequest.php index 81721df1e016..61386c8916b3 100644 --- a/AiPlatform/src/V1/ListPersistentResourcesRequest.php +++ b/AiPlatform/src/V1/ListPersistentResourcesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [PersistentResourceService.ListPersistentResource][]. + * Request message for + * [PersistentResourceService.ListPersistentResources][google.cloud.aiplatform.v1.PersistentResourceService.ListPersistentResources]. * * Generated from protobuf message google.cloud.aiplatform.v1.ListPersistentResourcesRequest */ @@ -31,8 +32,8 @@ class ListPersistentResourcesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The standard list page token. * Typically obtained via - * [ListPersistentResourceResponse.next_page_token][] of the previous - * [PersistentResourceService.ListPersistentResource][] call. + * [ListPersistentResourcesResponse.next_page_token][google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token] + * of the previous [PersistentResourceService.ListPersistentResource][] call. * * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -67,8 +68,8 @@ public static function build(string $parent): self * @type string $page_token * Optional. The standard list page token. * Typically obtained via - * [ListPersistentResourceResponse.next_page_token][] of the previous - * [PersistentResourceService.ListPersistentResource][] call. + * [ListPersistentResourcesResponse.next_page_token][google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token] + * of the previous [PersistentResourceService.ListPersistentResource][] call. * } */ public function __construct($data = NULL) { @@ -133,8 +134,8 @@ public function setPageSize($var) /** * Optional. The standard list page token. * Typically obtained via - * [ListPersistentResourceResponse.next_page_token][] of the previous - * [PersistentResourceService.ListPersistentResource][] call. + * [ListPersistentResourcesResponse.next_page_token][google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token] + * of the previous [PersistentResourceService.ListPersistentResource][] call. * * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -147,8 +148,8 @@ public function getPageToken() /** * Optional. The standard list page token. * Typically obtained via - * [ListPersistentResourceResponse.next_page_token][] of the previous - * [PersistentResourceService.ListPersistentResource][] call. + * [ListPersistentResourcesResponse.next_page_token][google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token] + * of the previous [PersistentResourceService.ListPersistentResource][] call. * * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AiPlatform/src/V1/ListTuningJobsRequest.php b/AiPlatform/src/V1/ListTuningJobsRequest.php index b7be67692e82..f6e085cb4f08 100644 --- a/AiPlatform/src/V1/ListTuningJobsRequest.php +++ b/AiPlatform/src/V1/ListTuningJobsRequest.php @@ -37,8 +37,9 @@ class ListTuningJobsRequest extends \Google\Protobuf\Internal\Message protected $page_size = 0; /** * Optional. The standard list page token. - * Typically obtained via [ListTuningJob.next_page_token][] of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * [ListTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token] + * of the previous GenAiTuningService.ListTuningJob][] call. * * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -74,8 +75,9 @@ public static function build(string $parent): self * Optional. The standard list page size. * @type string $page_token * Optional. The standard list page token. - * Typically obtained via [ListTuningJob.next_page_token][] of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * [ListTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token] + * of the previous GenAiTuningService.ListTuningJob][] call. * } */ public function __construct($data = NULL) { @@ -165,8 +167,9 @@ public function setPageSize($var) /** * Optional. The standard list page token. - * Typically obtained via [ListTuningJob.next_page_token][] of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * [ListTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token] + * of the previous GenAiTuningService.ListTuningJob][] call. * * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -178,8 +181,9 @@ public function getPageToken() /** * Optional. The standard list page token. - * Typically obtained via [ListTuningJob.next_page_token][] of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * [ListTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token] + * of the previous GenAiTuningService.ListTuningJob][] call. * * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AiPlatform/src/V1/MetricxInput.php b/AiPlatform/src/V1/MetricxInput.php new file mode 100644 index 000000000000..69875a3e0b4e --- /dev/null +++ b/AiPlatform/src/V1/MetricxInput.php @@ -0,0 +1,121 @@ +google.cloud.aiplatform.v1.MetricxInput + */ +class MetricxInput extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Spec for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metric_spec = null; + /** + * Required. Metricx instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\MetricxSpec $metric_spec + * Required. Spec for Metricx metric. + * @type \Google\Cloud\AIPlatform\V1\MetricxInstance $instance + * Required. Metricx instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Spec for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\MetricxSpec|null + */ + public function getMetricSpec() + { + return $this->metric_spec; + } + + public function hasMetricSpec() + { + return isset($this->metric_spec); + } + + public function clearMetricSpec() + { + unset($this->metric_spec); + } + + /** + * Required. Spec for Metricx metric. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\MetricxSpec $var + * @return $this + */ + public function setMetricSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MetricxSpec::class); + $this->metric_spec = $var; + + return $this; + } + + /** + * Required. Metricx instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\MetricxInstance|null + */ + public function getInstance() + { + return $this->instance; + } + + public function hasInstance() + { + return isset($this->instance); + } + + public function clearInstance() + { + unset($this->instance); + } + + /** + * Required. Metricx instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\MetricxInstance $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MetricxInstance::class); + $this->instance = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/MetricxInstance.php b/AiPlatform/src/V1/MetricxInstance.php new file mode 100644 index 000000000000..6894950a0722 --- /dev/null +++ b/AiPlatform/src/V1/MetricxInstance.php @@ -0,0 +1,166 @@ +google.cloud.aiplatform.v1.MetricxInstance + */ +class MetricxInstance extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Output of the evaluated model. + * + * Generated from protobuf field optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $prediction = null; + /** + * Optional. Ground truth used to compare against the prediction. + * + * Generated from protobuf field optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $reference = null; + /** + * Optional. Source text in original language. + * + * Generated from protobuf field optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $prediction + * Required. Output of the evaluated model. + * @type string $reference + * Optional. Ground truth used to compare against the prediction. + * @type string $source + * Optional. Source text in original language. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Output of the evaluated model. + * + * Generated from protobuf field optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPrediction() + { + return isset($this->prediction) ? $this->prediction : ''; + } + + public function hasPrediction() + { + return isset($this->prediction); + } + + public function clearPrediction() + { + unset($this->prediction); + } + + /** + * Required. Output of the evaluated model. + * + * Generated from protobuf field optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPrediction($var) + { + GPBUtil::checkString($var, True); + $this->prediction = $var; + + return $this; + } + + /** + * Optional. Ground truth used to compare against the prediction. + * + * Generated from protobuf field optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getReference() + { + return isset($this->reference) ? $this->reference : ''; + } + + public function hasReference() + { + return isset($this->reference); + } + + public function clearReference() + { + unset($this->reference); + } + + /** + * Optional. Ground truth used to compare against the prediction. + * + * Generated from protobuf field optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setReference($var) + { + GPBUtil::checkString($var, True); + $this->reference = $var; + + return $this; + } + + /** + * Optional. Source text in original language. + * + * Generated from protobuf field optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSource() + { + return isset($this->source) ? $this->source : ''; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * Optional. Source text in original language. + * + * Generated from protobuf field optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/MetricxResult.php b/AiPlatform/src/V1/MetricxResult.php new file mode 100644 index 000000000000..b7c45b71e2ec --- /dev/null +++ b/AiPlatform/src/V1/MetricxResult.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.MetricxResult + */ +class MetricxResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. MetricX score. Range depends on version. + * + * Generated from protobuf field optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $score = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $score + * Output only. MetricX score. Range depends on version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. MetricX score. Range depends on version. + * + * Generated from protobuf field optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. MetricX score. Range depends on version. + * + * Generated from protobuf field optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/MetricxSpec.php b/AiPlatform/src/V1/MetricxSpec.php new file mode 100644 index 000000000000..4c7e182370dc --- /dev/null +++ b/AiPlatform/src/V1/MetricxSpec.php @@ -0,0 +1,149 @@ +google.cloud.aiplatform.v1.MetricxSpec + */ +class MetricxSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Which version to use for evaluation. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = null; + /** + * Optional. Source language in BCP-47 format. + * + * Generated from protobuf field string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source_language = ''; + /** + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * + * Generated from protobuf field string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $target_language = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $version + * Required. Which version to use for evaluation. + * @type string $source_language + * Optional. Source language in BCP-47 format. + * @type string $target_language + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Which version to use for evaluation. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getVersion() + { + return isset($this->version) ? $this->version : 0; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * Required. Which version to use for evaluation. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\MetricxSpec\MetricxVersion::class); + $this->version = $var; + + return $this; + } + + /** + * Optional. Source language in BCP-47 format. + * + * Generated from protobuf field string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSourceLanguage() + { + return $this->source_language; + } + + /** + * Optional. Source language in BCP-47 format. + * + * Generated from protobuf field string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSourceLanguage($var) + { + GPBUtil::checkString($var, True); + $this->source_language = $var; + + return $this; + } + + /** + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * + * Generated from protobuf field string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTargetLanguage() + { + return $this->target_language; + } + + /** + * Optional. Target language in BCP-47 format. Covers both prediction and + * reference. + * + * Generated from protobuf field string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTargetLanguage($var) + { + GPBUtil::checkString($var, True); + $this->target_language = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/MetricxSpec/MetricxVersion.php b/AiPlatform/src/V1/MetricxSpec/MetricxVersion.php new file mode 100644 index 000000000000..f36e43452f1b --- /dev/null +++ b/AiPlatform/src/V1/MetricxSpec/MetricxVersion.php @@ -0,0 +1,70 @@ +google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion + */ +class MetricxVersion +{ + /** + * MetricX version unspecified. + * + * Generated from protobuf enum METRICX_VERSION_UNSPECIFIED = 0; + */ + const METRICX_VERSION_UNSPECIFIED = 0; + /** + * MetricX 2024 (2.6) for translation + reference (reference-based). + * + * Generated from protobuf enum METRICX_24_REF = 1; + */ + const METRICX_24_REF = 1; + /** + * MetricX 2024 (2.6) for translation + source (QE). + * + * Generated from protobuf enum METRICX_24_SRC = 2; + */ + const METRICX_24_SRC = 2; + /** + * MetricX 2024 (2.6) for translation + source + reference + * (source-reference-combined). + * + * Generated from protobuf enum METRICX_24_SRC_REF = 3; + */ + const METRICX_24_SRC_REF = 3; + + private static $valueToName = [ + self::METRICX_VERSION_UNSPECIFIED => 'METRICX_VERSION_UNSPECIFIED', + self::METRICX_24_REF => 'METRICX_24_REF', + self::METRICX_24_SRC => 'METRICX_24_SRC', + self::METRICX_24_SRC_REF => 'METRICX_24_SRC_REF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/AiPlatform/src/V1/Model.php b/AiPlatform/src/V1/Model.php index 07da2cd256ed..c6fd9cff5a63 100644 --- a/AiPlatform/src/V1/Model.php +++ b/AiPlatform/src/V1/Model.php @@ -321,7 +321,7 @@ class Model extends \Google\Protobuf\Internal\Message /** * Stats of data used for training or evaluating the Model. * Only populated when the Model is trained by a TrainingPipeline with - * [data_input_config][TrainingPipeline.data_input_config]. + * [data_input_config][google.cloud.aiplatform.v1.TrainingPipeline.input_data_config]. * * Generated from protobuf field .google.cloud.aiplatform.v1.Model.DataStats data_stats = 21; */ @@ -589,7 +589,7 @@ class Model extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\AIPlatform\V1\Model\DataStats $data_stats * Stats of data used for training or evaluating the Model. * Only populated when the Model is trained by a TrainingPipeline with - * [data_input_config][TrainingPipeline.data_input_config]. + * [data_input_config][google.cloud.aiplatform.v1.TrainingPipeline.input_data_config]. * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec * Customer-managed encryption key spec for a Model. If set, this * Model and all sub-resources of this Model will be secured by this key. @@ -1658,7 +1658,7 @@ public function setLabels($var) /** * Stats of data used for training or evaluating the Model. * Only populated when the Model is trained by a TrainingPipeline with - * [data_input_config][TrainingPipeline.data_input_config]. + * [data_input_config][google.cloud.aiplatform.v1.TrainingPipeline.input_data_config]. * * Generated from protobuf field .google.cloud.aiplatform.v1.Model.DataStats data_stats = 21; * @return \Google\Cloud\AIPlatform\V1\Model\DataStats|null @@ -1681,7 +1681,7 @@ public function clearDataStats() /** * Stats of data used for training or evaluating the Model. * Only populated when the Model is trained by a TrainingPipeline with - * [data_input_config][TrainingPipeline.data_input_config]. + * [data_input_config][google.cloud.aiplatform.v1.TrainingPipeline.input_data_config]. * * Generated from protobuf field .google.cloud.aiplatform.v1.Model.DataStats data_stats = 21; * @param \Google\Cloud\AIPlatform\V1\Model\DataStats $var diff --git a/AiPlatform/src/V1/ModelMonitoringAlertConfig.php b/AiPlatform/src/V1/ModelMonitoringAlertConfig.php index e4f7302e6c6e..480bf50b0a32 100644 --- a/AiPlatform/src/V1/ModelMonitoringAlertConfig.php +++ b/AiPlatform/src/V1/ModelMonitoringAlertConfig.php @@ -18,9 +18,9 @@ class ModelMonitoringAlertConfig extends \Google\Protobuf\Internal\Message /** * Dump the anomalies to Cloud Logging. The anomalies will be put to json * payload encoded from proto - * [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][]. - * This can be further sinked to Pub/Sub or any other services supported - * by Cloud Logging. + * [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies]. + * This can be further synced to Pub/Sub or any other services supported by + * Cloud Logging. * * Generated from protobuf field bool enable_logging = 2; */ @@ -46,9 +46,9 @@ class ModelMonitoringAlertConfig extends \Google\Protobuf\Internal\Message * @type bool $enable_logging * Dump the anomalies to Cloud Logging. The anomalies will be put to json * payload encoded from proto - * [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][]. - * This can be further sinked to Pub/Sub or any other services supported - * by Cloud Logging. + * [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies]. + * This can be further synced to Pub/Sub or any other services supported by + * Cloud Logging. * @type array|\Google\Protobuf\Internal\RepeatedField $notification_channels * Resource names of the NotificationChannels to send alert. * Must be of the format @@ -94,9 +94,9 @@ public function setEmailAlertConfig($var) /** * Dump the anomalies to Cloud Logging. The anomalies will be put to json * payload encoded from proto - * [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][]. - * This can be further sinked to Pub/Sub or any other services supported - * by Cloud Logging. + * [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies]. + * This can be further synced to Pub/Sub or any other services supported by + * Cloud Logging. * * Generated from protobuf field bool enable_logging = 2; * @return bool @@ -109,9 +109,9 @@ public function getEnableLogging() /** * Dump the anomalies to Cloud Logging. The anomalies will be put to json * payload encoded from proto - * [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][]. - * This can be further sinked to Pub/Sub or any other services supported - * by Cloud Logging. + * [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies]. + * This can be further synced to Pub/Sub or any other services supported by + * Cloud Logging. * * Generated from protobuf field bool enable_logging = 2; * @param bool $var diff --git a/AiPlatform/src/V1/MutateDeployedIndexRequest.php b/AiPlatform/src/V1/MutateDeployedIndexRequest.php index 36d175f20a78..183aa6d88d6a 100644 --- a/AiPlatform/src/V1/MutateDeployedIndexRequest.php +++ b/AiPlatform/src/V1/MutateDeployedIndexRequest.php @@ -26,8 +26,10 @@ class MutateDeployedIndexRequest extends \Google\Protobuf\Internal\Message protected $index_endpoint = ''; /** * Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are [DeployedIndex][automatic_resources] - * and [DeployedIndex][dedicated_resources] + * Currently, the updatable fields are + * [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources] + * and + * [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources] * * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -39,8 +41,10 @@ class MutateDeployedIndexRequest extends \Google\Protobuf\Internal\Message * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * Please see {@see IndexEndpointServiceClient::indexEndpointName()} for help formatting this field. * @param \Google\Cloud\AIPlatform\V1\DeployedIndex $deployedIndex Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are [DeployedIndex][automatic_resources] - * and [DeployedIndex][dedicated_resources] + * Currently, the updatable fields are + * [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources] + * and + * [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources] * * @return \Google\Cloud\AIPlatform\V1\MutateDeployedIndexRequest * @@ -65,8 +69,10 @@ public static function build(string $indexEndpoint, \Google\Cloud\AIPlatform\V1\ * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @type \Google\Cloud\AIPlatform\V1\DeployedIndex $deployed_index * Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are [DeployedIndex][automatic_resources] - * and [DeployedIndex][dedicated_resources] + * Currently, the updatable fields are + * [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources] + * and + * [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources] * } */ public function __construct($data = NULL) { @@ -106,8 +112,10 @@ public function setIndexEndpoint($var) /** * Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are [DeployedIndex][automatic_resources] - * and [DeployedIndex][dedicated_resources] + * Currently, the updatable fields are + * [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources] + * and + * [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources] * * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\AIPlatform\V1\DeployedIndex|null @@ -129,8 +137,10 @@ public function clearDeployedIndex() /** * Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are [DeployedIndex][automatic_resources] - * and [DeployedIndex][dedicated_resources] + * Currently, the updatable fields are + * [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources] + * and + * [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources] * * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\AIPlatform\V1\DeployedIndex $var diff --git a/AiPlatform/src/V1/Scheduling.php b/AiPlatform/src/V1/Scheduling.php index 53213bacbcdb..3311c6284c6f 100644 --- a/AiPlatform/src/V1/Scheduling.php +++ b/AiPlatform/src/V1/Scheduling.php @@ -16,13 +16,13 @@ class Scheduling extends \Google\Protobuf\Internal\Message { /** - * The maximum job running time. The default is 7 days. + * Optional. The maximum job running time. The default is 7 days. * * Generated from protobuf field .google.protobuf.Duration timeout = 1; */ protected $timeout = null; /** - * Restarts the entire CustomJob if a worker gets restarted. + * Optional. Restarts the entire CustomJob if a worker gets restarted. * This feature can be used by distributed training jobs that are not * resilient to workers leaving and joining a job. * @@ -60,9 +60,9 @@ class Scheduling extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Duration $timeout - * The maximum job running time. The default is 7 days. + * Optional. The maximum job running time. The default is 7 days. * @type bool $restart_job_on_worker_restart - * Restarts the entire CustomJob if a worker gets restarted. + * Optional. Restarts the entire CustomJob if a worker gets restarted. * This feature can be used by distributed training jobs that are not * resilient to workers leaving and joining a job. * @type int $strategy @@ -84,7 +84,7 @@ public function __construct($data = NULL) { } /** - * The maximum job running time. The default is 7 days. + * Optional. The maximum job running time. The default is 7 days. * * Generated from protobuf field .google.protobuf.Duration timeout = 1; * @return \Google\Protobuf\Duration|null @@ -105,7 +105,7 @@ public function clearTimeout() } /** - * The maximum job running time. The default is 7 days. + * Optional. The maximum job running time. The default is 7 days. * * Generated from protobuf field .google.protobuf.Duration timeout = 1; * @param \Google\Protobuf\Duration $var @@ -120,7 +120,7 @@ public function setTimeout($var) } /** - * Restarts the entire CustomJob if a worker gets restarted. + * Optional. Restarts the entire CustomJob if a worker gets restarted. * This feature can be used by distributed training jobs that are not * resilient to workers leaving and joining a job. * @@ -133,7 +133,7 @@ public function getRestartJobOnWorkerRestart() } /** - * Restarts the entire CustomJob if a worker gets restarted. + * Optional. Restarts the entire CustomJob if a worker gets restarted. * This feature can be used by distributed training jobs that are not * resilient to workers leaving and joining a job. * diff --git a/AiPlatform/src/V1/Schema.php b/AiPlatform/src/V1/Schema.php index 9a241c96c8bd..db467251078f 100644 --- a/AiPlatform/src/V1/Schema.php +++ b/AiPlatform/src/V1/Schema.php @@ -81,9 +81,9 @@ class Schema extends \Google\Protobuf\Internal\Message * Optional. Possible values of the element of primitive type with enum * format. Examples: * 1. We can define direction as : - * ```{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}``` + * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} * 2. We can define apartment number as : - * ```{type:INTEGER, format:enum, enum:["101", "201", "301"]}``` + * {type:INTEGER, format:enum, enum:["101", "201", "301"]} * * Generated from protobuf field repeated string enum = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -202,9 +202,9 @@ class Schema extends \Google\Protobuf\Internal\Message * Optional. Possible values of the element of primitive type with enum * format. Examples: * 1. We can define direction as : - * ```{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}``` + * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} * 2. We can define apartment number as : - * ```{type:INTEGER, format:enum, enum:["101", "201", "301"]}``` + * {type:INTEGER, format:enum, enum:["101", "201", "301"]} * @type array|\Google\Protobuf\Internal\MapField $properties * Optional. SCHEMA FIELDS FOR TYPE OBJECT * Properties of Type.OBJECT. @@ -512,9 +512,9 @@ public function setMaxItems($var) * Optional. Possible values of the element of primitive type with enum * format. Examples: * 1. We can define direction as : - * ```{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}``` + * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} * 2. We can define apartment number as : - * ```{type:INTEGER, format:enum, enum:["101", "201", "301"]}``` + * {type:INTEGER, format:enum, enum:["101", "201", "301"]} * * Generated from protobuf field repeated string enum = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField @@ -528,9 +528,9 @@ public function getEnum() * Optional. Possible values of the element of primitive type with enum * format. Examples: * 1. We can define direction as : - * ```{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}``` + * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} * 2. We can define apartment number as : - * ```{type:INTEGER, format:enum, enum:["101", "201", "301"]}``` + * {type:INTEGER, format:enum, enum:["101", "201", "301"]} * * Generated from protobuf field repeated string enum = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param array|\Google\Protobuf\Internal\RepeatedField $var diff --git a/AiPlatform/src/V1/StreamingReadFeatureValuesRequest.php b/AiPlatform/src/V1/StreamingReadFeatureValuesRequest.php index 4bb996f890bd..7be088b9f654 100644 --- a/AiPlatform/src/V1/StreamingReadFeatureValuesRequest.php +++ b/AiPlatform/src/V1/StreamingReadFeatureValuesRequest.php @@ -10,7 +10,7 @@ /** * Request message for - * [FeaturestoreOnlineServingService.StreamingFeatureValuesRead][]. + * [FeaturestoreOnlineServingService.StreamingReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues]. * * Generated from protobuf message google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest */ diff --git a/AiPlatform/src/V1/Tensor.php b/AiPlatform/src/V1/Tensor.php index bf65f0799335..45a55d38c6eb 100644 --- a/AiPlatform/src/V1/Tensor.php +++ b/AiPlatform/src/V1/Tensor.php @@ -32,59 +32,59 @@ class Tensor extends \Google\Protobuf\Internal\Message * all languages. Only the representation corresponding to "dtype" can * be set. The values hold the flattened representation of the tensor in * row major order. - * [BOOL][google.aiplatform.master.Tensor.DataType.BOOL] + * [BOOL][google.cloud.aiplatform.v1.Tensor.DataType.BOOL] * * Generated from protobuf field repeated bool bool_val = 3; */ private $bool_val; /** - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * * Generated from protobuf field repeated string string_val = 14; */ private $string_val; /** - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * * Generated from protobuf field repeated bytes bytes_val = 15; */ private $bytes_val; /** - * [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT] + * [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT] * * Generated from protobuf field repeated float float_val = 5; */ private $float_val; /** - * [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE] + * [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE] * * Generated from protobuf field repeated double double_val = 6; */ private $double_val; /** - * [INT_8][google.aiplatform.master.Tensor.DataType.INT8] - * [INT_16][google.aiplatform.master.Tensor.DataType.INT16] - * [INT_32][google.aiplatform.master.Tensor.DataType.INT32] + * [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] + * [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] + * [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32] * * Generated from protobuf field repeated int32 int_val = 7; */ private $int_val; /** - * [INT64][google.aiplatform.master.Tensor.DataType.INT64] + * [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64] * * Generated from protobuf field repeated int64 int64_val = 8; */ private $int64_val; /** - * [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] - * [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] - * [UINT32][google.aiplatform.master.Tensor.DataType.UINT32] + * [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] + * [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] + * [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32] * * Generated from protobuf field repeated uint32 uint_val = 9; */ private $uint_val; /** - * [UINT64][google.aiplatform.master.Tensor.DataType.UINT64] + * [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64] * * Generated from protobuf field repeated uint64 uint64_val = 10; */ @@ -123,27 +123,27 @@ class Tensor extends \Google\Protobuf\Internal\Message * all languages. Only the representation corresponding to "dtype" can * be set. The values hold the flattened representation of the tensor in * row major order. - * [BOOL][google.aiplatform.master.Tensor.DataType.BOOL] + * [BOOL][google.cloud.aiplatform.v1.Tensor.DataType.BOOL] * @type array|\Google\Protobuf\Internal\RepeatedField $string_val - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * @type array|\Google\Protobuf\Internal\RepeatedField $bytes_val - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * @type array|\Google\Protobuf\Internal\RepeatedField $float_val - * [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT] + * [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT] * @type array|\Google\Protobuf\Internal\RepeatedField $double_val - * [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE] + * [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE] * @type array|\Google\Protobuf\Internal\RepeatedField $int_val - * [INT_8][google.aiplatform.master.Tensor.DataType.INT8] - * [INT_16][google.aiplatform.master.Tensor.DataType.INT16] - * [INT_32][google.aiplatform.master.Tensor.DataType.INT32] + * [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] + * [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] + * [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32] * @type array|array|\Google\Protobuf\Internal\RepeatedField $int64_val - * [INT64][google.aiplatform.master.Tensor.DataType.INT64] + * [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64] * @type array|\Google\Protobuf\Internal\RepeatedField $uint_val - * [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] - * [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] - * [UINT32][google.aiplatform.master.Tensor.DataType.UINT32] + * [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] + * [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] + * [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32] * @type array|array|\Google\Protobuf\Internal\RepeatedField $uint64_val - * [UINT64][google.aiplatform.master.Tensor.DataType.UINT64] + * [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64] * @type array<\Google\Cloud\AIPlatform\V1\Tensor>|\Google\Protobuf\Internal\RepeatedField $list_val * A list of tensor values. * @type array|\Google\Protobuf\Internal\MapField $struct_val @@ -214,7 +214,7 @@ public function setShape($var) * all languages. Only the representation corresponding to "dtype" can * be set. The values hold the flattened representation of the tensor in * row major order. - * [BOOL][google.aiplatform.master.Tensor.DataType.BOOL] + * [BOOL][google.cloud.aiplatform.v1.Tensor.DataType.BOOL] * * Generated from protobuf field repeated bool bool_val = 3; * @return \Google\Protobuf\Internal\RepeatedField @@ -229,7 +229,7 @@ public function getBoolVal() * all languages. Only the representation corresponding to "dtype" can * be set. The values hold the flattened representation of the tensor in * row major order. - * [BOOL][google.aiplatform.master.Tensor.DataType.BOOL] + * [BOOL][google.cloud.aiplatform.v1.Tensor.DataType.BOOL] * * Generated from protobuf field repeated bool bool_val = 3; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -244,7 +244,7 @@ public function setBoolVal($var) } /** - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * * Generated from protobuf field repeated string string_val = 14; * @return \Google\Protobuf\Internal\RepeatedField @@ -255,7 +255,7 @@ public function getStringVal() } /** - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * * Generated from protobuf field repeated string string_val = 14; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -270,7 +270,7 @@ public function setStringVal($var) } /** - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * * Generated from protobuf field repeated bytes bytes_val = 15; * @return \Google\Protobuf\Internal\RepeatedField @@ -281,7 +281,7 @@ public function getBytesVal() } /** - * [STRING][google.aiplatform.master.Tensor.DataType.STRING] + * [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] * * Generated from protobuf field repeated bytes bytes_val = 15; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -296,7 +296,7 @@ public function setBytesVal($var) } /** - * [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT] + * [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT] * * Generated from protobuf field repeated float float_val = 5; * @return \Google\Protobuf\Internal\RepeatedField @@ -307,7 +307,7 @@ public function getFloatVal() } /** - * [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT] + * [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT] * * Generated from protobuf field repeated float float_val = 5; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -322,7 +322,7 @@ public function setFloatVal($var) } /** - * [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE] + * [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE] * * Generated from protobuf field repeated double double_val = 6; * @return \Google\Protobuf\Internal\RepeatedField @@ -333,7 +333,7 @@ public function getDoubleVal() } /** - * [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE] + * [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE] * * Generated from protobuf field repeated double double_val = 6; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -348,9 +348,9 @@ public function setDoubleVal($var) } /** - * [INT_8][google.aiplatform.master.Tensor.DataType.INT8] - * [INT_16][google.aiplatform.master.Tensor.DataType.INT16] - * [INT_32][google.aiplatform.master.Tensor.DataType.INT32] + * [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] + * [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] + * [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32] * * Generated from protobuf field repeated int32 int_val = 7; * @return \Google\Protobuf\Internal\RepeatedField @@ -361,9 +361,9 @@ public function getIntVal() } /** - * [INT_8][google.aiplatform.master.Tensor.DataType.INT8] - * [INT_16][google.aiplatform.master.Tensor.DataType.INT16] - * [INT_32][google.aiplatform.master.Tensor.DataType.INT32] + * [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] + * [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] + * [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32] * * Generated from protobuf field repeated int32 int_val = 7; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -378,7 +378,7 @@ public function setIntVal($var) } /** - * [INT64][google.aiplatform.master.Tensor.DataType.INT64] + * [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64] * * Generated from protobuf field repeated int64 int64_val = 8; * @return \Google\Protobuf\Internal\RepeatedField @@ -389,7 +389,7 @@ public function getInt64Val() } /** - * [INT64][google.aiplatform.master.Tensor.DataType.INT64] + * [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64] * * Generated from protobuf field repeated int64 int64_val = 8; * @param array|array|\Google\Protobuf\Internal\RepeatedField $var @@ -404,9 +404,9 @@ public function setInt64Val($var) } /** - * [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] - * [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] - * [UINT32][google.aiplatform.master.Tensor.DataType.UINT32] + * [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] + * [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] + * [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32] * * Generated from protobuf field repeated uint32 uint_val = 9; * @return \Google\Protobuf\Internal\RepeatedField @@ -417,9 +417,9 @@ public function getUintVal() } /** - * [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] - * [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] - * [UINT32][google.aiplatform.master.Tensor.DataType.UINT32] + * [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] + * [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] + * [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32] * * Generated from protobuf field repeated uint32 uint_val = 9; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -434,7 +434,7 @@ public function setUintVal($var) } /** - * [UINT64][google.aiplatform.master.Tensor.DataType.UINT64] + * [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64] * * Generated from protobuf field repeated uint64 uint64_val = 10; * @return \Google\Protobuf\Internal\RepeatedField @@ -445,7 +445,7 @@ public function getUint64Val() } /** - * [UINT64][google.aiplatform.master.Tensor.DataType.UINT64] + * [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64] * * Generated from protobuf field repeated uint64 uint64_val = 10; * @param array|array|\Google\Protobuf\Internal\RepeatedField $var diff --git a/AiPlatform/src/V1/ToolParameterKVMatchSpec.php b/AiPlatform/src/V1/ToolParameterKVMatchSpec.php index 5c02bbd3cb36..7fead78becfc 100644 --- a/AiPlatform/src/V1/ToolParameterKVMatchSpec.php +++ b/AiPlatform/src/V1/ToolParameterKVMatchSpec.php @@ -16,7 +16,7 @@ class ToolParameterKVMatchSpec extends \Google\Protobuf\Internal\Message { /** - * Optional. Whether to use STRCIT string match on parameter values. + * Optional. Whether to use STRICT string match on parameter values. * * Generated from protobuf field bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -29,7 +29,7 @@ class ToolParameterKVMatchSpec extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type bool $use_strict_string_match - * Optional. Whether to use STRCIT string match on parameter values. + * Optional. Whether to use STRICT string match on parameter values. * } */ public function __construct($data = NULL) { @@ -38,7 +38,7 @@ public function __construct($data = NULL) { } /** - * Optional. Whether to use STRCIT string match on parameter values. + * Optional. Whether to use STRICT string match on parameter values. * * Generated from protobuf field bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return bool @@ -49,7 +49,7 @@ public function getUseStrictStringMatch() } /** - * Optional. Whether to use STRCIT string match on parameter values. + * Optional. Whether to use STRICT string match on parameter values. * * Generated from protobuf field bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var diff --git a/AiPlatform/src/V1/TuningJob.php b/AiPlatform/src/V1/TuningJob.php index 38bdb2ec8649..6800ffbdebe9 100644 --- a/AiPlatform/src/V1/TuningJob.php +++ b/AiPlatform/src/V1/TuningJob.php @@ -123,6 +123,17 @@ class TuningJob extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; */ protected $encryption_spec = null; + /** + * The service account that the tuningJob workload runs as. + * If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the + * project will be used. See + * https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent + * Users starting the pipeline must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 22; + */ + protected $service_account = ''; protected $source_model; protected $tuning_spec; @@ -188,6 +199,13 @@ class TuningJob extends \Google\Protobuf\Internal\Message * Customer-managed encryption key options for a TuningJob. If this is set, * then all resources created by the TuningJob will be encrypted with the * provided encryption key. + * @type string $service_account + * The service account that the tuningJob workload runs as. + * If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the + * project will be used. See + * https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent + * Users starting the pipeline must have the `iam.serviceAccounts.actAs` + * permission on this service account. * } */ public function __construct($data = NULL) { @@ -749,6 +767,42 @@ public function setEncryptionSpec($var) return $this; } + /** + * The service account that the tuningJob workload runs as. + * If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the + * project will be used. See + * https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent + * Users starting the pipeline must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 22; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The service account that the tuningJob workload runs as. + * If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the + * project will be used. See + * https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent + * Users starting the pipeline must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 22; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + /** * @return string */ diff --git a/AiPlatform/src/V1/UpdateFeatureViewRequest.php b/AiPlatform/src/V1/UpdateFeatureViewRequest.php index 60352c3e3a16..6df7524781a7 100644 --- a/AiPlatform/src/V1/UpdateFeatureViewRequest.php +++ b/AiPlatform/src/V1/UpdateFeatureViewRequest.php @@ -42,6 +42,7 @@ class UpdateFeatureViewRequest extends \Google\Protobuf\Internal\Message * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; */ @@ -70,6 +71,7 @@ class UpdateFeatureViewRequest extends \Google\Protobuf\Internal\Message * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` * * @return \Google\Cloud\AIPlatform\V1\UpdateFeatureViewRequest * @@ -110,6 +112,7 @@ public static function build(\Google\Cloud\AIPlatform\V1\FeatureView $featureVie * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` * } */ public function __construct($data = NULL) { @@ -175,6 +178,7 @@ public function setFeatureView($var) * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; * @return \Google\Protobuf\FieldMask|null @@ -212,6 +216,7 @@ public function clearUpdateMask() * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; * @param \Google\Protobuf\FieldMask $var diff --git a/AiPlatform/tests/Unit/V1/Client/GenAiTuningServiceClientTest.php b/AiPlatform/tests/Unit/V1/Client/GenAiTuningServiceClientTest.php index d7d4566492db..db9e3849d7bb 100644 --- a/AiPlatform/tests/Unit/V1/Client/GenAiTuningServiceClientTest.php +++ b/AiPlatform/tests/Unit/V1/Client/GenAiTuningServiceClientTest.php @@ -158,12 +158,14 @@ public function createTuningJobTest() $tunedModelDisplayName = 'tunedModelDisplayName358986993'; $description = 'description-1724546052'; $experiment = 'experiment-85337091'; + $serviceAccount = 'serviceAccount-1948028253'; $expectedResponse = new TuningJob(); $expectedResponse->setBaseModel($baseModel); $expectedResponse->setName($name); $expectedResponse->setTunedModelDisplayName($tunedModelDisplayName); $expectedResponse->setDescription($description); $expectedResponse->setExperiment($experiment); + $expectedResponse->setServiceAccount($serviceAccount); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); @@ -235,12 +237,14 @@ public function getTuningJobTest() $tunedModelDisplayName = 'tunedModelDisplayName358986993'; $description = 'description-1724546052'; $experiment = 'experiment-85337091'; + $serviceAccount = 'serviceAccount-1948028253'; $expectedResponse = new TuningJob(); $expectedResponse->setBaseModel($baseModel); $expectedResponse->setName($name2); $expectedResponse->setTunedModelDisplayName($tunedModelDisplayName); $expectedResponse->setDescription($description); $expectedResponse->setExperiment($experiment); + $expectedResponse->setServiceAccount($serviceAccount); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->tuningJobName('[PROJECT]', '[LOCATION]', '[TUNING_JOB]'); @@ -391,12 +395,14 @@ public function rebaseTunedModelTest() $tunedModelDisplayName = 'tunedModelDisplayName358986993'; $description = 'description-1724546052'; $experiment = 'experiment-85337091'; + $serviceAccount = 'serviceAccount-1948028253'; $expectedResponse = new TuningJob(); $expectedResponse->setBaseModel($baseModel); $expectedResponse->setName($name); $expectedResponse->setTunedModelDisplayName($tunedModelDisplayName); $expectedResponse->setDescription($description); $expectedResponse->setExperiment($experiment); + $expectedResponse->setServiceAccount($serviceAccount); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation();