diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto new file mode 100644 index 00000000000..777b990908c --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto @@ -0,0 +1,505 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/cloud/aiplatform/v1/study.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "VizierServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Vertex Vizier API. +// +// Vizier service is a GCP service to solve blackbox optimization problems, +// such as tuning machine learning hyperparameters and searching over deep +// learning architectures. +service VizierService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a Study. A resource name will be generated after creation of the + // Study. + rpc CreateStudy(CreateStudyRequest) returns (Study) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/studies" + body: "study" + }; + option (google.api.method_signature) = "parent,study"; + } + + // Gets a Study by name. + rpc GetStudy(GetStudyRequest) returns (Study) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/studies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the studies in a region for an associated project. + rpc ListStudies(ListStudiesRequest) returns (ListStudiesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/studies" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a Study. + rpc DeleteStudy(DeleteStudyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/studies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Looks a study up using the user-defined display_name field instead of the + // fully qualified resource name. + rpc LookupStudy(LookupStudyRequest) returns (Study) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/studies:lookup" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Adds one or more Trials to a Study, with parameter values + // suggested by Vertex Vizier. Returns a long-running + // operation associated with the generation of Trial suggestions. + // When this long-running operation succeeds, it will contain + // a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse]. + rpc SuggestTrials(SuggestTrialsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/studies/*}/trials:suggest" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "SuggestTrialsResponse" + metadata_type: "SuggestTrialsMetadata" + }; + } + + // Adds a user provided Trial to a Study. + rpc CreateTrial(CreateTrialRequest) returns (Trial) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/studies/*}/trials" + body: "trial" + }; + option (google.api.method_signature) = "parent,trial"; + } + + // Gets a Trial. + rpc GetTrial(GetTrialRequest) returns (Trial) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/studies/*/trials/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the Trials associated with a Study. + rpc ListTrials(ListTrialsRequest) returns (ListTrialsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/studies/*}/trials" + }; + option (google.api.method_signature) = "parent"; + } + + // Adds a measurement of the objective metrics to a Trial. This measurement + // is assumed to have been taken before the Trial is complete. + rpc AddTrialMeasurement(AddTrialMeasurementRequest) returns (Trial) { + option (google.api.http) = { + post: "/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:addTrialMeasurement" + body: "*" + }; + } + + // Marks a Trial as complete. + rpc CompleteTrial(CompleteTrialRequest) returns (Trial) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete" + body: "*" + }; + } + + // Deletes a Trial. + rpc DeleteTrial(DeleteTrialRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/studies/*/trials/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Checks whether a Trial should stop or not. Returns a + // long-running operation. When the operation is successful, + // it will contain a + // [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse]. + rpc CheckTrialEarlyStoppingState(CheckTrialEarlyStoppingStateRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:checkTrialEarlyStoppingState" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "CheckTrialEarlyStoppingStateResponse" + metadata_type: "CheckTrialEarlyStoppingStateMetatdata" + }; + } + + // Stops a Trial. + rpc StopTrial(StopTrialRequest) returns (Trial) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop" + body: "*" + }; + } + + // Lists the pareto-optimal Trials for multi-objective Study or the + // optimal Trials for single-objective Study. The definition of + // pareto-optimal can be checked in wiki page. + // https://en.wikipedia.org/wiki/Pareto_efficiency + rpc ListOptimalTrials(ListOptimalTrialsRequest) returns (ListOptimalTrialsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for [VizierService.GetStudy][google.cloud.aiplatform.v1.VizierService.GetStudy]. +message GetStudyRequest { + // Required. The name of the Study resource. + // Format: `projects/{project}/locations/{location}/studies/{study}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Study" + } + ]; +} + +// Request message for [VizierService.CreateStudy][google.cloud.aiplatform.v1.VizierService.CreateStudy]. +message CreateStudyRequest { + // Required. The resource name of the Location to create the CustomJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Study configuration used to create the Study. + Study study = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [VizierService.ListStudies][google.cloud.aiplatform.v1.VizierService.ListStudies]. +message ListStudiesRequest { + // Required. The resource name of the Location to list the Study from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. A page token to request the next page of results. + // If unspecified, there are no subsequent pages. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of studies to return per "page" of results. + // If unspecified, service will pick an appropriate default. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [VizierService.ListStudies][google.cloud.aiplatform.v1.VizierService.ListStudies]. +message ListStudiesResponse { + // The studies associated with the project. + repeated Study studies = 1; + + // Passes this token as the `page_token` field of the request for a + // subsequent call. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [VizierService.DeleteStudy][google.cloud.aiplatform.v1.VizierService.DeleteStudy]. +message DeleteStudyRequest { + // Required. The name of the Study resource to be deleted. + // Format: `projects/{project}/locations/{location}/studies/{study}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Study" + } + ]; +} + +// Request message for [VizierService.LookupStudy][google.cloud.aiplatform.v1.VizierService.LookupStudy]. +message LookupStudyRequest { + // Required. The resource name of the Location to get the Study from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The user-defined display name of the Study + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1.VizierService.SuggestTrials]. +message SuggestTrialsRequest { + // Required. The project and location that the Study belongs to. + // Format: `projects/{project}/locations/{location}/studies/{study}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Study" + } + ]; + + // Required. The number of suggestions requested. + int32 suggestion_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The identifier of the client that is requesting the suggestion. + // + // If multiple SuggestTrialsRequests have the same `client_id`, + // the service will return the identical suggested Trial if the Trial is + // pending, and provide a new Trial if the last suggested Trial was completed. + string client_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1.VizierService.SuggestTrials]. +message SuggestTrialsResponse { + // A list of Trials. + repeated Trial trials = 1; + + // The state of the Study. + Study.State study_state = 2; + + // The time at which the operation was started. + google.protobuf.Timestamp start_time = 3; + + // The time at which operation processing completed. + google.protobuf.Timestamp end_time = 4; +} + +// Details of operations that perform Trials suggestion. +message SuggestTrialsMetadata { + // Operation metadata for suggesting Trials. + GenericOperationMetadata generic_metadata = 1; + + // The identifier of the client that is requesting the suggestion. + // + // If multiple SuggestTrialsRequests have the same `client_id`, + // the service will return the identical suggested Trial if the Trial is + // pending, and provide a new Trial if the last suggested Trial was completed. + string client_id = 2; +} + +// Request message for [VizierService.CreateTrial][google.cloud.aiplatform.v1.VizierService.CreateTrial]. +message CreateTrialRequest { + // Required. The resource name of the Study to create the Trial in. + // Format: `projects/{project}/locations/{location}/studies/{study}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Study" + } + ]; + + // Required. The Trial to create. + Trial trial = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [VizierService.GetTrial][google.cloud.aiplatform.v1.VizierService.GetTrial]. +message GetTrialRequest { + // Required. The name of the Trial resource. + // Format: + // `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Trial" + } + ]; +} + +// Request message for [VizierService.ListTrials][google.cloud.aiplatform.v1.VizierService.ListTrials]. +message ListTrialsRequest { + // Required. The resource name of the Study to list the Trial from. + // Format: `projects/{project}/locations/{location}/studies/{study}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Study" + } + ]; + + // Optional. A page token to request the next page of results. + // If unspecified, there are no subsequent pages. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of Trials to retrieve per "page" of results. + // If unspecified, the service will pick an appropriate default. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [VizierService.ListTrials][google.cloud.aiplatform.v1.VizierService.ListTrials]. +message ListTrialsResponse { + // The Trials associated with the Study. + repeated Trial trials = 1; + + // Pass this token as the `page_token` field of the request for a + // subsequent call. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [VizierService.AddTrialMeasurement][google.cloud.aiplatform.v1.VizierService.AddTrialMeasurement]. +message AddTrialMeasurementRequest { + // Required. The name of the trial to add measurement. + // Format: + // `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + string trial_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Trial" + } + ]; + + // Required. The measurement to be added to a Trial. + Measurement measurement = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [VizierService.CompleteTrial][google.cloud.aiplatform.v1.VizierService.CompleteTrial]. +message CompleteTrialRequest { + // Required. The Trial's name. + // Format: + // `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Trial" + } + ]; + + // Optional. If provided, it will be used as the completed Trial's + // final_measurement; Otherwise, the service will auto-select a + // previously reported measurement as the final-measurement + Measurement final_measurement = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if the Trial cannot be run with the given Parameter, and + // final_measurement will be ignored. + bool trial_infeasible = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A human readable reason why the trial was infeasible. This should + // only be provided if `trial_infeasible` is true. + string infeasible_reason = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VizierService.DeleteTrial][google.cloud.aiplatform.v1.VizierService.DeleteTrial]. +message DeleteTrialRequest { + // Required. The Trial's name. + // Format: + // `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Trial" + } + ]; +} + +// Request message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState]. +message CheckTrialEarlyStoppingStateRequest { + // Required. The Trial's name. + // Format: + // `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + string trial_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Trial" + } + ]; +} + +// Response message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState]. +message CheckTrialEarlyStoppingStateResponse { + // True if the Trial should stop. + bool should_stop = 1; +} + +// This message will be placed in the metadata field of a +// google.longrunning.Operation associated with a CheckTrialEarlyStoppingState +// request. +message CheckTrialEarlyStoppingStateMetatdata { + // Operation metadata for suggesting Trials. + GenericOperationMetadata generic_metadata = 1; + + // The name of the Study that the Trial belongs to. + string study = 2; + + // The Trial name. + string trial = 3; +} + +// Request message for [VizierService.StopTrial][google.cloud.aiplatform.v1.VizierService.StopTrial]. +message StopTrialRequest { + // Required. The Trial's name. + // Format: + // `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Trial" + } + ]; +} + +// Request message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1.VizierService.ListOptimalTrials]. +message ListOptimalTrialsRequest { + // Required. The name of the Study that the optimal Trial belongs to. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Study" + } + ]; +} + +// Response message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1.VizierService.ListOptimalTrials]. +message ListOptimalTrialsResponse { + // The pareto-optimal Trials for multiple objective Study or the + // optimal trial for single objective Study. The definition of + // pareto-optimal can be checked in wiki page. + // https://en.wikipedia.org/wiki/Pareto_efficiency + repeated Trial optimal_trials = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index d5cc6d499e0..576e85fd086 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -38202,6 +38202,2451 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** Represents a VizierService */ + class VizierService extends $protobuf.rpc.Service { + + /** + * Constructs a new VizierService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new VizierService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VizierService; + + /** + * Calls CreateStudy. + * @param request CreateStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateStudyCallback): void; + + /** + * Calls CreateStudy. + * @param request CreateStudyRequest message or plain object + * @returns Promise + */ + public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest): Promise; + + /** + * Calls GetStudy. + * @param request GetStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.GetStudyCallback): void; + + /** + * Calls GetStudy. + * @param request GetStudyRequest message or plain object + * @returns Promise + */ + public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest): Promise; + + /** + * Calls ListStudies. + * @param request ListStudiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListStudiesResponse + */ + public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest, callback: google.cloud.aiplatform.v1.VizierService.ListStudiesCallback): void; + + /** + * Calls ListStudies. + * @param request ListStudiesRequest message or plain object + * @returns Promise + */ + public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest): Promise; + + /** + * Calls DeleteStudy. + * @param request DeleteStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteStudyCallback): void; + + /** + * Calls DeleteStudy. + * @param request DeleteStudyRequest message or plain object + * @returns Promise + */ + public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest): Promise; + + /** + * Calls LookupStudy. + * @param request LookupStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.LookupStudyCallback): void; + + /** + * Calls LookupStudy. + * @param request LookupStudyRequest message or plain object + * @returns Promise + */ + public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest): Promise; + + /** + * Calls SuggestTrials. + * @param request SuggestTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.SuggestTrialsCallback): void; + + /** + * Calls SuggestTrials. + * @param request SuggestTrialsRequest message or plain object + * @returns Promise + */ + public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest): Promise; + + /** + * Calls CreateTrial. + * @param request CreateTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateTrialCallback): void; + + /** + * Calls CreateTrial. + * @param request CreateTrialRequest message or plain object + * @returns Promise + */ + public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest): Promise; + + /** + * Calls GetTrial. + * @param request GetTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.GetTrialCallback): void; + + /** + * Calls GetTrial. + * @param request GetTrialRequest message or plain object + * @returns Promise + */ + public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest): Promise; + + /** + * Calls ListTrials. + * @param request ListTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrialsResponse + */ + public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListTrialsCallback): void; + + /** + * Calls ListTrials. + * @param request ListTrialsRequest message or plain object + * @returns Promise + */ + public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest): Promise; + + /** + * Calls AddTrialMeasurement. + * @param request AddTrialMeasurementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, callback: google.cloud.aiplatform.v1.VizierService.AddTrialMeasurementCallback): void; + + /** + * Calls AddTrialMeasurement. + * @param request AddTrialMeasurementRequest message or plain object + * @returns Promise + */ + public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): Promise; + + /** + * Calls CompleteTrial. + * @param request CompleteTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CompleteTrialCallback): void; + + /** + * Calls CompleteTrial. + * @param request CompleteTrialRequest message or plain object + * @returns Promise + */ + public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest): Promise; + + /** + * Calls DeleteTrial. + * @param request DeleteTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteTrialCallback): void; + + /** + * Calls DeleteTrial. + * @param request DeleteTrialRequest message or plain object + * @returns Promise + */ + public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest): Promise; + + /** + * Calls CheckTrialEarlyStoppingState. + * @param request CheckTrialEarlyStoppingStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, callback: google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingStateCallback): void; + + /** + * Calls CheckTrialEarlyStoppingState. + * @param request CheckTrialEarlyStoppingStateRequest message or plain object + * @returns Promise + */ + public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): Promise; + + /** + * Calls StopTrial. + * @param request StopTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.StopTrialCallback): void; + + /** + * Calls StopTrial. + * @param request StopTrialRequest message or plain object + * @returns Promise + */ + public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest): Promise; + + /** + * Calls ListOptimalTrials. + * @param request ListOptimalTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOptimalTrialsResponse + */ + public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListOptimalTrialsCallback): void; + + /** + * Calls ListOptimalTrials. + * @param request ListOptimalTrialsRequest message or plain object + * @returns Promise + */ + public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): Promise; + } + + namespace VizierService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#createStudy}. + * @param error Error, if any + * @param [response] Study + */ + type CreateStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#getStudy}. + * @param error Error, if any + * @param [response] Study + */ + type GetStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#listStudies}. + * @param error Error, if any + * @param [response] ListStudiesResponse + */ + type ListStudiesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListStudiesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#deleteStudy}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteStudyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#lookupStudy}. + * @param error Error, if any + * @param [response] Study + */ + type LookupStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#suggestTrials}. + * @param error Error, if any + * @param [response] Operation + */ + type SuggestTrialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#createTrial}. + * @param error Error, if any + * @param [response] Trial + */ + type CreateTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#getTrial}. + * @param error Error, if any + * @param [response] Trial + */ + type GetTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#listTrials}. + * @param error Error, if any + * @param [response] ListTrialsResponse + */ + type ListTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrialsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#addTrialMeasurement}. + * @param error Error, if any + * @param [response] Trial + */ + type AddTrialMeasurementCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#completeTrial}. + * @param error Error, if any + * @param [response] Trial + */ + type CompleteTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#deleteTrial}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteTrialCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#checkTrialEarlyStoppingState}. + * @param error Error, if any + * @param [response] Operation + */ + type CheckTrialEarlyStoppingStateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#stopTrial}. + * @param error Error, if any + * @param [response] Trial + */ + type StopTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#listOptimalTrials}. + * @param error Error, if any + * @param [response] ListOptimalTrialsResponse + */ + type ListOptimalTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListOptimalTrialsResponse) => void; + } + + /** Properties of a GetStudyRequest. */ + interface IGetStudyRequest { + + /** GetStudyRequest name */ + name?: (string|null); + } + + /** Represents a GetStudyRequest. */ + class GetStudyRequest implements IGetStudyRequest { + + /** + * Constructs a new GetStudyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetStudyRequest); + + /** GetStudyRequest name. */ + public name: string; + + /** + * Creates a new GetStudyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetStudyRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetStudyRequest): google.cloud.aiplatform.v1.GetStudyRequest; + + /** + * Encodes the specified GetStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @param message GetStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @param message GetStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetStudyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetStudyRequest; + + /** + * Decodes a GetStudyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetStudyRequest; + + /** + * Verifies a GetStudyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetStudyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetStudyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetStudyRequest; + + /** + * Creates a plain object from a GetStudyRequest message. Also converts values to other types if specified. + * @param message GetStudyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetStudyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateStudyRequest. */ + interface ICreateStudyRequest { + + /** CreateStudyRequest parent */ + parent?: (string|null); + + /** CreateStudyRequest study */ + study?: (google.cloud.aiplatform.v1.IStudy|null); + } + + /** Represents a CreateStudyRequest. */ + class CreateStudyRequest implements ICreateStudyRequest { + + /** + * Constructs a new CreateStudyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest); + + /** CreateStudyRequest parent. */ + public parent: string; + + /** CreateStudyRequest study. */ + public study?: (google.cloud.aiplatform.v1.IStudy|null); + + /** + * Creates a new CreateStudyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateStudyRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest): google.cloud.aiplatform.v1.CreateStudyRequest; + + /** + * Encodes the specified CreateStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @param message CreateStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @param message CreateStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateStudyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateStudyRequest; + + /** + * Decodes a CreateStudyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateStudyRequest; + + /** + * Verifies a CreateStudyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateStudyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateStudyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateStudyRequest; + + /** + * Creates a plain object from a CreateStudyRequest message. Also converts values to other types if specified. + * @param message CreateStudyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateStudyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListStudiesRequest. */ + interface IListStudiesRequest { + + /** ListStudiesRequest parent */ + parent?: (string|null); + + /** ListStudiesRequest pageToken */ + pageToken?: (string|null); + + /** ListStudiesRequest pageSize */ + pageSize?: (number|null); + } + + /** Represents a ListStudiesRequest. */ + class ListStudiesRequest implements IListStudiesRequest { + + /** + * Constructs a new ListStudiesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListStudiesRequest); + + /** ListStudiesRequest parent. */ + public parent: string; + + /** ListStudiesRequest pageToken. */ + public pageToken: string; + + /** ListStudiesRequest pageSize. */ + public pageSize: number; + + /** + * Creates a new ListStudiesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListStudiesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListStudiesRequest): google.cloud.aiplatform.v1.ListStudiesRequest; + + /** + * Encodes the specified ListStudiesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @param message ListStudiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListStudiesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @param message ListStudiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListStudiesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListStudiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListStudiesRequest; + + /** + * Decodes a ListStudiesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListStudiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListStudiesRequest; + + /** + * Verifies a ListStudiesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListStudiesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListStudiesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesRequest; + + /** + * Creates a plain object from a ListStudiesRequest message. Also converts values to other types if specified. + * @param message ListStudiesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListStudiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListStudiesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListStudiesResponse. */ + interface IListStudiesResponse { + + /** ListStudiesResponse studies */ + studies?: (google.cloud.aiplatform.v1.IStudy[]|null); + + /** ListStudiesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListStudiesResponse. */ + class ListStudiesResponse implements IListStudiesResponse { + + /** + * Constructs a new ListStudiesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListStudiesResponse); + + /** ListStudiesResponse studies. */ + public studies: google.cloud.aiplatform.v1.IStudy[]; + + /** ListStudiesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListStudiesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListStudiesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListStudiesResponse): google.cloud.aiplatform.v1.ListStudiesResponse; + + /** + * Encodes the specified ListStudiesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @param message ListStudiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListStudiesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @param message ListStudiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListStudiesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListStudiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListStudiesResponse; + + /** + * Decodes a ListStudiesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListStudiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListStudiesResponse; + + /** + * Verifies a ListStudiesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListStudiesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListStudiesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesResponse; + + /** + * Creates a plain object from a ListStudiesResponse message. Also converts values to other types if specified. + * @param message ListStudiesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListStudiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListStudiesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteStudyRequest. */ + interface IDeleteStudyRequest { + + /** DeleteStudyRequest name */ + name?: (string|null); + } + + /** Represents a DeleteStudyRequest. */ + class DeleteStudyRequest implements IDeleteStudyRequest { + + /** + * Constructs a new DeleteStudyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest); + + /** DeleteStudyRequest name. */ + public name: string; + + /** + * Creates a new DeleteStudyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteStudyRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest): google.cloud.aiplatform.v1.DeleteStudyRequest; + + /** + * Encodes the specified DeleteStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @param message DeleteStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @param message DeleteStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteStudyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteStudyRequest; + + /** + * Decodes a DeleteStudyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteStudyRequest; + + /** + * Verifies a DeleteStudyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteStudyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteStudyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteStudyRequest; + + /** + * Creates a plain object from a DeleteStudyRequest message. Also converts values to other types if specified. + * @param message DeleteStudyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteStudyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a LookupStudyRequest. */ + interface ILookupStudyRequest { + + /** LookupStudyRequest parent */ + parent?: (string|null); + + /** LookupStudyRequest displayName */ + displayName?: (string|null); + } + + /** Represents a LookupStudyRequest. */ + class LookupStudyRequest implements ILookupStudyRequest { + + /** + * Constructs a new LookupStudyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest); + + /** LookupStudyRequest parent. */ + public parent: string; + + /** LookupStudyRequest displayName. */ + public displayName: string; + + /** + * Creates a new LookupStudyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupStudyRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest): google.cloud.aiplatform.v1.LookupStudyRequest; + + /** + * Encodes the specified LookupStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @param message LookupStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @param message LookupStudyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupStudyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LookupStudyRequest; + + /** + * Decodes a LookupStudyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LookupStudyRequest; + + /** + * Verifies a LookupStudyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupStudyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupStudyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LookupStudyRequest; + + /** + * Creates a plain object from a LookupStudyRequest message. Also converts values to other types if specified. + * @param message LookupStudyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.LookupStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupStudyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SuggestTrialsRequest. */ + interface ISuggestTrialsRequest { + + /** SuggestTrialsRequest parent */ + parent?: (string|null); + + /** SuggestTrialsRequest suggestionCount */ + suggestionCount?: (number|null); + + /** SuggestTrialsRequest clientId */ + clientId?: (string|null); + } + + /** Represents a SuggestTrialsRequest. */ + class SuggestTrialsRequest implements ISuggestTrialsRequest { + + /** + * Constructs a new SuggestTrialsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest); + + /** SuggestTrialsRequest parent. */ + public parent: string; + + /** SuggestTrialsRequest suggestionCount. */ + public suggestionCount: number; + + /** SuggestTrialsRequest clientId. */ + public clientId: string; + + /** + * Creates a new SuggestTrialsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SuggestTrialsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest): google.cloud.aiplatform.v1.SuggestTrialsRequest; + + /** + * Encodes the specified SuggestTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @param message SuggestTrialsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SuggestTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @param message SuggestTrialsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SuggestTrialsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SuggestTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsRequest; + + /** + * Decodes a SuggestTrialsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SuggestTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsRequest; + + /** + * Verifies a SuggestTrialsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SuggestTrialsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SuggestTrialsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsRequest; + + /** + * Creates a plain object from a SuggestTrialsRequest message. Also converts values to other types if specified. + * @param message SuggestTrialsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SuggestTrialsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SuggestTrialsResponse. */ + interface ISuggestTrialsResponse { + + /** SuggestTrialsResponse trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); + + /** SuggestTrialsResponse studyState */ + studyState?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); + + /** SuggestTrialsResponse startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SuggestTrialsResponse endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a SuggestTrialsResponse. */ + class SuggestTrialsResponse implements ISuggestTrialsResponse { + + /** + * Constructs a new SuggestTrialsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse); + + /** SuggestTrialsResponse trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; + + /** SuggestTrialsResponse studyState. */ + public studyState: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); + + /** SuggestTrialsResponse startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SuggestTrialsResponse endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new SuggestTrialsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SuggestTrialsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse): google.cloud.aiplatform.v1.SuggestTrialsResponse; + + /** + * Encodes the specified SuggestTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @param message SuggestTrialsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SuggestTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @param message SuggestTrialsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SuggestTrialsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SuggestTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsResponse; + + /** + * Decodes a SuggestTrialsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SuggestTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsResponse; + + /** + * Verifies a SuggestTrialsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SuggestTrialsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SuggestTrialsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsResponse; + + /** + * Creates a plain object from a SuggestTrialsResponse message. Also converts values to other types if specified. + * @param message SuggestTrialsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SuggestTrialsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SuggestTrialsMetadata. */ + interface ISuggestTrialsMetadata { + + /** SuggestTrialsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** SuggestTrialsMetadata clientId */ + clientId?: (string|null); + } + + /** Represents a SuggestTrialsMetadata. */ + class SuggestTrialsMetadata implements ISuggestTrialsMetadata { + + /** + * Constructs a new SuggestTrialsMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata); + + /** SuggestTrialsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** SuggestTrialsMetadata clientId. */ + public clientId: string; + + /** + * Creates a new SuggestTrialsMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns SuggestTrialsMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + + /** + * Encodes the specified SuggestTrialsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @param message SuggestTrialsMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SuggestTrialsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @param message SuggestTrialsMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SuggestTrialsMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + + /** + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SuggestTrialsMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + + /** + * Verifies a SuggestTrialsMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SuggestTrialsMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SuggestTrialsMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + + /** + * Creates a plain object from a SuggestTrialsMetadata message. Also converts values to other types if specified. + * @param message SuggestTrialsMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SuggestTrialsMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateTrialRequest. */ + interface ICreateTrialRequest { + + /** CreateTrialRequest parent */ + parent?: (string|null); + + /** CreateTrialRequest trial */ + trial?: (google.cloud.aiplatform.v1.ITrial|null); + } + + /** Represents a CreateTrialRequest. */ + class CreateTrialRequest implements ICreateTrialRequest { + + /** + * Constructs a new CreateTrialRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest); + + /** CreateTrialRequest parent. */ + public parent: string; + + /** CreateTrialRequest trial. */ + public trial?: (google.cloud.aiplatform.v1.ITrial|null); + + /** + * Creates a new CreateTrialRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTrialRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest): google.cloud.aiplatform.v1.CreateTrialRequest; + + /** + * Encodes the specified CreateTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @param message CreateTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @param message CreateTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTrialRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTrialRequest; + + /** + * Decodes a CreateTrialRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTrialRequest; + + /** + * Verifies a CreateTrialRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateTrialRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTrialRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrialRequest; + + /** + * Creates a plain object from a CreateTrialRequest message. Also converts values to other types if specified. + * @param message CreateTrialRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTrialRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetTrialRequest. */ + interface IGetTrialRequest { + + /** GetTrialRequest name */ + name?: (string|null); + } + + /** Represents a GetTrialRequest. */ + class GetTrialRequest implements IGetTrialRequest { + + /** + * Constructs a new GetTrialRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTrialRequest); + + /** GetTrialRequest name. */ + public name: string; + + /** + * Creates a new GetTrialRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTrialRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTrialRequest): google.cloud.aiplatform.v1.GetTrialRequest; + + /** + * Encodes the specified GetTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @param message GetTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @param message GetTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTrialRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTrialRequest; + + /** + * Decodes a GetTrialRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTrialRequest; + + /** + * Verifies a GetTrialRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTrialRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTrialRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrialRequest; + + /** + * Creates a plain object from a GetTrialRequest message. Also converts values to other types if specified. + * @param message GetTrialRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTrialRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListTrialsRequest. */ + interface IListTrialsRequest { + + /** ListTrialsRequest parent */ + parent?: (string|null); + + /** ListTrialsRequest pageToken */ + pageToken?: (string|null); + + /** ListTrialsRequest pageSize */ + pageSize?: (number|null); + } + + /** Represents a ListTrialsRequest. */ + class ListTrialsRequest implements IListTrialsRequest { + + /** + * Constructs a new ListTrialsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrialsRequest); + + /** ListTrialsRequest parent. */ + public parent: string; + + /** ListTrialsRequest pageToken. */ + public pageToken: string; + + /** ListTrialsRequest pageSize. */ + public pageSize: number; + + /** + * Creates a new ListTrialsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrialsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrialsRequest): google.cloud.aiplatform.v1.ListTrialsRequest; + + /** + * Encodes the specified ListTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @param message ListTrialsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @param message ListTrialsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTrialsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTrialsRequest; + + /** + * Decodes a ListTrialsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTrialsRequest; + + /** + * Verifies a ListTrialsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListTrialsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrialsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsRequest; + + /** + * Creates a plain object from a ListTrialsRequest message. Also converts values to other types if specified. + * @param message ListTrialsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTrialsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListTrialsResponse. */ + interface IListTrialsResponse { + + /** ListTrialsResponse trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); + + /** ListTrialsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTrialsResponse. */ + class ListTrialsResponse implements IListTrialsResponse { + + /** + * Constructs a new ListTrialsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrialsResponse); + + /** ListTrialsResponse trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; + + /** ListTrialsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListTrialsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrialsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrialsResponse): google.cloud.aiplatform.v1.ListTrialsResponse; + + /** + * Encodes the specified ListTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @param message ListTrialsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @param message ListTrialsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTrialsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTrialsResponse; + + /** + * Decodes a ListTrialsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTrialsResponse; + + /** + * Verifies a ListTrialsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListTrialsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrialsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsResponse; + + /** + * Creates a plain object from a ListTrialsResponse message. Also converts values to other types if specified. + * @param message ListTrialsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTrialsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AddTrialMeasurementRequest. */ + interface IAddTrialMeasurementRequest { + + /** AddTrialMeasurementRequest trialName */ + trialName?: (string|null); + + /** AddTrialMeasurementRequest measurement */ + measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + } + + /** Represents an AddTrialMeasurementRequest. */ + class AddTrialMeasurementRequest implements IAddTrialMeasurementRequest { + + /** + * Constructs a new AddTrialMeasurementRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest); + + /** AddTrialMeasurementRequest trialName. */ + public trialName: string; + + /** AddTrialMeasurementRequest measurement. */ + public measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** + * Creates a new AddTrialMeasurementRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AddTrialMeasurementRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + + /** + * Encodes the specified AddTrialMeasurementRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @param message AddTrialMeasurementRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddTrialMeasurementRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @param message AddTrialMeasurementRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddTrialMeasurementRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + + /** + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddTrialMeasurementRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + + /** + * Verifies an AddTrialMeasurementRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddTrialMeasurementRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddTrialMeasurementRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + + /** + * Creates a plain object from an AddTrialMeasurementRequest message. Also converts values to other types if specified. + * @param message AddTrialMeasurementRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.AddTrialMeasurementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddTrialMeasurementRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CompleteTrialRequest. */ + interface ICompleteTrialRequest { + + /** CompleteTrialRequest name */ + name?: (string|null); + + /** CompleteTrialRequest finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** CompleteTrialRequest trialInfeasible */ + trialInfeasible?: (boolean|null); + + /** CompleteTrialRequest infeasibleReason */ + infeasibleReason?: (string|null); + } + + /** Represents a CompleteTrialRequest. */ + class CompleteTrialRequest implements ICompleteTrialRequest { + + /** + * Constructs a new CompleteTrialRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest); + + /** CompleteTrialRequest name. */ + public name: string; + + /** CompleteTrialRequest finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** CompleteTrialRequest trialInfeasible. */ + public trialInfeasible: boolean; + + /** CompleteTrialRequest infeasibleReason. */ + public infeasibleReason: string; + + /** + * Creates a new CompleteTrialRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteTrialRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest): google.cloud.aiplatform.v1.CompleteTrialRequest; + + /** + * Encodes the specified CompleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @param message CompleteTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @param message CompleteTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompleteTrialRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CompleteTrialRequest; + + /** + * Decodes a CompleteTrialRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CompleteTrialRequest; + + /** + * Verifies a CompleteTrialRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteTrialRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CompleteTrialRequest; + + /** + * Creates a plain object from a CompleteTrialRequest message. Also converts values to other types if specified. + * @param message CompleteTrialRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CompleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteTrialRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteTrialRequest. */ + interface IDeleteTrialRequest { + + /** DeleteTrialRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTrialRequest. */ + class DeleteTrialRequest implements IDeleteTrialRequest { + + /** + * Constructs a new DeleteTrialRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest); + + /** DeleteTrialRequest name. */ + public name: string; + + /** + * Creates a new DeleteTrialRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTrialRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest): google.cloud.aiplatform.v1.DeleteTrialRequest; + + /** + * Encodes the specified DeleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @param message DeleteTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @param message DeleteTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTrialRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTrialRequest; + + /** + * Decodes a DeleteTrialRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTrialRequest; + + /** + * Verifies a DeleteTrialRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTrialRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrialRequest; + + /** + * Creates a plain object from a DeleteTrialRequest message. Also converts values to other types if specified. + * @param message DeleteTrialRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTrialRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CheckTrialEarlyStoppingStateRequest. */ + interface ICheckTrialEarlyStoppingStateRequest { + + /** CheckTrialEarlyStoppingStateRequest trialName */ + trialName?: (string|null); + } + + /** Represents a CheckTrialEarlyStoppingStateRequest. */ + class CheckTrialEarlyStoppingStateRequest implements ICheckTrialEarlyStoppingStateRequest { + + /** + * Constructs a new CheckTrialEarlyStoppingStateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest); + + /** CheckTrialEarlyStoppingStateRequest trialName. */ + public trialName: string; + + /** + * Creates a new CheckTrialEarlyStoppingStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckTrialEarlyStoppingStateRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckTrialEarlyStoppingStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + + /** + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckTrialEarlyStoppingStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + + /** + * Verifies a CheckTrialEarlyStoppingStateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckTrialEarlyStoppingStateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckTrialEarlyStoppingStateRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + + /** + * Creates a plain object from a CheckTrialEarlyStoppingStateRequest message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckTrialEarlyStoppingStateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CheckTrialEarlyStoppingStateResponse. */ + interface ICheckTrialEarlyStoppingStateResponse { + + /** CheckTrialEarlyStoppingStateResponse shouldStop */ + shouldStop?: (boolean|null); + } + + /** Represents a CheckTrialEarlyStoppingStateResponse. */ + class CheckTrialEarlyStoppingStateResponse implements ICheckTrialEarlyStoppingStateResponse { + + /** + * Constructs a new CheckTrialEarlyStoppingStateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse); + + /** CheckTrialEarlyStoppingStateResponse shouldStop. */ + public shouldStop: boolean; + + /** + * Creates a new CheckTrialEarlyStoppingStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckTrialEarlyStoppingStateResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckTrialEarlyStoppingStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + + /** + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckTrialEarlyStoppingStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + + /** + * Verifies a CheckTrialEarlyStoppingStateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckTrialEarlyStoppingStateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckTrialEarlyStoppingStateResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + + /** + * Creates a plain object from a CheckTrialEarlyStoppingStateResponse message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckTrialEarlyStoppingStateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CheckTrialEarlyStoppingStateMetatdata. */ + interface ICheckTrialEarlyStoppingStateMetatdata { + + /** CheckTrialEarlyStoppingStateMetatdata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** CheckTrialEarlyStoppingStateMetatdata study */ + study?: (string|null); + + /** CheckTrialEarlyStoppingStateMetatdata trial */ + trial?: (string|null); + } + + /** Represents a CheckTrialEarlyStoppingStateMetatdata. */ + class CheckTrialEarlyStoppingStateMetatdata implements ICheckTrialEarlyStoppingStateMetatdata { + + /** + * Constructs a new CheckTrialEarlyStoppingStateMetatdata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata); + + /** CheckTrialEarlyStoppingStateMetatdata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** CheckTrialEarlyStoppingStateMetatdata study. */ + public study: string; + + /** CheckTrialEarlyStoppingStateMetatdata trial. */ + public trial: string; + + /** + * Creates a new CheckTrialEarlyStoppingStateMetatdata instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckTrialEarlyStoppingStateMetatdata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckTrialEarlyStoppingStateMetatdata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + + /** + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckTrialEarlyStoppingStateMetatdata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + + /** + * Verifies a CheckTrialEarlyStoppingStateMetatdata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckTrialEarlyStoppingStateMetatdata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckTrialEarlyStoppingStateMetatdata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + + /** + * Creates a plain object from a CheckTrialEarlyStoppingStateMetatdata message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateMetatdata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckTrialEarlyStoppingStateMetatdata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a StopTrialRequest. */ + interface IStopTrialRequest { + + /** StopTrialRequest name */ + name?: (string|null); + } + + /** Represents a StopTrialRequest. */ + class StopTrialRequest implements IStopTrialRequest { + + /** + * Constructs a new StopTrialRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStopTrialRequest); + + /** StopTrialRequest name. */ + public name: string; + + /** + * Creates a new StopTrialRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopTrialRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStopTrialRequest): google.cloud.aiplatform.v1.StopTrialRequest; + + /** + * Encodes the specified StopTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @param message StopTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @param message StopTrialRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopTrialRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StopTrialRequest; + + /** + * Decodes a StopTrialRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StopTrialRequest; + + /** + * Verifies a StopTrialRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopTrialRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopTrialRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StopTrialRequest; + + /** + * Creates a plain object from a StopTrialRequest message. Also converts values to other types if specified. + * @param message StopTrialRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StopTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopTrialRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListOptimalTrialsRequest. */ + interface IListOptimalTrialsRequest { + + /** ListOptimalTrialsRequest parent */ + parent?: (string|null); + } + + /** Represents a ListOptimalTrialsRequest. */ + class ListOptimalTrialsRequest implements IListOptimalTrialsRequest { + + /** + * Constructs a new ListOptimalTrialsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest); + + /** ListOptimalTrialsRequest parent. */ + public parent: string; + + /** + * Creates a new ListOptimalTrialsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOptimalTrialsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + + /** + * Encodes the specified ListOptimalTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @param message ListOptimalTrialsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOptimalTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @param message ListOptimalTrialsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOptimalTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + + /** + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOptimalTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + + /** + * Verifies a ListOptimalTrialsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListOptimalTrialsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOptimalTrialsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + + /** + * Creates a plain object from a ListOptimalTrialsRequest message. Also converts values to other types if specified. + * @param message ListOptimalTrialsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOptimalTrialsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListOptimalTrialsResponse. */ + interface IListOptimalTrialsResponse { + + /** ListOptimalTrialsResponse optimalTrials */ + optimalTrials?: (google.cloud.aiplatform.v1.ITrial[]|null); + } + + /** Represents a ListOptimalTrialsResponse. */ + class ListOptimalTrialsResponse implements IListOptimalTrialsResponse { + + /** + * Constructs a new ListOptimalTrialsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse); + + /** ListOptimalTrialsResponse optimalTrials. */ + public optimalTrials: google.cloud.aiplatform.v1.ITrial[]; + + /** + * Creates a new ListOptimalTrialsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOptimalTrialsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + + /** + * Encodes the specified ListOptimalTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @param message ListOptimalTrialsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOptimalTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @param message ListOptimalTrialsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOptimalTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + + /** + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOptimalTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + + /** + * Verifies a ListOptimalTrialsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListOptimalTrialsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOptimalTrialsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + + /** + * Creates a plain object from a ListOptimalTrialsResponse message. Also converts values to other types if specified. + * @param message ListOptimalTrialsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOptimalTrialsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } /** Namespace v1beta1. */ diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 9aeae4e967d..fb13a3c1ecf 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -92816,6 +92816,5273 @@ return UpdateSpecialistPoolOperationMetadata; })(); + v1.VizierService = (function() { + + /** + * Constructs a new VizierService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a VizierService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function VizierService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (VizierService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = VizierService; + + /** + * Creates new VizierService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.VizierService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {VizierService} RPC service. Useful where requests and/or responses are streamed. + */ + VizierService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#createStudy}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef CreateStudyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Study} [response] Study + */ + + /** + * Calls CreateStudy. + * @function createStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateStudyRequest} request CreateStudyRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.CreateStudyCallback} callback Node-style callback called with the error, if any, and Study + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.createStudy = function createStudy(request, callback) { + return this.rpcCall(createStudy, $root.google.cloud.aiplatform.v1.CreateStudyRequest, $root.google.cloud.aiplatform.v1.Study, request, callback); + }, "name", { value: "CreateStudy" }); + + /** + * Calls CreateStudy. + * @function createStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateStudyRequest} request CreateStudyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#getStudy}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef GetStudyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Study} [response] Study + */ + + /** + * Calls GetStudy. + * @function getStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IGetStudyRequest} request GetStudyRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.GetStudyCallback} callback Node-style callback called with the error, if any, and Study + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.getStudy = function getStudy(request, callback) { + return this.rpcCall(getStudy, $root.google.cloud.aiplatform.v1.GetStudyRequest, $root.google.cloud.aiplatform.v1.Study, request, callback); + }, "name", { value: "GetStudy" }); + + /** + * Calls GetStudy. + * @function getStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IGetStudyRequest} request GetStudyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#listStudies}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef ListStudiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListStudiesResponse} [response] ListStudiesResponse + */ + + /** + * Calls ListStudies. + * @function listStudies + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IListStudiesRequest} request ListStudiesRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.ListStudiesCallback} callback Node-style callback called with the error, if any, and ListStudiesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.listStudies = function listStudies(request, callback) { + return this.rpcCall(listStudies, $root.google.cloud.aiplatform.v1.ListStudiesRequest, $root.google.cloud.aiplatform.v1.ListStudiesResponse, request, callback); + }, "name", { value: "ListStudies" }); + + /** + * Calls ListStudies. + * @function listStudies + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IListStudiesRequest} request ListStudiesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#deleteStudy}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef DeleteStudyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteStudy. + * @function deleteStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteStudyRequest} request DeleteStudyRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.DeleteStudyCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.deleteStudy = function deleteStudy(request, callback) { + return this.rpcCall(deleteStudy, $root.google.cloud.aiplatform.v1.DeleteStudyRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteStudy" }); + + /** + * Calls DeleteStudy. + * @function deleteStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteStudyRequest} request DeleteStudyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#lookupStudy}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef LookupStudyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Study} [response] Study + */ + + /** + * Calls LookupStudy. + * @function lookupStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ILookupStudyRequest} request LookupStudyRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.LookupStudyCallback} callback Node-style callback called with the error, if any, and Study + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.lookupStudy = function lookupStudy(request, callback) { + return this.rpcCall(lookupStudy, $root.google.cloud.aiplatform.v1.LookupStudyRequest, $root.google.cloud.aiplatform.v1.Study, request, callback); + }, "name", { value: "LookupStudy" }); + + /** + * Calls LookupStudy. + * @function lookupStudy + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ILookupStudyRequest} request LookupStudyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#suggestTrials}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef SuggestTrialsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls SuggestTrials. + * @function suggestTrials + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ISuggestTrialsRequest} request SuggestTrialsRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.SuggestTrialsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.suggestTrials = function suggestTrials(request, callback) { + return this.rpcCall(suggestTrials, $root.google.cloud.aiplatform.v1.SuggestTrialsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "SuggestTrials" }); + + /** + * Calls SuggestTrials. + * @function suggestTrials + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ISuggestTrialsRequest} request SuggestTrialsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#createTrial}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef CreateTrialCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Trial} [response] Trial + */ + + /** + * Calls CreateTrial. + * @function createTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrialRequest} request CreateTrialRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.CreateTrialCallback} callback Node-style callback called with the error, if any, and Trial + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.createTrial = function createTrial(request, callback) { + return this.rpcCall(createTrial, $root.google.cloud.aiplatform.v1.CreateTrialRequest, $root.google.cloud.aiplatform.v1.Trial, request, callback); + }, "name", { value: "CreateTrial" }); + + /** + * Calls CreateTrial. + * @function createTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrialRequest} request CreateTrialRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#getTrial}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef GetTrialCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Trial} [response] Trial + */ + + /** + * Calls GetTrial. + * @function getTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrialRequest} request GetTrialRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.GetTrialCallback} callback Node-style callback called with the error, if any, and Trial + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.getTrial = function getTrial(request, callback) { + return this.rpcCall(getTrial, $root.google.cloud.aiplatform.v1.GetTrialRequest, $root.google.cloud.aiplatform.v1.Trial, request, callback); + }, "name", { value: "GetTrial" }); + + /** + * Calls GetTrial. + * @function getTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrialRequest} request GetTrialRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#listTrials}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef ListTrialsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListTrialsResponse} [response] ListTrialsResponse + */ + + /** + * Calls ListTrials. + * @function listTrials + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrialsRequest} request ListTrialsRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.ListTrialsCallback} callback Node-style callback called with the error, if any, and ListTrialsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.listTrials = function listTrials(request, callback) { + return this.rpcCall(listTrials, $root.google.cloud.aiplatform.v1.ListTrialsRequest, $root.google.cloud.aiplatform.v1.ListTrialsResponse, request, callback); + }, "name", { value: "ListTrials" }); + + /** + * Calls ListTrials. + * @function listTrials + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrialsRequest} request ListTrialsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#addTrialMeasurement}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef AddTrialMeasurementCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Trial} [response] Trial + */ + + /** + * Calls AddTrialMeasurement. + * @function addTrialMeasurement + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IAddTrialMeasurementRequest} request AddTrialMeasurementRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.AddTrialMeasurementCallback} callback Node-style callback called with the error, if any, and Trial + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.addTrialMeasurement = function addTrialMeasurement(request, callback) { + return this.rpcCall(addTrialMeasurement, $root.google.cloud.aiplatform.v1.AddTrialMeasurementRequest, $root.google.cloud.aiplatform.v1.Trial, request, callback); + }, "name", { value: "AddTrialMeasurement" }); + + /** + * Calls AddTrialMeasurement. + * @function addTrialMeasurement + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IAddTrialMeasurementRequest} request AddTrialMeasurementRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#completeTrial}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef CompleteTrialCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Trial} [response] Trial + */ + + /** + * Calls CompleteTrial. + * @function completeTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICompleteTrialRequest} request CompleteTrialRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.CompleteTrialCallback} callback Node-style callback called with the error, if any, and Trial + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.completeTrial = function completeTrial(request, callback) { + return this.rpcCall(completeTrial, $root.google.cloud.aiplatform.v1.CompleteTrialRequest, $root.google.cloud.aiplatform.v1.Trial, request, callback); + }, "name", { value: "CompleteTrial" }); + + /** + * Calls CompleteTrial. + * @function completeTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICompleteTrialRequest} request CompleteTrialRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#deleteTrial}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef DeleteTrialCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteTrial. + * @function deleteTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrialRequest} request DeleteTrialRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.DeleteTrialCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.deleteTrial = function deleteTrial(request, callback) { + return this.rpcCall(deleteTrial, $root.google.cloud.aiplatform.v1.DeleteTrialRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteTrial" }); + + /** + * Calls DeleteTrial. + * @function deleteTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrialRequest} request DeleteTrialRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#checkTrialEarlyStoppingState}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef CheckTrialEarlyStoppingStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CheckTrialEarlyStoppingState. + * @function checkTrialEarlyStoppingState + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest} request CheckTrialEarlyStoppingStateRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingStateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.checkTrialEarlyStoppingState = function checkTrialEarlyStoppingState(request, callback) { + return this.rpcCall(checkTrialEarlyStoppingState, $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CheckTrialEarlyStoppingState" }); + + /** + * Calls CheckTrialEarlyStoppingState. + * @function checkTrialEarlyStoppingState + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest} request CheckTrialEarlyStoppingStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#stopTrial}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef StopTrialCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Trial} [response] Trial + */ + + /** + * Calls StopTrial. + * @function stopTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IStopTrialRequest} request StopTrialRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.StopTrialCallback} callback Node-style callback called with the error, if any, and Trial + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.stopTrial = function stopTrial(request, callback) { + return this.rpcCall(stopTrial, $root.google.cloud.aiplatform.v1.StopTrialRequest, $root.google.cloud.aiplatform.v1.Trial, request, callback); + }, "name", { value: "StopTrial" }); + + /** + * Calls StopTrial. + * @function stopTrial + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IStopTrialRequest} request StopTrialRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService#listOptimalTrials}. + * @memberof google.cloud.aiplatform.v1.VizierService + * @typedef ListOptimalTrialsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListOptimalTrialsResponse} [response] ListOptimalTrialsResponse + */ + + /** + * Calls ListOptimalTrials. + * @function listOptimalTrials + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsRequest} request ListOptimalTrialsRequest message or plain object + * @param {google.cloud.aiplatform.v1.VizierService.ListOptimalTrialsCallback} callback Node-style callback called with the error, if any, and ListOptimalTrialsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VizierService.prototype.listOptimalTrials = function listOptimalTrials(request, callback) { + return this.rpcCall(listOptimalTrials, $root.google.cloud.aiplatform.v1.ListOptimalTrialsRequest, $root.google.cloud.aiplatform.v1.ListOptimalTrialsResponse, request, callback); + }, "name", { value: "ListOptimalTrials" }); + + /** + * Calls ListOptimalTrials. + * @function listOptimalTrials + * @memberof google.cloud.aiplatform.v1.VizierService + * @instance + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsRequest} request ListOptimalTrialsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return VizierService; + })(); + + v1.GetStudyRequest = (function() { + + /** + * Properties of a GetStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetStudyRequest + * @property {string|null} [name] GetStudyRequest name + */ + + /** + * Constructs a new GetStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetStudyRequest. + * @implements IGetStudyRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetStudyRequest=} [properties] Properties to set + */ + function GetStudyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetStudyRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @instance + */ + GetStudyRequest.prototype.name = ""; + + /** + * Creates a new GetStudyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetStudyRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetStudyRequest} GetStudyRequest instance + */ + GetStudyRequest.create = function create(properties) { + return new GetStudyRequest(properties); + }; + + /** + * Encodes the specified GetStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetStudyRequest} message GetStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetStudyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetStudyRequest} message GetStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetStudyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetStudyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetStudyRequest} GetStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetStudyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetStudyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetStudyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetStudyRequest} GetStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetStudyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetStudyRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetStudyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetStudyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetStudyRequest} GetStudyRequest + */ + GetStudyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetStudyRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetStudyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetStudyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.GetStudyRequest} message GetStudyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetStudyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetStudyRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetStudyRequest + * @instance + * @returns {Object.} JSON object + */ + GetStudyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetStudyRequest; + })(); + + v1.CreateStudyRequest = (function() { + + /** + * Properties of a CreateStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateStudyRequest + * @property {string|null} [parent] CreateStudyRequest parent + * @property {google.cloud.aiplatform.v1.IStudy|null} [study] CreateStudyRequest study + */ + + /** + * Constructs a new CreateStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateStudyRequest. + * @implements ICreateStudyRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateStudyRequest=} [properties] Properties to set + */ + function CreateStudyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateStudyRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @instance + */ + CreateStudyRequest.prototype.parent = ""; + + /** + * CreateStudyRequest study. + * @member {google.cloud.aiplatform.v1.IStudy|null|undefined} study + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @instance + */ + CreateStudyRequest.prototype.study = null; + + /** + * Creates a new CreateStudyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateStudyRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateStudyRequest} CreateStudyRequest instance + */ + CreateStudyRequest.create = function create(properties) { + return new CreateStudyRequest(properties); + }; + + /** + * Encodes the specified CreateStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateStudyRequest} message CreateStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateStudyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.study != null && Object.hasOwnProperty.call(message, "study")) + $root.google.cloud.aiplatform.v1.Study.encode(message.study, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateStudyRequest} message CreateStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateStudyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateStudyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateStudyRequest} CreateStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateStudyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateStudyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.study = $root.google.cloud.aiplatform.v1.Study.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateStudyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateStudyRequest} CreateStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateStudyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateStudyRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateStudyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.study != null && message.hasOwnProperty("study")) { + var error = $root.google.cloud.aiplatform.v1.Study.verify(message.study); + if (error) + return "study." + error; + } + return null; + }; + + /** + * Creates a CreateStudyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateStudyRequest} CreateStudyRequest + */ + CreateStudyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateStudyRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateStudyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.study != null) { + if (typeof object.study !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateStudyRequest.study: object expected"); + message.study = $root.google.cloud.aiplatform.v1.Study.fromObject(object.study); + } + return message; + }; + + /** + * Creates a plain object from a CreateStudyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateStudyRequest} message CreateStudyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateStudyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.study = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.study != null && message.hasOwnProperty("study")) + object.study = $root.google.cloud.aiplatform.v1.Study.toObject(message.study, options); + return object; + }; + + /** + * Converts this CreateStudyRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateStudyRequest + * @instance + * @returns {Object.} JSON object + */ + CreateStudyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateStudyRequest; + })(); + + v1.ListStudiesRequest = (function() { + + /** + * Properties of a ListStudiesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListStudiesRequest + * @property {string|null} [parent] ListStudiesRequest parent + * @property {string|null} [pageToken] ListStudiesRequest pageToken + * @property {number|null} [pageSize] ListStudiesRequest pageSize + */ + + /** + * Constructs a new ListStudiesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListStudiesRequest. + * @implements IListStudiesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListStudiesRequest=} [properties] Properties to set + */ + function ListStudiesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListStudiesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @instance + */ + ListStudiesRequest.prototype.parent = ""; + + /** + * ListStudiesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @instance + */ + ListStudiesRequest.prototype.pageToken = ""; + + /** + * ListStudiesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @instance + */ + ListStudiesRequest.prototype.pageSize = 0; + + /** + * Creates a new ListStudiesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListStudiesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListStudiesRequest} ListStudiesRequest instance + */ + ListStudiesRequest.create = function create(properties) { + return new ListStudiesRequest(properties); + }; + + /** + * Encodes the specified ListStudiesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListStudiesRequest} message ListStudiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListStudiesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + return writer; + }; + + /** + * Encodes the specified ListStudiesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListStudiesRequest} message ListStudiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListStudiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListStudiesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListStudiesRequest} ListStudiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListStudiesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListStudiesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageToken = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListStudiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListStudiesRequest} ListStudiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListStudiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListStudiesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListStudiesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + return null; + }; + + /** + * Creates a ListStudiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListStudiesRequest} ListStudiesRequest + */ + ListStudiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListStudiesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListStudiesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + return message; + }; + + /** + * Creates a plain object from a ListStudiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListStudiesRequest} message ListStudiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListStudiesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageToken = ""; + object.pageSize = 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + return object; + }; + + /** + * Converts this ListStudiesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListStudiesRequest + * @instance + * @returns {Object.} JSON object + */ + ListStudiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListStudiesRequest; + })(); + + v1.ListStudiesResponse = (function() { + + /** + * Properties of a ListStudiesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListStudiesResponse + * @property {Array.|null} [studies] ListStudiesResponse studies + * @property {string|null} [nextPageToken] ListStudiesResponse nextPageToken + */ + + /** + * Constructs a new ListStudiesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListStudiesResponse. + * @implements IListStudiesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListStudiesResponse=} [properties] Properties to set + */ + function ListStudiesResponse(properties) { + this.studies = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListStudiesResponse studies. + * @member {Array.} studies + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @instance + */ + ListStudiesResponse.prototype.studies = $util.emptyArray; + + /** + * ListStudiesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @instance + */ + ListStudiesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListStudiesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListStudiesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListStudiesResponse} ListStudiesResponse instance + */ + ListStudiesResponse.create = function create(properties) { + return new ListStudiesResponse(properties); + }; + + /** + * Encodes the specified ListStudiesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListStudiesResponse} message ListStudiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListStudiesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.studies != null && message.studies.length) + for (var i = 0; i < message.studies.length; ++i) + $root.google.cloud.aiplatform.v1.Study.encode(message.studies[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListStudiesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListStudiesResponse} message ListStudiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListStudiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListStudiesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListStudiesResponse} ListStudiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListStudiesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListStudiesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.studies && message.studies.length)) + message.studies = []; + message.studies.push($root.google.cloud.aiplatform.v1.Study.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListStudiesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListStudiesResponse} ListStudiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListStudiesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListStudiesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListStudiesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.studies != null && message.hasOwnProperty("studies")) { + if (!Array.isArray(message.studies)) + return "studies: array expected"; + for (var i = 0; i < message.studies.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Study.verify(message.studies[i]); + if (error) + return "studies." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListStudiesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListStudiesResponse} ListStudiesResponse + */ + ListStudiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListStudiesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListStudiesResponse(); + if (object.studies) { + if (!Array.isArray(object.studies)) + throw TypeError(".google.cloud.aiplatform.v1.ListStudiesResponse.studies: array expected"); + message.studies = []; + for (var i = 0; i < object.studies.length; ++i) { + if (typeof object.studies[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListStudiesResponse.studies: object expected"); + message.studies[i] = $root.google.cloud.aiplatform.v1.Study.fromObject(object.studies[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListStudiesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @static + * @param {google.cloud.aiplatform.v1.ListStudiesResponse} message ListStudiesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListStudiesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.studies = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.studies && message.studies.length) { + object.studies = []; + for (var j = 0; j < message.studies.length; ++j) + object.studies[j] = $root.google.cloud.aiplatform.v1.Study.toObject(message.studies[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListStudiesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListStudiesResponse + * @instance + * @returns {Object.} JSON object + */ + ListStudiesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListStudiesResponse; + })(); + + v1.DeleteStudyRequest = (function() { + + /** + * Properties of a DeleteStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteStudyRequest + * @property {string|null} [name] DeleteStudyRequest name + */ + + /** + * Constructs a new DeleteStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteStudyRequest. + * @implements IDeleteStudyRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteStudyRequest=} [properties] Properties to set + */ + function DeleteStudyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteStudyRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @instance + */ + DeleteStudyRequest.prototype.name = ""; + + /** + * Creates a new DeleteStudyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteStudyRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteStudyRequest} DeleteStudyRequest instance + */ + DeleteStudyRequest.create = function create(properties) { + return new DeleteStudyRequest(properties); + }; + + /** + * Encodes the specified DeleteStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteStudyRequest} message DeleteStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteStudyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteStudyRequest} message DeleteStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteStudyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteStudyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteStudyRequest} DeleteStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteStudyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteStudyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteStudyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteStudyRequest} DeleteStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteStudyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteStudyRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteStudyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteStudyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteStudyRequest} DeleteStudyRequest + */ + DeleteStudyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteStudyRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteStudyRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteStudyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteStudyRequest} message DeleteStudyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteStudyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteStudyRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteStudyRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteStudyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteStudyRequest; + })(); + + v1.LookupStudyRequest = (function() { + + /** + * Properties of a LookupStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ILookupStudyRequest + * @property {string|null} [parent] LookupStudyRequest parent + * @property {string|null} [displayName] LookupStudyRequest displayName + */ + + /** + * Constructs a new LookupStudyRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a LookupStudyRequest. + * @implements ILookupStudyRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ILookupStudyRequest=} [properties] Properties to set + */ + function LookupStudyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LookupStudyRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @instance + */ + LookupStudyRequest.prototype.parent = ""; + + /** + * LookupStudyRequest displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @instance + */ + LookupStudyRequest.prototype.displayName = ""; + + /** + * Creates a new LookupStudyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.ILookupStudyRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LookupStudyRequest} LookupStudyRequest instance + */ + LookupStudyRequest.create = function create(properties) { + return new LookupStudyRequest(properties); + }; + + /** + * Encodes the specified LookupStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.ILookupStudyRequest} message LookupStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupStudyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified LookupStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.ILookupStudyRequest} message LookupStudyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupStudyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LookupStudyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.LookupStudyRequest} LookupStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupStudyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.LookupStudyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LookupStudyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.LookupStudyRequest} LookupStudyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupStudyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LookupStudyRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LookupStudyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a LookupStudyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.LookupStudyRequest} LookupStudyRequest + */ + LookupStudyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LookupStudyRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.LookupStudyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a LookupStudyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @static + * @param {google.cloud.aiplatform.v1.LookupStudyRequest} message LookupStudyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LookupStudyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.displayName = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this LookupStudyRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.LookupStudyRequest + * @instance + * @returns {Object.} JSON object + */ + LookupStudyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LookupStudyRequest; + })(); + + v1.SuggestTrialsRequest = (function() { + + /** + * Properties of a SuggestTrialsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ISuggestTrialsRequest + * @property {string|null} [parent] SuggestTrialsRequest parent + * @property {number|null} [suggestionCount] SuggestTrialsRequest suggestionCount + * @property {string|null} [clientId] SuggestTrialsRequest clientId + */ + + /** + * Constructs a new SuggestTrialsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SuggestTrialsRequest. + * @implements ISuggestTrialsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ISuggestTrialsRequest=} [properties] Properties to set + */ + function SuggestTrialsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SuggestTrialsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @instance + */ + SuggestTrialsRequest.prototype.parent = ""; + + /** + * SuggestTrialsRequest suggestionCount. + * @member {number} suggestionCount + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @instance + */ + SuggestTrialsRequest.prototype.suggestionCount = 0; + + /** + * SuggestTrialsRequest clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @instance + */ + SuggestTrialsRequest.prototype.clientId = ""; + + /** + * Creates a new SuggestTrialsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SuggestTrialsRequest} SuggestTrialsRequest instance + */ + SuggestTrialsRequest.create = function create(properties) { + return new SuggestTrialsRequest(properties); + }; + + /** + * Encodes the specified SuggestTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsRequest} message SuggestTrialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuggestTrialsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.suggestionCount != null && Object.hasOwnProperty.call(message, "suggestionCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.suggestionCount); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientId); + return writer; + }; + + /** + * Encodes the specified SuggestTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsRequest} message SuggestTrialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuggestTrialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SuggestTrialsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SuggestTrialsRequest} SuggestTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuggestTrialsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SuggestTrialsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.suggestionCount = reader.int32(); + break; + case 3: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SuggestTrialsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SuggestTrialsRequest} SuggestTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuggestTrialsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SuggestTrialsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SuggestTrialsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.suggestionCount != null && message.hasOwnProperty("suggestionCount")) + if (!$util.isInteger(message.suggestionCount)) + return "suggestionCount: integer expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + return null; + }; + + /** + * Creates a SuggestTrialsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SuggestTrialsRequest} SuggestTrialsRequest + */ + SuggestTrialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SuggestTrialsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.SuggestTrialsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.suggestionCount != null) + message.suggestionCount = object.suggestionCount | 0; + if (object.clientId != null) + message.clientId = String(object.clientId); + return message; + }; + + /** + * Creates a plain object from a SuggestTrialsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.SuggestTrialsRequest} message SuggestTrialsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SuggestTrialsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.suggestionCount = 0; + object.clientId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.suggestionCount != null && message.hasOwnProperty("suggestionCount")) + object.suggestionCount = message.suggestionCount; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + return object; + }; + + /** + * Converts this SuggestTrialsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SuggestTrialsRequest + * @instance + * @returns {Object.} JSON object + */ + SuggestTrialsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SuggestTrialsRequest; + })(); + + v1.SuggestTrialsResponse = (function() { + + /** + * Properties of a SuggestTrialsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface ISuggestTrialsResponse + * @property {Array.|null} [trials] SuggestTrialsResponse trials + * @property {google.cloud.aiplatform.v1.Study.State|null} [studyState] SuggestTrialsResponse studyState + * @property {google.protobuf.ITimestamp|null} [startTime] SuggestTrialsResponse startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SuggestTrialsResponse endTime + */ + + /** + * Constructs a new SuggestTrialsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SuggestTrialsResponse. + * @implements ISuggestTrialsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.ISuggestTrialsResponse=} [properties] Properties to set + */ + function SuggestTrialsResponse(properties) { + this.trials = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SuggestTrialsResponse trials. + * @member {Array.} trials + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @instance + */ + SuggestTrialsResponse.prototype.trials = $util.emptyArray; + + /** + * SuggestTrialsResponse studyState. + * @member {google.cloud.aiplatform.v1.Study.State} studyState + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @instance + */ + SuggestTrialsResponse.prototype.studyState = 0; + + /** + * SuggestTrialsResponse startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @instance + */ + SuggestTrialsResponse.prototype.startTime = null; + + /** + * SuggestTrialsResponse endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @instance + */ + SuggestTrialsResponse.prototype.endTime = null; + + /** + * Creates a new SuggestTrialsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SuggestTrialsResponse} SuggestTrialsResponse instance + */ + SuggestTrialsResponse.create = function create(properties) { + return new SuggestTrialsResponse(properties); + }; + + /** + * Encodes the specified SuggestTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsResponse} message SuggestTrialsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuggestTrialsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trials != null && message.trials.length) + for (var i = 0; i < message.trials.length; ++i) + $root.google.cloud.aiplatform.v1.Trial.encode(message.trials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.studyState != null && Object.hasOwnProperty.call(message, "studyState")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.studyState); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SuggestTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsResponse} message SuggestTrialsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuggestTrialsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SuggestTrialsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SuggestTrialsResponse} SuggestTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuggestTrialsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SuggestTrialsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.trials && message.trials.length)) + message.trials = []; + message.trials.push($root.google.cloud.aiplatform.v1.Trial.decode(reader, reader.uint32())); + break; + case 2: + message.studyState = reader.int32(); + break; + case 3: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SuggestTrialsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SuggestTrialsResponse} SuggestTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuggestTrialsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SuggestTrialsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SuggestTrialsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trials != null && message.hasOwnProperty("trials")) { + if (!Array.isArray(message.trials)) + return "trials: array expected"; + for (var i = 0; i < message.trials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Trial.verify(message.trials[i]); + if (error) + return "trials." + error; + } + } + if (message.studyState != null && message.hasOwnProperty("studyState")) + switch (message.studyState) { + default: + return "studyState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a SuggestTrialsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SuggestTrialsResponse} SuggestTrialsResponse + */ + SuggestTrialsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SuggestTrialsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.SuggestTrialsResponse(); + if (object.trials) { + if (!Array.isArray(object.trials)) + throw TypeError(".google.cloud.aiplatform.v1.SuggestTrialsResponse.trials: array expected"); + message.trials = []; + for (var i = 0; i < object.trials.length; ++i) { + if (typeof object.trials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SuggestTrialsResponse.trials: object expected"); + message.trials[i] = $root.google.cloud.aiplatform.v1.Trial.fromObject(object.trials[i]); + } + } + switch (object.studyState) { + case "STATE_UNSPECIFIED": + case 0: + message.studyState = 0; + break; + case "ACTIVE": + case 1: + message.studyState = 1; + break; + case "INACTIVE": + case 2: + message.studyState = 2; + break; + case "COMPLETED": + case 3: + message.studyState = 3; + break; + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SuggestTrialsResponse.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SuggestTrialsResponse.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a SuggestTrialsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.SuggestTrialsResponse} message SuggestTrialsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SuggestTrialsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.trials = []; + if (options.defaults) { + object.studyState = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.startTime = null; + object.endTime = null; + } + if (message.trials && message.trials.length) { + object.trials = []; + for (var j = 0; j < message.trials.length; ++j) + object.trials[j] = $root.google.cloud.aiplatform.v1.Trial.toObject(message.trials[j], options); + } + if (message.studyState != null && message.hasOwnProperty("studyState")) + object.studyState = options.enums === String ? $root.google.cloud.aiplatform.v1.Study.State[message.studyState] : message.studyState; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this SuggestTrialsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SuggestTrialsResponse + * @instance + * @returns {Object.} JSON object + */ + SuggestTrialsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SuggestTrialsResponse; + })(); + + v1.SuggestTrialsMetadata = (function() { + + /** + * Properties of a SuggestTrialsMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface ISuggestTrialsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] SuggestTrialsMetadata genericMetadata + * @property {string|null} [clientId] SuggestTrialsMetadata clientId + */ + + /** + * Constructs a new SuggestTrialsMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SuggestTrialsMetadata. + * @implements ISuggestTrialsMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ISuggestTrialsMetadata=} [properties] Properties to set + */ + function SuggestTrialsMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SuggestTrialsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @instance + */ + SuggestTrialsMetadata.prototype.genericMetadata = null; + + /** + * SuggestTrialsMetadata clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @instance + */ + SuggestTrialsMetadata.prototype.clientId = ""; + + /** + * Creates a new SuggestTrialsMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SuggestTrialsMetadata} SuggestTrialsMetadata instance + */ + SuggestTrialsMetadata.create = function create(properties) { + return new SuggestTrialsMetadata(properties); + }; + + /** + * Encodes the specified SuggestTrialsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsMetadata} message SuggestTrialsMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuggestTrialsMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientId); + return writer; + }; + + /** + * Encodes the specified SuggestTrialsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {google.cloud.aiplatform.v1.ISuggestTrialsMetadata} message SuggestTrialsMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuggestTrialsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SuggestTrialsMetadata} SuggestTrialsMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuggestTrialsMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SuggestTrialsMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SuggestTrialsMetadata} SuggestTrialsMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuggestTrialsMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SuggestTrialsMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SuggestTrialsMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + return null; + }; + + /** + * Creates a SuggestTrialsMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SuggestTrialsMetadata} SuggestTrialsMetadata + */ + SuggestTrialsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SuggestTrialsMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.SuggestTrialsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SuggestTrialsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.clientId != null) + message.clientId = String(object.clientId); + return message; + }; + + /** + * Creates a plain object from a SuggestTrialsMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @static + * @param {google.cloud.aiplatform.v1.SuggestTrialsMetadata} message SuggestTrialsMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SuggestTrialsMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.clientId = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + return object; + }; + + /** + * Converts this SuggestTrialsMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SuggestTrialsMetadata + * @instance + * @returns {Object.} JSON object + */ + SuggestTrialsMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SuggestTrialsMetadata; + })(); + + v1.CreateTrialRequest = (function() { + + /** + * Properties of a CreateTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateTrialRequest + * @property {string|null} [parent] CreateTrialRequest parent + * @property {google.cloud.aiplatform.v1.ITrial|null} [trial] CreateTrialRequest trial + */ + + /** + * Constructs a new CreateTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateTrialRequest. + * @implements ICreateTrialRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateTrialRequest=} [properties] Properties to set + */ + function CreateTrialRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTrialRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @instance + */ + CreateTrialRequest.prototype.parent = ""; + + /** + * CreateTrialRequest trial. + * @member {google.cloud.aiplatform.v1.ITrial|null|undefined} trial + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @instance + */ + CreateTrialRequest.prototype.trial = null; + + /** + * Creates a new CreateTrialRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrialRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateTrialRequest} CreateTrialRequest instance + */ + CreateTrialRequest.create = function create(properties) { + return new CreateTrialRequest(properties); + }; + + /** + * Encodes the specified CreateTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrialRequest} message CreateTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTrialRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.trial != null && Object.hasOwnProperty.call(message, "trial")) + $root.google.cloud.aiplatform.v1.Trial.encode(message.trial, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrialRequest} message CreateTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTrialRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateTrialRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateTrialRequest} CreateTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTrialRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateTrialRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.trial = $root.google.cloud.aiplatform.v1.Trial.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateTrialRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateTrialRequest} CreateTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTrialRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateTrialRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTrialRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.trial != null && message.hasOwnProperty("trial")) { + var error = $root.google.cloud.aiplatform.v1.Trial.verify(message.trial); + if (error) + return "trial." + error; + } + return null; + }; + + /** + * Creates a CreateTrialRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateTrialRequest} CreateTrialRequest + */ + CreateTrialRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrialRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateTrialRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.trial != null) { + if (typeof object.trial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateTrialRequest.trial: object expected"); + message.trial = $root.google.cloud.aiplatform.v1.Trial.fromObject(object.trial); + } + return message; + }; + + /** + * Creates a plain object from a CreateTrialRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateTrialRequest} message CreateTrialRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateTrialRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.trial = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.trial != null && message.hasOwnProperty("trial")) + object.trial = $root.google.cloud.aiplatform.v1.Trial.toObject(message.trial, options); + return object; + }; + + /** + * Converts this CreateTrialRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateTrialRequest + * @instance + * @returns {Object.} JSON object + */ + CreateTrialRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateTrialRequest; + })(); + + v1.GetTrialRequest = (function() { + + /** + * Properties of a GetTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetTrialRequest + * @property {string|null} [name] GetTrialRequest name + */ + + /** + * Constructs a new GetTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetTrialRequest. + * @implements IGetTrialRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetTrialRequest=} [properties] Properties to set + */ + function GetTrialRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTrialRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @instance + */ + GetTrialRequest.prototype.name = ""; + + /** + * Creates a new GetTrialRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetTrialRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetTrialRequest} GetTrialRequest instance + */ + GetTrialRequest.create = function create(properties) { + return new GetTrialRequest(properties); + }; + + /** + * Encodes the specified GetTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetTrialRequest} message GetTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTrialRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetTrialRequest} message GetTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTrialRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetTrialRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetTrialRequest} GetTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTrialRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrialRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetTrialRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetTrialRequest} GetTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTrialRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetTrialRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTrialRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetTrialRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetTrialRequest} GetTrialRequest + */ + GetTrialRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetTrialRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetTrialRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetTrialRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.GetTrialRequest} message GetTrialRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetTrialRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetTrialRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetTrialRequest + * @instance + * @returns {Object.} JSON object + */ + GetTrialRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetTrialRequest; + })(); + + v1.ListTrialsRequest = (function() { + + /** + * Properties of a ListTrialsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListTrialsRequest + * @property {string|null} [parent] ListTrialsRequest parent + * @property {string|null} [pageToken] ListTrialsRequest pageToken + * @property {number|null} [pageSize] ListTrialsRequest pageSize + */ + + /** + * Constructs a new ListTrialsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListTrialsRequest. + * @implements IListTrialsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListTrialsRequest=} [properties] Properties to set + */ + function ListTrialsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListTrialsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @instance + */ + ListTrialsRequest.prototype.parent = ""; + + /** + * ListTrialsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @instance + */ + ListTrialsRequest.prototype.pageToken = ""; + + /** + * ListTrialsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @instance + */ + ListTrialsRequest.prototype.pageSize = 0; + + /** + * Creates a new ListTrialsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListTrialsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrialsRequest} ListTrialsRequest instance + */ + ListTrialsRequest.create = function create(properties) { + return new ListTrialsRequest(properties); + }; + + /** + * Encodes the specified ListTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListTrialsRequest} message ListTrialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrialsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + return writer; + }; + + /** + * Encodes the specified ListTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListTrialsRequest} message ListTrialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListTrialsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListTrialsRequest} ListTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTrialsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrialsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageToken = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListTrialsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListTrialsRequest} ListTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTrialsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTrialsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTrialsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + return null; + }; + + /** + * Creates a ListTrialsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListTrialsRequest} ListTrialsRequest + */ + ListTrialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrialsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListTrialsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + return message; + }; + + /** + * Creates a plain object from a ListTrialsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.ListTrialsRequest} message ListTrialsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTrialsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageToken = ""; + object.pageSize = 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + return object; + }; + + /** + * Converts this ListTrialsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListTrialsRequest + * @instance + * @returns {Object.} JSON object + */ + ListTrialsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListTrialsRequest; + })(); + + v1.ListTrialsResponse = (function() { + + /** + * Properties of a ListTrialsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListTrialsResponse + * @property {Array.|null} [trials] ListTrialsResponse trials + * @property {string|null} [nextPageToken] ListTrialsResponse nextPageToken + */ + + /** + * Constructs a new ListTrialsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListTrialsResponse. + * @implements IListTrialsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListTrialsResponse=} [properties] Properties to set + */ + function ListTrialsResponse(properties) { + this.trials = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListTrialsResponse trials. + * @member {Array.} trials + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @instance + */ + ListTrialsResponse.prototype.trials = $util.emptyArray; + + /** + * ListTrialsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @instance + */ + ListTrialsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListTrialsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListTrialsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrialsResponse} ListTrialsResponse instance + */ + ListTrialsResponse.create = function create(properties) { + return new ListTrialsResponse(properties); + }; + + /** + * Encodes the specified ListTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListTrialsResponse} message ListTrialsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrialsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trials != null && message.trials.length) + for (var i = 0; i < message.trials.length; ++i) + $root.google.cloud.aiplatform.v1.Trial.encode(message.trials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListTrialsResponse} message ListTrialsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrialsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListTrialsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListTrialsResponse} ListTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTrialsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrialsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.trials && message.trials.length)) + message.trials = []; + message.trials.push($root.google.cloud.aiplatform.v1.Trial.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListTrialsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListTrialsResponse} ListTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTrialsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTrialsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTrialsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trials != null && message.hasOwnProperty("trials")) { + if (!Array.isArray(message.trials)) + return "trials: array expected"; + for (var i = 0; i < message.trials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Trial.verify(message.trials[i]); + if (error) + return "trials." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListTrialsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListTrialsResponse} ListTrialsResponse + */ + ListTrialsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrialsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListTrialsResponse(); + if (object.trials) { + if (!Array.isArray(object.trials)) + throw TypeError(".google.cloud.aiplatform.v1.ListTrialsResponse.trials: array expected"); + message.trials = []; + for (var i = 0; i < object.trials.length; ++i) { + if (typeof object.trials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListTrialsResponse.trials: object expected"); + message.trials[i] = $root.google.cloud.aiplatform.v1.Trial.fromObject(object.trials[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListTrialsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListTrialsResponse} message ListTrialsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTrialsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.trials = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.trials && message.trials.length) { + object.trials = []; + for (var j = 0; j < message.trials.length; ++j) + object.trials[j] = $root.google.cloud.aiplatform.v1.Trial.toObject(message.trials[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListTrialsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListTrialsResponse + * @instance + * @returns {Object.} JSON object + */ + ListTrialsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListTrialsResponse; + })(); + + v1.AddTrialMeasurementRequest = (function() { + + /** + * Properties of an AddTrialMeasurementRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IAddTrialMeasurementRequest + * @property {string|null} [trialName] AddTrialMeasurementRequest trialName + * @property {google.cloud.aiplatform.v1.IMeasurement|null} [measurement] AddTrialMeasurementRequest measurement + */ + + /** + * Constructs a new AddTrialMeasurementRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an AddTrialMeasurementRequest. + * @implements IAddTrialMeasurementRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IAddTrialMeasurementRequest=} [properties] Properties to set + */ + function AddTrialMeasurementRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AddTrialMeasurementRequest trialName. + * @member {string} trialName + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @instance + */ + AddTrialMeasurementRequest.prototype.trialName = ""; + + /** + * AddTrialMeasurementRequest measurement. + * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} measurement + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @instance + */ + AddTrialMeasurementRequest.prototype.measurement = null; + + /** + * Creates a new AddTrialMeasurementRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddTrialMeasurementRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddTrialMeasurementRequest} AddTrialMeasurementRequest instance + */ + AddTrialMeasurementRequest.create = function create(properties) { + return new AddTrialMeasurementRequest(properties); + }; + + /** + * Encodes the specified AddTrialMeasurementRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddTrialMeasurementRequest} message AddTrialMeasurementRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddTrialMeasurementRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trialName != null && Object.hasOwnProperty.call(message, "trialName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trialName); + if (message.measurement != null && Object.hasOwnProperty.call(message, "measurement")) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.measurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddTrialMeasurementRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddTrialMeasurementRequest} message AddTrialMeasurementRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddTrialMeasurementRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.AddTrialMeasurementRequest} AddTrialMeasurementRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddTrialMeasurementRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddTrialMeasurementRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trialName = reader.string(); + break; + case 3: + message.measurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.AddTrialMeasurementRequest} AddTrialMeasurementRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddTrialMeasurementRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddTrialMeasurementRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddTrialMeasurementRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trialName != null && message.hasOwnProperty("trialName")) + if (!$util.isString(message.trialName)) + return "trialName: string expected"; + if (message.measurement != null && message.hasOwnProperty("measurement")) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.measurement); + if (error) + return "measurement." + error; + } + return null; + }; + + /** + * Creates an AddTrialMeasurementRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.AddTrialMeasurementRequest} AddTrialMeasurementRequest + */ + AddTrialMeasurementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddTrialMeasurementRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.AddTrialMeasurementRequest(); + if (object.trialName != null) + message.trialName = String(object.trialName); + if (object.measurement != null) { + if (typeof object.measurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1.AddTrialMeasurementRequest.measurement: object expected"); + message.measurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.measurement); + } + return message; + }; + + /** + * Creates a plain object from an AddTrialMeasurementRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @static + * @param {google.cloud.aiplatform.v1.AddTrialMeasurementRequest} message AddTrialMeasurementRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddTrialMeasurementRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trialName = ""; + object.measurement = null; + } + if (message.trialName != null && message.hasOwnProperty("trialName")) + object.trialName = message.trialName; + if (message.measurement != null && message.hasOwnProperty("measurement")) + object.measurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.measurement, options); + return object; + }; + + /** + * Converts this AddTrialMeasurementRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.AddTrialMeasurementRequest + * @instance + * @returns {Object.} JSON object + */ + AddTrialMeasurementRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AddTrialMeasurementRequest; + })(); + + v1.CompleteTrialRequest = (function() { + + /** + * Properties of a CompleteTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICompleteTrialRequest + * @property {string|null} [name] CompleteTrialRequest name + * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] CompleteTrialRequest finalMeasurement + * @property {boolean|null} [trialInfeasible] CompleteTrialRequest trialInfeasible + * @property {string|null} [infeasibleReason] CompleteTrialRequest infeasibleReason + */ + + /** + * Constructs a new CompleteTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CompleteTrialRequest. + * @implements ICompleteTrialRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICompleteTrialRequest=} [properties] Properties to set + */ + function CompleteTrialRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompleteTrialRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @instance + */ + CompleteTrialRequest.prototype.name = ""; + + /** + * CompleteTrialRequest finalMeasurement. + * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @instance + */ + CompleteTrialRequest.prototype.finalMeasurement = null; + + /** + * CompleteTrialRequest trialInfeasible. + * @member {boolean} trialInfeasible + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @instance + */ + CompleteTrialRequest.prototype.trialInfeasible = false; + + /** + * CompleteTrialRequest infeasibleReason. + * @member {string} infeasibleReason + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @instance + */ + CompleteTrialRequest.prototype.infeasibleReason = ""; + + /** + * Creates a new CompleteTrialRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.ICompleteTrialRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CompleteTrialRequest} CompleteTrialRequest instance + */ + CompleteTrialRequest.create = function create(properties) { + return new CompleteTrialRequest(properties); + }; + + /** + * Encodes the specified CompleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.ICompleteTrialRequest} message CompleteTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompleteTrialRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trialInfeasible != null && Object.hasOwnProperty.call(message, "trialInfeasible")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.trialInfeasible); + if (message.infeasibleReason != null && Object.hasOwnProperty.call(message, "infeasibleReason")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.infeasibleReason); + return writer; + }; + + /** + * Encodes the specified CompleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.ICompleteTrialRequest} message CompleteTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompleteTrialRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompleteTrialRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CompleteTrialRequest} CompleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompleteTrialRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CompleteTrialRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + break; + case 3: + message.trialInfeasible = reader.bool(); + break; + case 4: + message.infeasibleReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompleteTrialRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CompleteTrialRequest} CompleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompleteTrialRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompleteTrialRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompleteTrialRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); + if (error) + return "finalMeasurement." + error; + } + if (message.trialInfeasible != null && message.hasOwnProperty("trialInfeasible")) + if (typeof message.trialInfeasible !== "boolean") + return "trialInfeasible: boolean expected"; + if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) + if (!$util.isString(message.infeasibleReason)) + return "infeasibleReason: string expected"; + return null; + }; + + /** + * Creates a CompleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CompleteTrialRequest} CompleteTrialRequest + */ + CompleteTrialRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CompleteTrialRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CompleteTrialRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CompleteTrialRequest.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); + } + if (object.trialInfeasible != null) + message.trialInfeasible = Boolean(object.trialInfeasible); + if (object.infeasibleReason != null) + message.infeasibleReason = String(object.infeasibleReason); + return message; + }; + + /** + * Creates a plain object from a CompleteTrialRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.CompleteTrialRequest} message CompleteTrialRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompleteTrialRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.finalMeasurement = null; + object.trialInfeasible = false; + object.infeasibleReason = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); + if (message.trialInfeasible != null && message.hasOwnProperty("trialInfeasible")) + object.trialInfeasible = message.trialInfeasible; + if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) + object.infeasibleReason = message.infeasibleReason; + return object; + }; + + /** + * Converts this CompleteTrialRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CompleteTrialRequest + * @instance + * @returns {Object.} JSON object + */ + CompleteTrialRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CompleteTrialRequest; + })(); + + v1.DeleteTrialRequest = (function() { + + /** + * Properties of a DeleteTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteTrialRequest + * @property {string|null} [name] DeleteTrialRequest name + */ + + /** + * Constructs a new DeleteTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteTrialRequest. + * @implements IDeleteTrialRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteTrialRequest=} [properties] Properties to set + */ + function DeleteTrialRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteTrialRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @instance + */ + DeleteTrialRequest.prototype.name = ""; + + /** + * Creates a new DeleteTrialRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteTrialRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteTrialRequest} DeleteTrialRequest instance + */ + DeleteTrialRequest.create = function create(properties) { + return new DeleteTrialRequest(properties); + }; + + /** + * Encodes the specified DeleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteTrialRequest} message DeleteTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTrialRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteTrialRequest} message DeleteTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTrialRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteTrialRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteTrialRequest} DeleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteTrialRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteTrialRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteTrialRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteTrialRequest} DeleteTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteTrialRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteTrialRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteTrialRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteTrialRequest} DeleteTrialRequest + */ + DeleteTrialRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrialRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteTrialRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteTrialRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteTrialRequest} message DeleteTrialRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteTrialRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteTrialRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteTrialRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteTrialRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteTrialRequest; + })(); + + v1.CheckTrialEarlyStoppingStateRequest = (function() { + + /** + * Properties of a CheckTrialEarlyStoppingStateRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICheckTrialEarlyStoppingStateRequest + * @property {string|null} [trialName] CheckTrialEarlyStoppingStateRequest trialName + */ + + /** + * Constructs a new CheckTrialEarlyStoppingStateRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CheckTrialEarlyStoppingStateRequest. + * @implements ICheckTrialEarlyStoppingStateRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest=} [properties] Properties to set + */ + function CheckTrialEarlyStoppingStateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CheckTrialEarlyStoppingStateRequest trialName. + * @member {string} trialName + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @instance + */ + CheckTrialEarlyStoppingStateRequest.prototype.trialName = ""; + + /** + * Creates a new CheckTrialEarlyStoppingStateRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest} CheckTrialEarlyStoppingStateRequest instance + */ + CheckTrialEarlyStoppingStateRequest.create = function create(properties) { + return new CheckTrialEarlyStoppingStateRequest(properties); + }; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest} message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckTrialEarlyStoppingStateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trialName != null && Object.hasOwnProperty.call(message, "trialName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trialName); + return writer; + }; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest} message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckTrialEarlyStoppingStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest} CheckTrialEarlyStoppingStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckTrialEarlyStoppingStateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trialName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest} CheckTrialEarlyStoppingStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckTrialEarlyStoppingStateRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CheckTrialEarlyStoppingStateRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckTrialEarlyStoppingStateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trialName != null && message.hasOwnProperty("trialName")) + if (!$util.isString(message.trialName)) + return "trialName: string expected"; + return null; + }; + + /** + * Creates a CheckTrialEarlyStoppingStateRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest} CheckTrialEarlyStoppingStateRequest + */ + CheckTrialEarlyStoppingStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest(); + if (object.trialName != null) + message.trialName = String(object.trialName); + return message; + }; + + /** + * Creates a plain object from a CheckTrialEarlyStoppingStateRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @static + * @param {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest} message CheckTrialEarlyStoppingStateRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckTrialEarlyStoppingStateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.trialName = ""; + if (message.trialName != null && message.hasOwnProperty("trialName")) + object.trialName = message.trialName; + return object; + }; + + /** + * Converts this CheckTrialEarlyStoppingStateRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + * @instance + * @returns {Object.} JSON object + */ + CheckTrialEarlyStoppingStateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CheckTrialEarlyStoppingStateRequest; + })(); + + v1.CheckTrialEarlyStoppingStateResponse = (function() { + + /** + * Properties of a CheckTrialEarlyStoppingStateResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface ICheckTrialEarlyStoppingStateResponse + * @property {boolean|null} [shouldStop] CheckTrialEarlyStoppingStateResponse shouldStop + */ + + /** + * Constructs a new CheckTrialEarlyStoppingStateResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CheckTrialEarlyStoppingStateResponse. + * @implements ICheckTrialEarlyStoppingStateResponse + * @constructor + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse=} [properties] Properties to set + */ + function CheckTrialEarlyStoppingStateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CheckTrialEarlyStoppingStateResponse shouldStop. + * @member {boolean} shouldStop + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @instance + */ + CheckTrialEarlyStoppingStateResponse.prototype.shouldStop = false; + + /** + * Creates a new CheckTrialEarlyStoppingStateResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse} CheckTrialEarlyStoppingStateResponse instance + */ + CheckTrialEarlyStoppingStateResponse.create = function create(properties) { + return new CheckTrialEarlyStoppingStateResponse(properties); + }; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse} message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckTrialEarlyStoppingStateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.shouldStop != null && Object.hasOwnProperty.call(message, "shouldStop")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.shouldStop); + return writer; + }; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse} message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckTrialEarlyStoppingStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse} CheckTrialEarlyStoppingStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckTrialEarlyStoppingStateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.shouldStop = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse} CheckTrialEarlyStoppingStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckTrialEarlyStoppingStateResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CheckTrialEarlyStoppingStateResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckTrialEarlyStoppingStateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.shouldStop != null && message.hasOwnProperty("shouldStop")) + if (typeof message.shouldStop !== "boolean") + return "shouldStop: boolean expected"; + return null; + }; + + /** + * Creates a CheckTrialEarlyStoppingStateResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse} CheckTrialEarlyStoppingStateResponse + */ + CheckTrialEarlyStoppingStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse(); + if (object.shouldStop != null) + message.shouldStop = Boolean(object.shouldStop); + return message; + }; + + /** + * Creates a plain object from a CheckTrialEarlyStoppingStateResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @static + * @param {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse} message CheckTrialEarlyStoppingStateResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckTrialEarlyStoppingStateResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.shouldStop = false; + if (message.shouldStop != null && message.hasOwnProperty("shouldStop")) + object.shouldStop = message.shouldStop; + return object; + }; + + /** + * Converts this CheckTrialEarlyStoppingStateResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + * @instance + * @returns {Object.} JSON object + */ + CheckTrialEarlyStoppingStateResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CheckTrialEarlyStoppingStateResponse; + })(); + + v1.CheckTrialEarlyStoppingStateMetatdata = (function() { + + /** + * Properties of a CheckTrialEarlyStoppingStateMetatdata. + * @memberof google.cloud.aiplatform.v1 + * @interface ICheckTrialEarlyStoppingStateMetatdata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CheckTrialEarlyStoppingStateMetatdata genericMetadata + * @property {string|null} [study] CheckTrialEarlyStoppingStateMetatdata study + * @property {string|null} [trial] CheckTrialEarlyStoppingStateMetatdata trial + */ + + /** + * Constructs a new CheckTrialEarlyStoppingStateMetatdata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CheckTrialEarlyStoppingStateMetatdata. + * @implements ICheckTrialEarlyStoppingStateMetatdata + * @constructor + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata=} [properties] Properties to set + */ + function CheckTrialEarlyStoppingStateMetatdata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CheckTrialEarlyStoppingStateMetatdata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @instance + */ + CheckTrialEarlyStoppingStateMetatdata.prototype.genericMetadata = null; + + /** + * CheckTrialEarlyStoppingStateMetatdata study. + * @member {string} study + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @instance + */ + CheckTrialEarlyStoppingStateMetatdata.prototype.study = ""; + + /** + * CheckTrialEarlyStoppingStateMetatdata trial. + * @member {string} trial + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @instance + */ + CheckTrialEarlyStoppingStateMetatdata.prototype.trial = ""; + + /** + * Creates a new CheckTrialEarlyStoppingStateMetatdata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata} CheckTrialEarlyStoppingStateMetatdata instance + */ + CheckTrialEarlyStoppingStateMetatdata.create = function create(properties) { + return new CheckTrialEarlyStoppingStateMetatdata(properties); + }; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata} message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckTrialEarlyStoppingStateMetatdata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.study != null && Object.hasOwnProperty.call(message, "study")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.study); + if (message.trial != null && Object.hasOwnProperty.call(message, "trial")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.trial); + return writer; + }; + + /** + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata} message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckTrialEarlyStoppingStateMetatdata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata} CheckTrialEarlyStoppingStateMetatdata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckTrialEarlyStoppingStateMetatdata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.study = reader.string(); + break; + case 3: + message.trial = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata} CheckTrialEarlyStoppingStateMetatdata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckTrialEarlyStoppingStateMetatdata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CheckTrialEarlyStoppingStateMetatdata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckTrialEarlyStoppingStateMetatdata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.study != null && message.hasOwnProperty("study")) + if (!$util.isString(message.study)) + return "study: string expected"; + if (message.trial != null && message.hasOwnProperty("trial")) + if (!$util.isString(message.trial)) + return "trial: string expected"; + return null; + }; + + /** + * Creates a CheckTrialEarlyStoppingStateMetatdata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata} CheckTrialEarlyStoppingStateMetatdata + */ + CheckTrialEarlyStoppingStateMetatdata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata) + return object; + var message = new $root.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.study != null) + message.study = String(object.study); + if (object.trial != null) + message.trial = String(object.trial); + return message; + }; + + /** + * Creates a plain object from a CheckTrialEarlyStoppingStateMetatdata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @static + * @param {google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata} message CheckTrialEarlyStoppingStateMetatdata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckTrialEarlyStoppingStateMetatdata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.study = ""; + object.trial = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.study != null && message.hasOwnProperty("study")) + object.study = message.study; + if (message.trial != null && message.hasOwnProperty("trial")) + object.trial = message.trial; + return object; + }; + + /** + * Converts this CheckTrialEarlyStoppingStateMetatdata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + * @instance + * @returns {Object.} JSON object + */ + CheckTrialEarlyStoppingStateMetatdata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CheckTrialEarlyStoppingStateMetatdata; + })(); + + v1.StopTrialRequest = (function() { + + /** + * Properties of a StopTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IStopTrialRequest + * @property {string|null} [name] StopTrialRequest name + */ + + /** + * Constructs a new StopTrialRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a StopTrialRequest. + * @implements IStopTrialRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IStopTrialRequest=} [properties] Properties to set + */ + function StopTrialRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StopTrialRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @instance + */ + StopTrialRequest.prototype.name = ""; + + /** + * Creates a new StopTrialRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IStopTrialRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StopTrialRequest} StopTrialRequest instance + */ + StopTrialRequest.create = function create(properties) { + return new StopTrialRequest(properties); + }; + + /** + * Encodes the specified StopTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IStopTrialRequest} message StopTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopTrialRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified StopTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.IStopTrialRequest} message StopTrialRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopTrialRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopTrialRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StopTrialRequest} StopTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopTrialRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StopTrialRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StopTrialRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StopTrialRequest} StopTrialRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopTrialRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopTrialRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopTrialRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a StopTrialRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StopTrialRequest} StopTrialRequest + */ + StopTrialRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StopTrialRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.StopTrialRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a StopTrialRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @static + * @param {google.cloud.aiplatform.v1.StopTrialRequest} message StopTrialRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopTrialRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this StopTrialRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StopTrialRequest + * @instance + * @returns {Object.} JSON object + */ + StopTrialRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return StopTrialRequest; + })(); + + v1.ListOptimalTrialsRequest = (function() { + + /** + * Properties of a ListOptimalTrialsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListOptimalTrialsRequest + * @property {string|null} [parent] ListOptimalTrialsRequest parent + */ + + /** + * Constructs a new ListOptimalTrialsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListOptimalTrialsRequest. + * @implements IListOptimalTrialsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsRequest=} [properties] Properties to set + */ + function ListOptimalTrialsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListOptimalTrialsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @instance + */ + ListOptimalTrialsRequest.prototype.parent = ""; + + /** + * Creates a new ListOptimalTrialsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsRequest} ListOptimalTrialsRequest instance + */ + ListOptimalTrialsRequest.create = function create(properties) { + return new ListOptimalTrialsRequest(properties); + }; + + /** + * Encodes the specified ListOptimalTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsRequest} message ListOptimalTrialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOptimalTrialsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + return writer; + }; + + /** + * Encodes the specified ListOptimalTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsRequest} message ListOptimalTrialsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOptimalTrialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsRequest} ListOptimalTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOptimalTrialsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListOptimalTrialsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsRequest} ListOptimalTrialsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOptimalTrialsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListOptimalTrialsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListOptimalTrialsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a ListOptimalTrialsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsRequest} ListOptimalTrialsRequest + */ + ListOptimalTrialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListOptimalTrialsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListOptimalTrialsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a ListOptimalTrialsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @static + * @param {google.cloud.aiplatform.v1.ListOptimalTrialsRequest} message ListOptimalTrialsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListOptimalTrialsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this ListOptimalTrialsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsRequest + * @instance + * @returns {Object.} JSON object + */ + ListOptimalTrialsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListOptimalTrialsRequest; + })(); + + v1.ListOptimalTrialsResponse = (function() { + + /** + * Properties of a ListOptimalTrialsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListOptimalTrialsResponse + * @property {Array.|null} [optimalTrials] ListOptimalTrialsResponse optimalTrials + */ + + /** + * Constructs a new ListOptimalTrialsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListOptimalTrialsResponse. + * @implements IListOptimalTrialsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsResponse=} [properties] Properties to set + */ + function ListOptimalTrialsResponse(properties) { + this.optimalTrials = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListOptimalTrialsResponse optimalTrials. + * @member {Array.} optimalTrials + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @instance + */ + ListOptimalTrialsResponse.prototype.optimalTrials = $util.emptyArray; + + /** + * Creates a new ListOptimalTrialsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsResponse} ListOptimalTrialsResponse instance + */ + ListOptimalTrialsResponse.create = function create(properties) { + return new ListOptimalTrialsResponse(properties); + }; + + /** + * Encodes the specified ListOptimalTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsResponse} message ListOptimalTrialsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOptimalTrialsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.optimalTrials != null && message.optimalTrials.length) + for (var i = 0; i < message.optimalTrials.length; ++i) + $root.google.cloud.aiplatform.v1.Trial.encode(message.optimalTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListOptimalTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListOptimalTrialsResponse} message ListOptimalTrialsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOptimalTrialsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsResponse} ListOptimalTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOptimalTrialsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListOptimalTrialsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.optimalTrials && message.optimalTrials.length)) + message.optimalTrials = []; + message.optimalTrials.push($root.google.cloud.aiplatform.v1.Trial.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsResponse} ListOptimalTrialsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOptimalTrialsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListOptimalTrialsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListOptimalTrialsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.optimalTrials != null && message.hasOwnProperty("optimalTrials")) { + if (!Array.isArray(message.optimalTrials)) + return "optimalTrials: array expected"; + for (var i = 0; i < message.optimalTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Trial.verify(message.optimalTrials[i]); + if (error) + return "optimalTrials." + error; + } + } + return null; + }; + + /** + * Creates a ListOptimalTrialsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListOptimalTrialsResponse} ListOptimalTrialsResponse + */ + ListOptimalTrialsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListOptimalTrialsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListOptimalTrialsResponse(); + if (object.optimalTrials) { + if (!Array.isArray(object.optimalTrials)) + throw TypeError(".google.cloud.aiplatform.v1.ListOptimalTrialsResponse.optimalTrials: array expected"); + message.optimalTrials = []; + for (var i = 0; i < object.optimalTrials.length; ++i) { + if (typeof object.optimalTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListOptimalTrialsResponse.optimalTrials: object expected"); + message.optimalTrials[i] = $root.google.cloud.aiplatform.v1.Trial.fromObject(object.optimalTrials[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ListOptimalTrialsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListOptimalTrialsResponse} message ListOptimalTrialsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListOptimalTrialsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.optimalTrials = []; + if (message.optimalTrials && message.optimalTrials.length) { + object.optimalTrials = []; + for (var j = 0; j < message.optimalTrials.length; ++j) + object.optimalTrials[j] = $root.google.cloud.aiplatform.v1.Trial.toObject(message.optimalTrials[j], options); + } + return object; + }; + + /** + * Converts this ListOptimalTrialsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListOptimalTrialsResponse + * @instance + * @returns {Object.} JSON object + */ + ListOptimalTrialsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListOptimalTrialsResponse; + })(); + return v1; })(); diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 65f273247f8..210b0bd51a2 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -11,7 +11,7 @@ "csharp_namespace": "Google.Cloud.AIPlatform.V1", "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform", "java_multiple_files": true, - "java_outer_classname": "SpecialistPoolServiceProto", + "java_outer_classname": "VizierServiceProto", "java_package": "com.google.cloud.aiplatform.v1", "php_namespace": "Google\\Cloud\\AIPlatform\\V1", "ruby_package": "Google::Cloud::AIPlatform::V1", @@ -10242,6 +10242,661 @@ "id": 2 } } + }, + "VizierService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateStudy": { + "requestType": "CreateStudyRequest", + "responseType": "Study", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/studies", + "(google.api.http).body": "study", + "(google.api.method_signature)": "parent,study" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/studies", + "body": "study" + } + }, + { + "(google.api.method_signature)": "parent,study" + } + ] + }, + "GetStudy": { + "requestType": "GetStudyRequest", + "responseType": "Study", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/studies/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/studies/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListStudies": { + "requestType": "ListStudiesRequest", + "responseType": "ListStudiesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/studies", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/studies" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteStudy": { + "requestType": "DeleteStudyRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/studies/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/studies/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "LookupStudy": { + "requestType": "LookupStudyRequest", + "responseType": "Study", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/studies:lookup", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/studies:lookup", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "SuggestTrials": { + "requestType": "SuggestTrialsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/studies/*}/trials:suggest", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "SuggestTrialsResponse", + "(google.longrunning.operation_info).metadata_type": "SuggestTrialsMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/studies/*}/trials:suggest", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "SuggestTrialsResponse", + "metadata_type": "SuggestTrialsMetadata" + } + } + ] + }, + "CreateTrial": { + "requestType": "CreateTrialRequest", + "responseType": "Trial", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/studies/*}/trials", + "(google.api.http).body": "trial", + "(google.api.method_signature)": "parent,trial" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/studies/*}/trials", + "body": "trial" + } + }, + { + "(google.api.method_signature)": "parent,trial" + } + ] + }, + "GetTrial": { + "requestType": "GetTrialRequest", + "responseType": "Trial", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/studies/*/trials/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/studies/*/trials/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListTrials": { + "requestType": "ListTrialsRequest", + "responseType": "ListTrialsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/studies/*}/trials", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/studies/*}/trials" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "AddTrialMeasurement": { + "requestType": "AddTrialMeasurementRequest", + "responseType": "Trial", + "options": { + "(google.api.http).post": "/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:addTrialMeasurement", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:addTrialMeasurement", + "body": "*" + } + } + ] + }, + "CompleteTrial": { + "requestType": "CompleteTrialRequest", + "responseType": "Trial", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete", + "body": "*" + } + } + ] + }, + "DeleteTrial": { + "requestType": "DeleteTrialRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/studies/*/trials/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/studies/*/trials/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CheckTrialEarlyStoppingState": { + "requestType": "CheckTrialEarlyStoppingStateRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:checkTrialEarlyStoppingState", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "CheckTrialEarlyStoppingStateResponse", + "(google.longrunning.operation_info).metadata_type": "CheckTrialEarlyStoppingStateMetatdata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:checkTrialEarlyStoppingState", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "CheckTrialEarlyStoppingStateResponse", + "metadata_type": "CheckTrialEarlyStoppingStateMetatdata" + } + } + ] + }, + "StopTrial": { + "requestType": "StopTrialRequest", + "responseType": "Trial", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop", + "body": "*" + } + } + ] + }, + "ListOptimalTrials": { + "requestType": "ListOptimalTrialsRequest", + "responseType": "ListOptimalTrialsResponse", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + } + } + }, + "GetStudyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Study" + } + } + } + }, + "CreateStudyRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "study": { + "type": "Study", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListStudiesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "pageToken": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListStudiesResponse": { + "fields": { + "studies": { + "rule": "repeated", + "type": "Study", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteStudyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Study" + } + } + } + }, + "LookupStudyRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SuggestTrialsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Study" + } + }, + "suggestionCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "clientId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SuggestTrialsResponse": { + "fields": { + "trials": { + "rule": "repeated", + "type": "Trial", + "id": 1 + }, + "studyState": { + "type": "Study.State", + "id": 2 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + } + } + }, + "SuggestTrialsMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + }, + "clientId": { + "type": "string", + "id": 2 + } + } + }, + "CreateTrialRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Study" + } + }, + "trial": { + "type": "Trial", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetTrialRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Trial" + } + } + } + }, + "ListTrialsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Study" + } + }, + "pageToken": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListTrialsResponse": { + "fields": { + "trials": { + "rule": "repeated", + "type": "Trial", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "AddTrialMeasurementRequest": { + "fields": { + "trialName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Trial" + } + }, + "measurement": { + "type": "Measurement", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CompleteTrialRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Trial" + } + }, + "finalMeasurement": { + "type": "Measurement", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "trialInfeasible": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "infeasibleReason": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteTrialRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Trial" + } + } + } + }, + "CheckTrialEarlyStoppingStateRequest": { + "fields": { + "trialName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Trial" + } + } + } + }, + "CheckTrialEarlyStoppingStateResponse": { + "fields": { + "shouldStop": { + "type": "bool", + "id": 1 + } + } + }, + "CheckTrialEarlyStoppingStateMetatdata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + }, + "study": { + "type": "string", + "id": 2 + }, + "trial": { + "type": "string", + "id": 3 + } + } + }, + "StopTrialRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Trial" + } + } + } + }, + "ListOptimalTrialsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Study" + } + } + } + }, + "ListOptimalTrialsResponse": { + "fields": { + "optimalTrials": { + "rule": "repeated", + "type": "Trial", + "id": 1 + } + } } } }, diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.create_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.create_dataset.js index be719e4f582..b77f109a422 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.create_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.create_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, dataset) { - // [START aiplatform_create_dataset_sample] + // [START aiplatform_v1_generated_DatasetService_CreateDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, dataset) { } createDataset(); - // [END aiplatform_create_dataset_sample] + // [END aiplatform_v1_generated_DatasetService_CreateDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.delete_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.delete_dataset.js index 10d967d67dd..34132abb3cd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.delete_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.delete_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_dataset_sample] + // [START aiplatform_v1_generated_DatasetService_DeleteDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteDataset(); - // [END aiplatform_delete_dataset_sample] + // [END aiplatform_v1_generated_DatasetService_DeleteDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.export_data.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.export_data.js index de115c14654..20385c9b661 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.export_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.export_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(name, exportConfig) { - // [START aiplatform_export_data_sample] + // [START aiplatform_v1_generated_DatasetService_ExportData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(name, exportConfig) { } exportData(); - // [END aiplatform_export_data_sample] + // [END aiplatform_v1_generated_DatasetService_ExportData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_annotation_spec.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_annotation_spec.js index a8929f6d01b..daee3863de9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_annotation_spec.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_annotation_spec.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_annotation_spec_sample] + // [START aiplatform_v1_generated_DatasetService_GetAnnotationSpec_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(name) { } getAnnotationSpec(); - // [END aiplatform_get_annotation_spec_sample] + // [END aiplatform_v1_generated_DatasetService_GetAnnotationSpec_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_dataset.js index eada19ed677..92613ef508b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.get_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_dataset_sample] + // [START aiplatform_v1_generated_DatasetService_GetDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } getDataset(); - // [END aiplatform_get_dataset_sample] + // [END aiplatform_v1_generated_DatasetService_GetDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.import_data.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.import_data.js index c8059d3e543..0d46b132b9a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.import_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.import_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(name, importConfigs) { - // [START aiplatform_import_data_sample] + // [START aiplatform_v1_generated_DatasetService_ImportData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(name, importConfigs) { } importData(); - // [END aiplatform_import_data_sample] + // [END aiplatform_v1_generated_DatasetService_ImportData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_annotations.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_annotations.js index f3aeb33a881..b882cc00dd3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_annotations.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_annotations.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_annotations_sample] + // [START aiplatform_v1_generated_DatasetService_ListAnnotations_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -67,7 +67,7 @@ function main(parent) { } listAnnotations(); - // [END aiplatform_list_annotations_sample] + // [END aiplatform_v1_generated_DatasetService_ListAnnotations_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_data_items.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_data_items.js index 08aedd5d1b5..c07d7abe4fe 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_data_items.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_data_items.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_data_items_sample] + // [START aiplatform_v1_generated_DatasetService_ListDataItems_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -67,7 +67,7 @@ function main(parent) { } listDataItems(); - // [END aiplatform_list_data_items_sample] + // [END aiplatform_v1_generated_DatasetService_ListDataItems_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_datasets.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_datasets.js index 0b1cbe93a07..9013f9f4b87 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_datasets.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.list_datasets.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_datasets_sample] + // [START aiplatform_v1_generated_DatasetService_ListDatasets_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(parent) { } listDatasets(); - // [END aiplatform_list_datasets_sample] + // [END aiplatform_v1_generated_DatasetService_ListDatasets_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.update_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.update_dataset.js index 6e0a76dd319..b0b19e83988 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.update_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/dataset_service.update_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(dataset, updateMask) { - // [START aiplatform_update_dataset_sample] + // [START aiplatform_v1_generated_DatasetService_UpdateDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -52,7 +52,7 @@ function main(dataset, updateMask) { } updateDataset(); - // [END aiplatform_update_dataset_sample] + // [END aiplatform_v1_generated_DatasetService_UpdateDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.create_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.create_endpoint.js index 71ff39868b5..de1b2b7a5db 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.create_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.create_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, endpoint) { - // [START aiplatform_create_endpoint_sample] + // [START aiplatform_v1_generated_EndpointService_CreateEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, endpoint) { } createEndpoint(); - // [END aiplatform_create_endpoint_sample] + // [END aiplatform_v1_generated_EndpointService_CreateEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.delete_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.delete_endpoint.js index b882111600d..6100d678a17 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.delete_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.delete_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_endpoint_sample] + // [START aiplatform_v1_generated_EndpointService_DeleteEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteEndpoint(); - // [END aiplatform_delete_endpoint_sample] + // [END aiplatform_v1_generated_EndpointService_DeleteEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.deploy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.deploy_model.js index 7c0168d8f87..c97df3b552e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.deploy_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.deploy_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, deployedModel) { - // [START aiplatform_deploy_model_sample] + // [START aiplatform_v1_generated_EndpointService_DeployModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -65,7 +65,7 @@ function main(endpoint, deployedModel) { } deployModel(); - // [END aiplatform_deploy_model_sample] + // [END aiplatform_v1_generated_EndpointService_DeployModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.get_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.get_endpoint.js index ed39b8e3a11..31e7b82a4c2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.get_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.get_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_endpoint_sample] + // [START aiplatform_v1_generated_EndpointService_GetEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getEndpoint(); - // [END aiplatform_get_endpoint_sample] + // [END aiplatform_v1_generated_EndpointService_GetEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.list_endpoints.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.list_endpoints.js index 84026ec12be..28925c317cd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.list_endpoints.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.list_endpoints.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_endpoints_sample] + // [START aiplatform_v1_generated_EndpointService_ListEndpoints_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -86,7 +86,7 @@ function main(parent) { } listEndpoints(); - // [END aiplatform_list_endpoints_sample] + // [END aiplatform_v1_generated_EndpointService_ListEndpoints_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js index 0db800cfabd..c852ffc4858 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, deployedModelId) { - // [START aiplatform_undeploy_model_sample] + // [START aiplatform_v1_generated_EndpointService_UndeployModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(endpoint, deployedModelId) { } undeployModel(); - // [END aiplatform_undeploy_model_sample] + // [END aiplatform_v1_generated_EndpointService_UndeployModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js index 494bc72cc31..b2909b23ff0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, updateMask) { - // [START aiplatform_update_endpoint_sample] + // [START aiplatform_v1_generated_EndpointService_UpdateEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(endpoint, updateMask) { } updateEndpoint(); - // [END aiplatform_update_endpoint_sample] + // [END aiplatform_v1_generated_EndpointService_UpdateEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.create_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.create_index_endpoint.js index a02f4abed59..cc0df54236f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.create_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.create_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, indexEndpoint) { - // [START aiplatform_create_index_endpoint_sample] + // [START aiplatform_v1_generated_IndexEndpointService_CreateIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, indexEndpoint) { } createIndexEndpoint(); - // [END aiplatform_create_index_endpoint_sample] + // [END aiplatform_v1_generated_IndexEndpointService_CreateIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js index eaf3bfb2d68..d2c691bd912 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_index_endpoint_sample] + // [START aiplatform_v1_generated_IndexEndpointService_DeleteIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteIndexEndpoint(); - // [END aiplatform_delete_index_endpoint_sample] + // [END aiplatform_v1_generated_IndexEndpointService_DeleteIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.deploy_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.deploy_index.js index 5190a8c443e..cf4d270ade3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.deploy_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.deploy_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(indexEndpoint, deployedIndex) { - // [START aiplatform_deploy_index_sample] + // [START aiplatform_v1_generated_IndexEndpointService_DeployIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(indexEndpoint, deployedIndex) { } deployIndex(); - // [END aiplatform_deploy_index_sample] + // [END aiplatform_v1_generated_IndexEndpointService_DeployIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.get_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.get_index_endpoint.js index 11823b703ab..a7b8a3b7ad4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.get_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.get_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_index_endpoint_sample] + // [START aiplatform_v1_generated_IndexEndpointService_GetIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getIndexEndpoint(); - // [END aiplatform_get_index_endpoint_sample] + // [END aiplatform_v1_generated_IndexEndpointService_GetIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.list_index_endpoints.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.list_index_endpoints.js index c0c6876fa28..6986e5ac10d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.list_index_endpoints.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.list_index_endpoints.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_index_endpoints_sample] + // [START aiplatform_v1_generated_IndexEndpointService_ListIndexEndpoints_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -79,7 +79,7 @@ function main(parent) { } listIndexEndpoints(); - // [END aiplatform_list_index_endpoints_sample] + // [END aiplatform_v1_generated_IndexEndpointService_ListIndexEndpoints_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.undeploy_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.undeploy_index.js index 690c78f271f..ee0955413ff 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.undeploy_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.undeploy_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(indexEndpoint, deployedIndexId) { - // [START aiplatform_undeploy_index_sample] + // [START aiplatform_v1_generated_IndexEndpointService_UndeployIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(indexEndpoint, deployedIndexId) { } undeployIndex(); - // [END aiplatform_undeploy_index_sample] + // [END aiplatform_v1_generated_IndexEndpointService_UndeployIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.update_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.update_index_endpoint.js index b3a753b8e49..d6937824edf 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.update_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.update_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(indexEndpoint, updateMask) { - // [START aiplatform_update_index_endpoint_sample] + // [START aiplatform_v1_generated_IndexEndpointService_UpdateIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(indexEndpoint, updateMask) { } updateIndexEndpoint(); - // [END aiplatform_update_index_endpoint_sample] + // [END aiplatform_v1_generated_IndexEndpointService_UpdateIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.create_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.create_index.js index 193203c0f04..820135962ec 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.create_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.create_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, index) { - // [START aiplatform_create_index_sample] + // [START aiplatform_v1_generated_IndexService_CreateIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, index) { } createIndex(); - // [END aiplatform_create_index_sample] + // [END aiplatform_v1_generated_IndexService_CreateIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.delete_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.delete_index.js index 71aad2b5144..9c415edc578 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.delete_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.delete_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_index_sample] + // [START aiplatform_v1_generated_IndexService_DeleteIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteIndex(); - // [END aiplatform_delete_index_sample] + // [END aiplatform_v1_generated_IndexService_DeleteIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.get_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.get_index.js index 7789f81a074..b61e6c2122e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.get_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.get_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_index_sample] + // [START aiplatform_v1_generated_IndexService_GetIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getIndex(); - // [END aiplatform_get_index_sample] + // [END aiplatform_v1_generated_IndexService_GetIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.list_indexes.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.list_indexes.js index 95fa3149793..2c0c5171403 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.list_indexes.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.list_indexes.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_indexes_sample] + // [START aiplatform_v1_generated_IndexService_ListIndexes_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -64,7 +64,7 @@ function main(parent) { } listIndexes(); - // [END aiplatform_list_indexes_sample] + // [END aiplatform_v1_generated_IndexService_ListIndexes_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.update_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.update_index.js index eb61c747c7a..272646111f5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_service.update_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_service.update_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(index) { - // [START aiplatform_update_index_sample] + // [START aiplatform_v1_generated_IndexService_UpdateIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(index) { } updateIndex(); - // [END aiplatform_update_index_sample] + // [END aiplatform_v1_generated_IndexService_UpdateIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_batch_prediction_job.js index a9703460745..b9142a6bbbe 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_batch_prediction_job_sample] + // [START aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelBatchPredictionJob(); - // [END aiplatform_cancel_batch_prediction_job_sample] + // [END aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.js index bc579a3049b..720d4db9272 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_custom_job_sample] + // [START aiplatform_v1_generated_JobService_CancelCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelCustomJob(); - // [END aiplatform_cancel_custom_job_sample] + // [END aiplatform_v1_generated_JobService_CancelCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.js index 0a6f1f35d51..ef6cf8ceb78 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_data_labeling_job_sample] + // [START aiplatform_v1_generated_JobService_CancelDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelDataLabelingJob(); - // [END aiplatform_cancel_data_labeling_job_sample] + // [END aiplatform_v1_generated_JobService_CancelDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js index 047ad0a212d..ebe8eccc361 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_hyperparameter_tuning_job_sample] + // [START aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } cancelHyperparameterTuningJob(); - // [END aiplatform_cancel_hyperparameter_tuning_job_sample] + // [END aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js index 1c3b213b1aa..bb86ff31e9e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, batchPredictionJob) { - // [START aiplatform_create_batch_prediction_job_sample] + // [START aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, batchPredictionJob) { } createBatchPredictionJob(); - // [END aiplatform_create_batch_prediction_job_sample] + // [END aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.js index cf68c748ec4..ea3701cf434 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, customJob) { - // [START aiplatform_create_custom_job_sample] + // [START aiplatform_v1_generated_JobService_CreateCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, customJob) { } createCustomJob(); - // [END aiplatform_create_custom_job_sample] + // [END aiplatform_v1_generated_JobService_CreateCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.js index b6365e5ad1b..be566f8b9d1 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, dataLabelingJob) { - // [START aiplatform_create_data_labeling_job_sample] + // [START aiplatform_v1_generated_JobService_CreateDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, dataLabelingJob) { } createDataLabelingJob(); - // [END aiplatform_create_data_labeling_job_sample] + // [END aiplatform_v1_generated_JobService_CreateDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js index bea24119f45..0a21b3ac20c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, hyperparameterTuningJob) { - // [START aiplatform_create_hyperparameter_tuning_job_sample] + // [START aiplatform_v1_generated_JobService_CreateHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, hyperparameterTuningJob) { } createHyperparameterTuningJob(); - // [END aiplatform_create_hyperparameter_tuning_job_sample] + // [END aiplatform_v1_generated_JobService_CreateHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js index 37a421db07f..d99f9eeacaa 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, modelDeploymentMonitoringJob) { - // [START aiplatform_create_model_deployment_monitoring_job_sample] + // [START aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, modelDeploymentMonitoringJob) { } createModelDeploymentMonitoringJob(); - // [END aiplatform_create_model_deployment_monitoring_job_sample] + // [END aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js index 9387a3e227a..948517f9620 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_batch_prediction_job_sample] + // [START aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(name) { } deleteBatchPredictionJob(); - // [END aiplatform_delete_batch_prediction_job_sample] + // [END aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.js index e63dc38476e..edcfc63e509 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_custom_job_sample] + // [START aiplatform_v1_generated_JobService_DeleteCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteCustomJob(); - // [END aiplatform_delete_custom_job_sample] + // [END aiplatform_v1_generated_JobService_DeleteCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.js index def1a7f2323..3fba4b1a0fb 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_data_labeling_job_sample] + // [START aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteDataLabelingJob(); - // [END aiplatform_delete_data_labeling_job_sample] + // [END aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js index a5ddac204a8..1dc0838bb38 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_hyperparameter_tuning_job_sample] + // [START aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(name) { } deleteHyperparameterTuningJob(); - // [END aiplatform_delete_hyperparameter_tuning_job_sample] + // [END aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js index 5da1ec99f91..817abd01c55 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_model_deployment_monitoring_job_sample] + // [START aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } deleteModelDeploymentMonitoringJob(); - // [END aiplatform_delete_model_deployment_monitoring_job_sample] + // [END aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js index 24094221c49..6ef4732fbbf 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_batch_prediction_job_sample] + // [START aiplatform_v1_generated_JobService_GetBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getBatchPredictionJob(); - // [END aiplatform_get_batch_prediction_job_sample] + // [END aiplatform_v1_generated_JobService_GetBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.js index da99340981d..7b97878b177 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_custom_job_sample] + // [START aiplatform_v1_generated_JobService_GetCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getCustomJob(); - // [END aiplatform_get_custom_job_sample] + // [END aiplatform_v1_generated_JobService_GetCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.js index b6409a05f27..8a698672417 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_data_labeling_job_sample] + // [START aiplatform_v1_generated_JobService_GetDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getDataLabelingJob(); - // [END aiplatform_get_data_labeling_job_sample] + // [END aiplatform_v1_generated_JobService_GetDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js index 5ad06b75a23..15989a24f9c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_hyperparameter_tuning_job_sample] + // [START aiplatform_v1_generated_JobService_GetHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getHyperparameterTuningJob(); - // [END aiplatform_get_hyperparameter_tuning_job_sample] + // [END aiplatform_v1_generated_JobService_GetHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js index e82e73d006b..5e26b769643 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_deployment_monitoring_job_sample] + // [START aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } getModelDeploymentMonitoringJob(); - // [END aiplatform_get_model_deployment_monitoring_job_sample] + // [END aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js index b8ade154891..0471f2d8aa9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_batch_prediction_jobs_sample] + // [START aiplatform_v1_generated_JobService_ListBatchPredictionJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -75,7 +75,7 @@ function main(parent) { } listBatchPredictionJobs(); - // [END aiplatform_list_batch_prediction_jobs_sample] + // [END aiplatform_v1_generated_JobService_ListBatchPredictionJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js index 99ef11fae91..ac0993f94af 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_custom_jobs_sample] + // [START aiplatform_v1_generated_JobService_ListCustomJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -72,7 +72,7 @@ function main(parent) { } listCustomJobs(); - // [END aiplatform_list_custom_jobs_sample] + // [END aiplatform_v1_generated_JobService_ListCustomJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js index 5f61b7ffec1..bcf12f69287 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_data_labeling_jobs_sample] + // [START aiplatform_v1_generated_JobService_ListDataLabelingJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -78,7 +78,7 @@ function main(parent) { } listDataLabelingJobs(); - // [END aiplatform_list_data_labeling_jobs_sample] + // [END aiplatform_v1_generated_JobService_ListDataLabelingJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js index 1a7a675cdb3..9df122ea0f0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_hyperparameter_tuning_jobs_sample] + // [START aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -74,7 +74,7 @@ function main(parent) { } listHyperparameterTuningJobs(); - // [END aiplatform_list_hyperparameter_tuning_jobs_sample] + // [END aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js index 8db6a5c1254..355c24ca7a8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_model_deployment_monitoring_jobs_sample] + // [START aiplatform_v1_generated_JobService_ListModelDeploymentMonitoringJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -62,7 +62,7 @@ function main(parent) { } listModelDeploymentMonitoringJobs(); - // [END aiplatform_list_model_deployment_monitoring_jobs_sample] + // [END aiplatform_v1_generated_JobService_ListModelDeploymentMonitoringJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js index 5e415b2cf98..46f67fe316c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_pause_model_deployment_monitoring_job_sample] + // [START aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } pauseModelDeploymentMonitoringJob(); - // [END aiplatform_pause_model_deployment_monitoring_job_sample] + // [END aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js index d4dec9958e3..628b9fe7d1d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_resume_model_deployment_monitoring_job_sample] + // [START aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } resumeModelDeploymentMonitoringJob(); - // [END aiplatform_resume_model_deployment_monitoring_job_sample] + // [END aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js index 18363ac603a..b62125ef47b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js @@ -15,7 +15,7 @@ 'use strict'; function main(modelDeploymentMonitoringJob, deployedModelId, objectives) { - // [START aiplatform_search_model_deployment_monitoring_stats_anomalies_sample] + // [START aiplatform_v1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -87,7 +87,7 @@ function main(modelDeploymentMonitoringJob, deployedModelId, objectives) { } searchModelDeploymentMonitoringStatsAnomalies(); - // [END aiplatform_search_model_deployment_monitoring_stats_anomalies_sample] + // [END aiplatform_v1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js index 137ac50351a..6e51a5c1a55 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(modelDeploymentMonitoringJob, updateMask) { - // [START aiplatform_update_model_deployment_monitoring_job_sample] + // [START aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -74,7 +74,7 @@ function main(modelDeploymentMonitoringJob, updateMask) { } updateModelDeploymentMonitoringJob(); - // [END aiplatform_update_model_deployment_monitoring_job_sample] + // [END aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js b/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js index 0f2164501eb..8c174e2b88b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, migrateResourceRequests) { - // [START aiplatform_batch_migrate_resources_sample] + // [START aiplatform_v1_generated_MigrationService_BatchMigrateResources_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(parent, migrateResourceRequests) { } batchMigrateResources(); - // [END aiplatform_batch_migrate_resources_sample] + // [END aiplatform_v1_generated_MigrationService_BatchMigrateResources_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js b/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js index 1e1636ed35b..5acc15a6c3f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_search_migratable_resources_sample] + // [START aiplatform_v1_generated_MigrationService_SearchMigratableResources_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -73,7 +73,7 @@ function main(parent) { } searchMigratableResources(); - // [END aiplatform_search_migratable_resources_sample] + // [END aiplatform_v1_generated_MigrationService_SearchMigratableResources_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js index 924f7ec2122..18abd79bd8a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_model_sample] + // [START aiplatform_v1_generated_ModelService_DeleteModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } deleteModel(); - // [END aiplatform_delete_model_sample] + // [END aiplatform_v1_generated_ModelService_DeleteModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_model.js index a184582c3e4..2033dafd988 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(name, outputConfig) { - // [START aiplatform_export_model_sample] + // [START aiplatform_v1_generated_ModelService_ExportModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(name, outputConfig) { } exportModel(); - // [END aiplatform_export_model_sample] + // [END aiplatform_v1_generated_ModelService_ExportModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model.js index 026fe5c7dd0..739c9b9b36b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_sample] + // [START aiplatform_v1_generated_ModelService_GetModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -43,7 +43,7 @@ function main(name) { } getModel(); - // [END aiplatform_get_model_sample] + // [END aiplatform_v1_generated_ModelService_GetModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation.js index de292295aff..4f25c2044e9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_evaluation_sample] + // [START aiplatform_v1_generated_ModelService_GetModelEvaluation_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getModelEvaluation(); - // [END aiplatform_get_model_evaluation_sample] + // [END aiplatform_v1_generated_ModelService_GetModelEvaluation_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation_slice.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation_slice.js index c9b439ea9c0..31f58baccff 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation_slice.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.get_model_evaluation_slice.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_evaluation_slice_sample] + // [START aiplatform_v1_generated_ModelService_GetModelEvaluationSlice_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getModelEvaluationSlice(); - // [END aiplatform_get_model_evaluation_slice_sample] + // [END aiplatform_v1_generated_ModelService_GetModelEvaluationSlice_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluation_slices.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluation_slices.js index d7758a096bb..945d2e32aec 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluation_slices.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluation_slices.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_model_evaluation_slices_sample] + // [START aiplatform_v1_generated_ModelService_ListModelEvaluationSlices_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -68,7 +68,7 @@ function main(parent) { } listModelEvaluationSlices(); - // [END aiplatform_list_model_evaluation_slices_sample] + // [END aiplatform_v1_generated_ModelService_ListModelEvaluationSlices_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluations.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluations.js index bace78b1492..5a786b3776e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluations.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_model_evaluations.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_model_evaluations_sample] + // [START aiplatform_v1_generated_ModelService_ListModelEvaluations_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -64,7 +64,7 @@ function main(parent) { } listModelEvaluations(); - // [END aiplatform_list_model_evaluations_sample] + // [END aiplatform_v1_generated_ModelService_ListModelEvaluations_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_models.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_models.js index eedacf920ee..084bceb2c71 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_models.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.list_models.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_models_sample] + // [START aiplatform_v1_generated_ModelService_ListModels_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -86,7 +86,7 @@ function main(parent) { } listModels(); - // [END aiplatform_list_models_sample] + // [END aiplatform_v1_generated_ModelService_ListModels_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js index d75d5ed1434..6fbbbe621b5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(model, updateMask) { - // [START aiplatform_update_model_sample] + // [START aiplatform_v1_generated_ModelService_UpdateModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(model, updateMask) { } updateModel(); - // [END aiplatform_update_model_sample] + // [END aiplatform_v1_generated_ModelService_UpdateModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.upload_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.upload_model.js index 369db947d3d..3d6cacd3de4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.upload_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.upload_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, model) { - // [START aiplatform_upload_model_sample] + // [START aiplatform_v1_generated_ModelService_UploadModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, model) { } uploadModel(); - // [END aiplatform_upload_model_sample] + // [END aiplatform_v1_generated_ModelService_UploadModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_pipeline_job.js index 50458a5aff1..8a806d63ff5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_pipeline_job_sample] + // [START aiplatform_v1_generated_PipelineService_CancelPipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelPipelineJob(); - // [END aiplatform_cancel_pipeline_job_sample] + // [END aiplatform_v1_generated_PipelineService_CancelPipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_training_pipeline.js index a0b2d3bbb2d..a9456a245be 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.cancel_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_training_pipeline_sample] + // [START aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelTrainingPipeline(); - // [END aiplatform_cancel_training_pipeline_sample] + // [END aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_pipeline_job.js index 3999c13a813..4be950ea19f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, pipelineJob) { - // [START aiplatform_create_pipeline_job_sample] + // [START aiplatform_v1_generated_PipelineService_CreatePipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -56,7 +56,7 @@ function main(parent, pipelineJob) { } createPipelineJob(); - // [END aiplatform_create_pipeline_job_sample] + // [END aiplatform_v1_generated_PipelineService_CreatePipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_training_pipeline.js index 8e5685db4f2..256e048722a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.create_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, trainingPipeline) { - // [START aiplatform_create_training_pipeline_sample] + // [START aiplatform_v1_generated_PipelineService_CreateTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, trainingPipeline) { } createTrainingPipeline(); - // [END aiplatform_create_training_pipeline_sample] + // [END aiplatform_v1_generated_PipelineService_CreateTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_pipeline_job.js index 47a3eea8d59..c26bf8750a8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_pipeline_job_sample] + // [START aiplatform_v1_generated_PipelineService_DeletePipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deletePipelineJob(); - // [END aiplatform_delete_pipeline_job_sample] + // [END aiplatform_v1_generated_PipelineService_DeletePipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_training_pipeline.js index c67948579bf..bc6b390cd97 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.delete_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_training_pipeline_sample] + // [START aiplatform_v1_generated_PipelineService_DeleteTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteTrainingPipeline(); - // [END aiplatform_delete_training_pipeline_sample] + // [END aiplatform_v1_generated_PipelineService_DeleteTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_pipeline_job.js index b985840a464..2a9033d03d3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_pipeline_job_sample] + // [START aiplatform_v1_generated_PipelineService_GetPipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getPipelineJob(); - // [END aiplatform_get_pipeline_job_sample] + // [END aiplatform_v1_generated_PipelineService_GetPipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_training_pipeline.js index 7e09b1c0659..95e1dd59460 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.get_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_training_pipeline_sample] + // [START aiplatform_v1_generated_PipelineService_GetTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getTrainingPipeline(); - // [END aiplatform_get_training_pipeline_sample] + // [END aiplatform_v1_generated_PipelineService_GetTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js index 1e2c17ee175..6d5c64c2128 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_pipeline_jobs_sample] + // [START aiplatform_v1_generated_PipelineService_ListPipelineJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(parent) { } listPipelineJobs(); - // [END aiplatform_list_pipeline_jobs_sample] + // [END aiplatform_v1_generated_PipelineService_ListPipelineJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js index 89a84e45b26..94992fe43ae 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_training_pipelines.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_training_pipelines_sample] + // [START aiplatform_v1_generated_PipelineService_ListTrainingPipelines_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -72,7 +72,7 @@ function main(parent) { } listTrainingPipelines(); - // [END aiplatform_list_training_pipelines_sample] + // [END aiplatform_v1_generated_PipelineService_ListTrainingPipelines_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.explain.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.explain.js index 7aaad93beb5..c8ddfd0e90a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.explain.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.explain.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, instances) { - // [START aiplatform_explain_sample] + // [START aiplatform_v1_generated_PredictionService_Explain_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(endpoint, instances) { } explain(); - // [END aiplatform_explain_sample] + // [END aiplatform_v1_generated_PredictionService_Explain_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.predict.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.predict.js index c5c4f0c662e..82be5059363 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.predict.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.predict.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, instances) { - // [START aiplatform_predict_sample] + // [START aiplatform_v1_generated_PredictionService_Predict_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -64,7 +64,7 @@ function main(endpoint, instances) { } predict(); - // [END aiplatform_predict_sample] + // [END aiplatform_v1_generated_PredictionService_Predict_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.raw_predict.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.raw_predict.js index 8a816f66cf5..51860325914 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.raw_predict.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.raw_predict.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint) { - // [START aiplatform_raw_predict_sample] + // [START aiplatform_v1_generated_PredictionService_RawPredict_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -58,7 +58,7 @@ function main(endpoint) { } rawPredict(); - // [END aiplatform_raw_predict_sample] + // [END aiplatform_v1_generated_PredictionService_RawPredict_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.create_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.create_specialist_pool.js index 513c3275dc0..6cd1d5e49a3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.create_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.create_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, specialistPool) { - // [START aiplatform_create_specialist_pool_sample] + // [START aiplatform_v1_generated_SpecialistPoolService_CreateSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, specialistPool) { } createSpecialistPool(); - // [END aiplatform_create_specialist_pool_sample] + // [END aiplatform_v1_generated_SpecialistPoolService_CreateSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js index 3829ef18c46..53b54365dae 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_specialist_pool_sample] + // [START aiplatform_v1_generated_SpecialistPoolService_DeleteSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(name) { } deleteSpecialistPool(); - // [END aiplatform_delete_specialist_pool_sample] + // [END aiplatform_v1_generated_SpecialistPoolService_DeleteSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.get_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.get_specialist_pool.js index 80c0ee9462f..eff0e11cb50 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.get_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.get_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_specialist_pool_sample] + // [START aiplatform_v1_generated_SpecialistPoolService_GetSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getSpecialistPool(); - // [END aiplatform_get_specialist_pool_sample] + // [END aiplatform_v1_generated_SpecialistPoolService_GetSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.list_specialist_pools.js b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.list_specialist_pools.js index 31343317746..8f2411ada02 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.list_specialist_pools.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.list_specialist_pools.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_specialist_pools_sample] + // [START aiplatform_v1_generated_SpecialistPoolService_ListSpecialistPools_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(parent) { } listSpecialistPools(); - // [END aiplatform_list_specialist_pools_sample] + // [END aiplatform_v1_generated_SpecialistPoolService_ListSpecialistPools_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.update_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.update_specialist_pool.js index 02f9e4eb593..073b29926cb 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.update_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/specialist_pool_service.update_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(specialistPool, updateMask) { - // [START aiplatform_update_specialist_pool_sample] + // [START aiplatform_v1_generated_SpecialistPoolService_UpdateSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(specialistPool, updateMask) { } updateSpecialistPool(); - // [END aiplatform_update_specialist_pool_sample] + // [END aiplatform_v1_generated_SpecialistPoolService_UpdateSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.add_trial_measurement.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.add_trial_measurement.js new file mode 100644 index 00000000000..b3ce431fad9 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.add_trial_measurement.js @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(trialName, measurement) { + // [START aiplatform_v1_generated_VizierService_AddTrialMeasurement_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the trial to add measurement. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + */ + // const trialName = 'abc123' + /** + * Required. The measurement to be added to a Trial. + */ + // const measurement = '' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function addTrialMeasurement() { + // Construct request + const request = { + trialName, + measurement, + }; + + // Run request + const response = await aiplatformClient.addTrialMeasurement(request); + console.log(response); + } + + addTrialMeasurement(); + // [END aiplatform_v1_generated_VizierService_AddTrialMeasurement_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js new file mode 100644 index 00000000000..96a5b88df21 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(trialName) { + // [START aiplatform_v1_generated_VizierService_CheckTrialEarlyStoppingState_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + */ + // const trialName = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function checkTrialEarlyStoppingState() { + // Construct request + const request = { + trialName, + }; + + // Run request + const [operation] = await aiplatformClient.checkTrialEarlyStoppingState( + request + ); + const [response] = await operation.promise(); + console.log(response); + } + + checkTrialEarlyStoppingState(); + // [END aiplatform_v1_generated_VizierService_CheckTrialEarlyStoppingState_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.complete_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.complete_trial.js new file mode 100644 index 00000000000..7b4df08de15 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.complete_trial.js @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_VizierService_CompleteTrial_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + */ + // const name = 'abc123' + /** + * Optional. If provided, it will be used as the completed Trial's + * final_measurement; Otherwise, the service will auto-select a + * previously reported measurement as the final-measurement + */ + // const finalMeasurement = '' + /** + * Optional. True if the Trial cannot be run with the given Parameter, and + * final_measurement will be ignored. + */ + // const trialInfeasible = true + /** + * Optional. A human readable reason why the trial was infeasible. This should + * only be provided if `trial_infeasible` is true. + */ + // const infeasibleReason = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function completeTrial() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.completeTrial(request); + console.log(response); + } + + completeTrial(); + // [END aiplatform_v1_generated_VizierService_CompleteTrial_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.create_study.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.create_study.js new file mode 100644 index 00000000000..e602bfe48f8 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.create_study.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, study) { + // [START aiplatform_v1_generated_VizierService_CreateStudy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The Study configuration used to create the Study. + */ + // const study = '' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function createStudy() { + // Construct request + const request = { + parent, + study, + }; + + // Run request + const response = await aiplatformClient.createStudy(request); + console.log(response); + } + + createStudy(); + // [END aiplatform_v1_generated_VizierService_CreateStudy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.create_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.create_trial.js new file mode 100644 index 00000000000..53497c31917 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.create_trial.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, trial) { + // [START aiplatform_v1_generated_VizierService_CreateTrial_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + */ + // const parent = 'abc123' + /** + * Required. The Trial to create. + */ + // const trial = '' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function createTrial() { + // Construct request + const request = { + parent, + trial, + }; + + // Run request + const response = await aiplatformClient.createTrial(request); + console.log(response); + } + + createTrial(); + // [END aiplatform_v1_generated_VizierService_CreateTrial_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.delete_study.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.delete_study.js new file mode 100644 index 00000000000..a1a6eaaf9a8 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.delete_study.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_VizierService_DeleteStudy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function deleteStudy() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.deleteStudy(request); + console.log(response); + } + + deleteStudy(); + // [END aiplatform_v1_generated_VizierService_DeleteStudy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.delete_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.delete_trial.js new file mode 100644 index 00000000000..04cc294a492 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.delete_trial.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_VizierService_DeleteTrial_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function deleteTrial() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.deleteTrial(request); + console.log(response); + } + + deleteTrial(); + // [END aiplatform_v1_generated_VizierService_DeleteTrial_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.get_study.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.get_study.js new file mode 100644 index 00000000000..62a33b75a6b --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.get_study.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_VizierService_GetStudy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function getStudy() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getStudy(request); + console.log(response); + } + + getStudy(); + // [END aiplatform_v1_generated_VizierService_GetStudy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.get_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.get_trial.js new file mode 100644 index 00000000000..5d067c4e3a6 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.get_trial.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_VizierService_GetTrial_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function getTrial() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getTrial(request); + console.log(response); + } + + getTrial(); + // [END aiplatform_v1_generated_VizierService_GetTrial_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_optimal_trials.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_optimal_trials.js new file mode 100644 index 00000000000..7d5cf948a34 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_optimal_trials.js @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_VizierService_ListOptimalTrials_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Study that the optimal Trial belongs to. + */ + // const parent = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function listOptimalTrials() { + // Construct request + const request = { + parent, + }; + + // Run request + const response = await aiplatformClient.listOptimalTrials(request); + console.log(response); + } + + listOptimalTrials(); + // [END aiplatform_v1_generated_VizierService_ListOptimalTrials_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_studies.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_studies.js new file mode 100644 index 00000000000..d7543a167f6 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_studies.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_VizierService_ListStudies_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to list the Study from. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + */ + // const pageToken = 'abc123' + /** + * Optional. The maximum number of studies to return per "page" of results. + * If unspecified, service will pick an appropriate default. + */ + // const pageSize = 1234 + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function listStudies() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listStudiesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listStudies(); + // [END aiplatform_v1_generated_VizierService_ListStudies_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_trials.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_trials.js new file mode 100644 index 00000000000..7dc1abdbfd9 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.list_trials.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_VizierService_ListTrials_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Study to list the Trial from. + * Format: `projects/{project}/locations/{location}/studies/{study}` + */ + // const parent = 'abc123' + /** + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + */ + // const pageToken = 'abc123' + /** + * Optional. The number of Trials to retrieve per "page" of results. + * If unspecified, the service will pick an appropriate default. + */ + // const pageSize = 1234 + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function listTrials() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listTrialsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listTrials(); + // [END aiplatform_v1_generated_VizierService_ListTrials_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.lookup_study.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.lookup_study.js new file mode 100644 index 00000000000..864df7936e3 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.lookup_study.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, displayName) { + // [START aiplatform_v1_generated_VizierService_LookupStudy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to get the Study from. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The user-defined display name of the Study + */ + // const displayName = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function lookupStudy() { + // Construct request + const request = { + parent, + displayName, + }; + + // Run request + const response = await aiplatformClient.lookupStudy(request); + console.log(response); + } + + lookupStudy(); + // [END aiplatform_v1_generated_VizierService_LookupStudy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.stop_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.stop_trial.js new file mode 100644 index 00000000000..8cc8b91f624 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.stop_trial.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_VizierService_StopTrial_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function stopTrial() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.stopTrial(request); + console.log(response); + } + + stopTrial(); + // [END aiplatform_v1_generated_VizierService_StopTrial_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.suggest_trials.js b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.suggest_trials.js new file mode 100644 index 00000000000..21f070e7039 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/vizier_service.suggest_trials.js @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, suggestionCount, clientId) { + // [START aiplatform_v1_generated_VizierService_SuggestTrials_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The project and location that the Study belongs to. + * Format: `projects/{project}/locations/{location}/studies/{study}` + */ + // const parent = 'abc123' + /** + * Required. The number of suggestions requested. + */ + // const suggestionCount = 1234 + /** + * Required. The identifier of the client that is requesting the suggestion. + * If multiple SuggestTrialsRequests have the same `client_id`, + * the service will return the identical suggested Trial if the Trial is + * pending, and provide a new Trial if the last suggested Trial was completed. + */ + // const clientId = 'abc123' + + // Imports the Aiplatform library + const {VizierServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new VizierServiceClient(); + + async function suggestTrials() { + // Construct request + const request = { + parent, + suggestionCount, + clientId, + }; + + // Run request + const [operation] = await aiplatformClient.suggestTrials(request); + const [response] = await operation.promise(); + console.log(response); + } + + suggestTrials(); + // [END aiplatform_v1_generated_VizierService_SuggestTrials_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.create_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.create_dataset.js index b8c159d9bf2..bb2b4008667 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.create_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.create_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, dataset) { - // [START aiplatform_create_dataset_sample] + // [START aiplatform_v1beta1_generated_DatasetService_CreateDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, dataset) { } createDataset(); - // [END aiplatform_create_dataset_sample] + // [END aiplatform_v1beta1_generated_DatasetService_CreateDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.delete_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.delete_dataset.js index 91fae2dcf6c..71b91e86038 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.delete_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.delete_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_dataset_sample] + // [START aiplatform_v1beta1_generated_DatasetService_DeleteDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteDataset(); - // [END aiplatform_delete_dataset_sample] + // [END aiplatform_v1beta1_generated_DatasetService_DeleteDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.export_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.export_data.js index 7e24136d792..9d6000167c4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.export_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.export_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(name, exportConfig) { - // [START aiplatform_export_data_sample] + // [START aiplatform_v1beta1_generated_DatasetService_ExportData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(name, exportConfig) { } exportData(); - // [END aiplatform_export_data_sample] + // [END aiplatform_v1beta1_generated_DatasetService_ExportData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_annotation_spec.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_annotation_spec.js index f51e35eeca8..84de4c8b854 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_annotation_spec.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_annotation_spec.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_annotation_spec_sample] + // [START aiplatform_v1beta1_generated_DatasetService_GetAnnotationSpec_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(name) { } getAnnotationSpec(); - // [END aiplatform_get_annotation_spec_sample] + // [END aiplatform_v1beta1_generated_DatasetService_GetAnnotationSpec_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_dataset.js index f603de2b0da..dee4173ca0d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.get_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_dataset_sample] + // [START aiplatform_v1beta1_generated_DatasetService_GetDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } getDataset(); - // [END aiplatform_get_dataset_sample] + // [END aiplatform_v1beta1_generated_DatasetService_GetDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.import_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.import_data.js index a6b9ba33441..c45fe27d333 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.import_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.import_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(name, importConfigs) { - // [START aiplatform_import_data_sample] + // [START aiplatform_v1beta1_generated_DatasetService_ImportData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(name, importConfigs) { } importData(); - // [END aiplatform_import_data_sample] + // [END aiplatform_v1beta1_generated_DatasetService_ImportData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_annotations.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_annotations.js index b4aafcc3891..4be7fc048f3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_annotations.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_annotations.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_annotations_sample] + // [START aiplatform_v1beta1_generated_DatasetService_ListAnnotations_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -67,7 +67,7 @@ function main(parent) { } listAnnotations(); - // [END aiplatform_list_annotations_sample] + // [END aiplatform_v1beta1_generated_DatasetService_ListAnnotations_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_data_items.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_data_items.js index c565334613a..323cbf050ce 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_data_items.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_data_items.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_data_items_sample] + // [START aiplatform_v1beta1_generated_DatasetService_ListDataItems_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -67,7 +67,7 @@ function main(parent) { } listDataItems(); - // [END aiplatform_list_data_items_sample] + // [END aiplatform_v1beta1_generated_DatasetService_ListDataItems_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_datasets.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_datasets.js index 7dfd3813978..c137be95b40 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_datasets.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.list_datasets.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_datasets_sample] + // [START aiplatform_v1beta1_generated_DatasetService_ListDatasets_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(parent) { } listDatasets(); - // [END aiplatform_list_datasets_sample] + // [END aiplatform_v1beta1_generated_DatasetService_ListDatasets_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.update_dataset.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.update_dataset.js index 48afb28e154..42f583232ff 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.update_dataset.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/dataset_service.update_dataset.js @@ -15,7 +15,7 @@ 'use strict'; function main(dataset, updateMask) { - // [START aiplatform_update_dataset_sample] + // [START aiplatform_v1beta1_generated_DatasetService_UpdateDataset_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -52,7 +52,7 @@ function main(dataset, updateMask) { } updateDataset(); - // [END aiplatform_update_dataset_sample] + // [END aiplatform_v1beta1_generated_DatasetService_UpdateDataset_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.create_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.create_endpoint.js index 8d282228468..0b3ce8d841e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.create_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.create_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, endpoint) { - // [START aiplatform_create_endpoint_sample] + // [START aiplatform_v1beta1_generated_EndpointService_CreateEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, endpoint) { } createEndpoint(); - // [END aiplatform_create_endpoint_sample] + // [END aiplatform_v1beta1_generated_EndpointService_CreateEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.delete_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.delete_endpoint.js index 05c61dea780..b8204abedeb 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.delete_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.delete_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_endpoint_sample] + // [START aiplatform_v1beta1_generated_EndpointService_DeleteEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteEndpoint(); - // [END aiplatform_delete_endpoint_sample] + // [END aiplatform_v1beta1_generated_EndpointService_DeleteEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.deploy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.deploy_model.js index c31bc584af8..883569aeeba 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.deploy_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.deploy_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, deployedModel) { - // [START aiplatform_deploy_model_sample] + // [START aiplatform_v1beta1_generated_EndpointService_DeployModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -65,7 +65,7 @@ function main(endpoint, deployedModel) { } deployModel(); - // [END aiplatform_deploy_model_sample] + // [END aiplatform_v1beta1_generated_EndpointService_DeployModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.get_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.get_endpoint.js index bfec63082ba..6599611b189 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.get_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.get_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_endpoint_sample] + // [START aiplatform_v1beta1_generated_EndpointService_GetEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getEndpoint(); - // [END aiplatform_get_endpoint_sample] + // [END aiplatform_v1beta1_generated_EndpointService_GetEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.list_endpoints.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.list_endpoints.js index a6929fda2c8..0f47c31ee0d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.list_endpoints.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.list_endpoints.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_endpoints_sample] + // [START aiplatform_v1beta1_generated_EndpointService_ListEndpoints_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -76,7 +76,7 @@ function main(parent) { } listEndpoints(); - // [END aiplatform_list_endpoints_sample] + // [END aiplatform_v1beta1_generated_EndpointService_ListEndpoints_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.undeploy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.undeploy_model.js index fb4e097cd27..c2ad99c05c3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.undeploy_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.undeploy_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, deployedModelId) { - // [START aiplatform_undeploy_model_sample] + // [START aiplatform_v1beta1_generated_EndpointService_UndeployModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(endpoint, deployedModelId) { } undeployModel(); - // [END aiplatform_undeploy_model_sample] + // [END aiplatform_v1beta1_generated_EndpointService_UndeployModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.update_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.update_endpoint.js index 6d81655c0d9..773393cc88d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.update_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/endpoint_service.update_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, updateMask) { - // [START aiplatform_update_endpoint_sample] + // [START aiplatform_v1beta1_generated_EndpointService_UpdateEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(endpoint, updateMask) { } updateEndpoint(); - // [END aiplatform_update_endpoint_sample] + // [END aiplatform_v1beta1_generated_EndpointService_UpdateEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js index 64f69b347d7..47bb90ebe23 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js @@ -15,7 +15,7 @@ 'use strict'; function main(entityType, entityId, featureSelector) { - // [START aiplatform_read_feature_values_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -59,7 +59,7 @@ function main(entityType, entityId, featureSelector) { } readFeatureValues(); - // [END aiplatform_read_feature_values_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js index 686fc16d19d..cb70ea1d430 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js @@ -15,7 +15,7 @@ 'use strict'; function main(entityType, entityIds, featureSelector) { - // [START aiplatform_streaming_read_feature_values_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_StreamingReadFeatureValues_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -68,7 +68,7 @@ function main(entityType, entityIds, featureSelector) { } streamingReadFeatureValues(); - // [END aiplatform_streaming_read_feature_values_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_StreamingReadFeatureValues_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js index 981b1610f17..b9d31bf1964 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, requests) { - // [START aiplatform_batch_create_features_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_BatchCreateFeatures_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -54,7 +54,7 @@ function main(parent, requests) { } batchCreateFeatures(); - // [END aiplatform_batch_create_features_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_BatchCreateFeatures_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js index b90604d7e54..ca2dc268d5a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js @@ -15,7 +15,7 @@ 'use strict'; function main(featurestore, destination, entityTypeSpecs) { - // [START aiplatform_batch_read_feature_values_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_BatchReadFeatureValues_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -93,7 +93,7 @@ function main(featurestore, destination, entityTypeSpecs) { } batchReadFeatureValues(); - // [END aiplatform_batch_read_feature_values_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_BatchReadFeatureValues_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_entity_type.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_entity_type.js index d89374e7c1c..0ab6f38b9c9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_entity_type.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_entity_type.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, entityTypeId) { - // [START aiplatform_create_entity_type_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_CreateEntityType_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -59,7 +59,7 @@ function main(parent, entityTypeId) { } createEntityType(); - // [END aiplatform_create_entity_type_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_CreateEntityType_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js index ae33e040cb0..dfaaf88512c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, feature, featureId) { - // [START aiplatform_create_feature_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_CreateFeature_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(parent, feature, featureId) { } createFeature(); - // [END aiplatform_create_feature_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_CreateFeature_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_featurestore.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_featurestore.js index a59fbfecdf4..da1611b1192 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_featurestore.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_featurestore.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, featurestore, featurestoreId) { - // [START aiplatform_create_featurestore_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_CreateFeaturestore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(parent, featurestore, featurestoreId) { } createFeaturestore(); - // [END aiplatform_create_featurestore_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_CreateFeaturestore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_entity_type.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_entity_type.js index 20fb1263ef2..7b75061a30f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_entity_type.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_entity_type.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_entity_type_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_DeleteEntityType_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(name) { } deleteEntityType(); - // [END aiplatform_delete_entity_type_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_DeleteEntityType_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature.js index 345487e2366..637624ddd9f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_feature.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_feature_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeature_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } deleteFeature(); - // [END aiplatform_delete_feature_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeature_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_featurestore.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_featurestore.js index e0666506c17..dad78199f57 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_featurestore.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.delete_featurestore.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_featurestore_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeaturestore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -52,7 +52,7 @@ function main(name) { } deleteFeaturestore(); - // [END aiplatform_delete_featurestore_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeaturestore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.export_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.export_feature_values.js index 95316acf809..6e1310ca7e1 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.export_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.export_feature_values.js @@ -15,7 +15,7 @@ 'use strict'; function main(entityType, destination, featureSelector) { - // [START aiplatform_export_feature_values_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_ExportFeatureValues_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -65,7 +65,7 @@ function main(entityType, destination, featureSelector) { } exportFeatureValues(); - // [END aiplatform_export_feature_values_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_ExportFeatureValues_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_entity_type.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_entity_type.js index 4c2e10c2475..ed4657368d4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_entity_type.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_entity_type.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_entity_type_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_GetEntityType_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getEntityType(); - // [END aiplatform_get_entity_type_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_GetEntityType_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js index dbc3499c242..1857a676018 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_feature_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_GetFeature_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getFeature(); - // [END aiplatform_get_feature_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_GetFeature_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_featurestore.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_featurestore.js index fb90d9655dc..9f78bc0f564 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_featurestore.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_featurestore.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_featurestore_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_GetFeaturestore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -43,7 +43,7 @@ function main(name) { } getFeaturestore(); - // [END aiplatform_get_featurestore_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_GetFeaturestore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.import_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.import_feature_values.js index b68f80a5039..a3124494b52 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.import_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.import_feature_values.js @@ -15,7 +15,7 @@ 'use strict'; function main(entityType, featureSpecs) { - // [START aiplatform_import_feature_values_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_ImportFeatureValues_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -92,7 +92,7 @@ function main(entityType, featureSpecs) { } importFeatureValues(); - // [END aiplatform_import_feature_values_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_ImportFeatureValues_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_entity_types.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_entity_types.js index f9250da77ba..afcec91559a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_entity_types.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_entity_types.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_entity_types_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_ListEntityTypes_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -94,7 +94,7 @@ function main(parent) { } listEntityTypes(); - // [END aiplatform_list_entity_types_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_ListEntityTypes_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js index fa34cc81742..3b1f62ccfd5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_features_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_ListFeatures_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -104,7 +104,7 @@ function main(parent) { } listFeatures(); - // [END aiplatform_list_features_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_ListFeatures_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_featurestores.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_featurestores.js index dbc7d97821e..6bc0c04cb83 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_featurestores.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_featurestores.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_featurestores_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_ListFeaturestores_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -95,7 +95,7 @@ function main(parent) { } listFeaturestores(); - // [END aiplatform_list_featurestores_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_ListFeaturestores_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.search_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.search_features.js index 60713217692..e4581024973 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.search_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.search_features.js @@ -15,7 +15,7 @@ 'use strict'; function main(location) { - // [START aiplatform_search_features_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_SearchFeatures_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -114,7 +114,7 @@ function main(location) { } searchFeatures(); - // [END aiplatform_search_features_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_SearchFeatures_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_entity_type.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_entity_type.js index a4881a5b3f8..53ce0cb10e5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_entity_type.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_entity_type.js @@ -15,7 +15,7 @@ 'use strict'; function main(entityType) { - // [START aiplatform_update_entity_type_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_UpdateEntityType_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(entityType) { } updateEntityType(); - // [END aiplatform_update_entity_type_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_UpdateEntityType_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js index de6a3017fb7..1fd0e6e8074 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js @@ -15,7 +15,7 @@ 'use strict'; function main(feature) { - // [START aiplatform_update_feature_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeature_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(feature) { } updateFeature(); - // [END aiplatform_update_feature_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeature_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_featurestore.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_featurestore.js index 3675d15e938..c366b3ee297 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_featurestore.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_featurestore.js @@ -15,7 +15,7 @@ 'use strict'; function main(featurestore) { - // [START aiplatform_update_featurestore_sample] + // [START aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeaturestore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(featurestore) { } updateFeaturestore(); - // [END aiplatform_update_featurestore_sample] + // [END aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeaturestore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js index 32f439e6c5e..d3be433b3fd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, indexEndpoint) { - // [START aiplatform_create_index_endpoint_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_CreateIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, indexEndpoint) { } createIndexEndpoint(); - // [END aiplatform_create_index_endpoint_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_CreateIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js index 356461c192b..8049e0346fa 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_index_endpoint_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_DeleteIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } deleteIndexEndpoint(); - // [END aiplatform_delete_index_endpoint_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_DeleteIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.deploy_index.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.deploy_index.js index d0427861701..a5c1936359a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.deploy_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.deploy_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(indexEndpoint, deployedIndex) { - // [START aiplatform_deploy_index_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_DeployIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(indexEndpoint, deployedIndex) { } deployIndex(); - // [END aiplatform_deploy_index_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_DeployIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js index a86277e3695..c73444f91c2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_index_endpoint_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_GetIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getIndexEndpoint(); - // [END aiplatform_get_index_endpoint_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_GetIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js index 32468d339da..442064818e9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_index_endpoints_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_ListIndexEndpoints_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(parent) { } listIndexEndpoints(); - // [END aiplatform_list_index_endpoints_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_ListIndexEndpoints_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js index 8a2042e56eb..79b27b5f102 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(indexEndpoint, deployedIndexId) { - // [START aiplatform_undeploy_index_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_UndeployIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(indexEndpoint, deployedIndexId) { } undeployIndex(); - // [END aiplatform_undeploy_index_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_UndeployIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js index 23034b2ba8c..1bc27024f47 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js @@ -15,7 +15,7 @@ 'use strict'; function main(indexEndpoint, updateMask) { - // [START aiplatform_update_index_endpoint_sample] + // [START aiplatform_v1beta1_generated_IndexEndpointService_UpdateIndexEndpoint_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(indexEndpoint, updateMask) { } updateIndexEndpoint(); - // [END aiplatform_update_index_endpoint_sample] + // [END aiplatform_v1beta1_generated_IndexEndpointService_UpdateIndexEndpoint_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.create_index.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.create_index.js index 3ab291e173e..dbc60c0b876 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.create_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.create_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, index) { - // [START aiplatform_create_index_sample] + // [START aiplatform_v1beta1_generated_IndexService_CreateIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, index) { } createIndex(); - // [END aiplatform_create_index_sample] + // [END aiplatform_v1beta1_generated_IndexService_CreateIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.delete_index.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.delete_index.js index 9195cd4f1b2..a5b4fb4ad14 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.delete_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.delete_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_index_sample] + // [START aiplatform_v1beta1_generated_IndexService_DeleteIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteIndex(); - // [END aiplatform_delete_index_sample] + // [END aiplatform_v1beta1_generated_IndexService_DeleteIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.get_index.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.get_index.js index 559a5ae13bb..6230e61f9df 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.get_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.get_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_index_sample] + // [START aiplatform_v1beta1_generated_IndexService_GetIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getIndex(); - // [END aiplatform_get_index_sample] + // [END aiplatform_v1beta1_generated_IndexService_GetIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.list_indexes.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.list_indexes.js index b213ec0903a..3c3a4ee05ab 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.list_indexes.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.list_indexes.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_indexes_sample] + // [START aiplatform_v1beta1_generated_IndexService_ListIndexes_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -64,7 +64,7 @@ function main(parent) { } listIndexes(); - // [END aiplatform_list_indexes_sample] + // [END aiplatform_v1beta1_generated_IndexService_ListIndexes_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.update_index.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.update_index.js index a79beaf15b8..cd39ba0fb6e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.update_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/index_service.update_index.js @@ -15,7 +15,7 @@ 'use strict'; function main(index) { - // [START aiplatform_update_index_sample] + // [START aiplatform_v1beta1_generated_IndexService_UpdateIndex_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(index) { } updateIndex(); - // [END aiplatform_update_index_sample] + // [END aiplatform_v1beta1_generated_IndexService_UpdateIndex_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js index 18aff43a0c2..9ef9b30acd0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_batch_prediction_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelBatchPredictionJob(); - // [END aiplatform_cancel_batch_prediction_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.js index 39c6dc710be..701004d5aaf 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_custom_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CancelCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelCustomJob(); - // [END aiplatform_cancel_custom_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CancelCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js index 9ab688889f8..a64d55d63fb 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_data_labeling_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CancelDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelDataLabelingJob(); - // [END aiplatform_cancel_data_labeling_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CancelDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js index 7a964272670..ba6c7e52f73 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_hyperparameter_tuning_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CancelHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } cancelHyperparameterTuningJob(); - // [END aiplatform_cancel_hyperparameter_tuning_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CancelHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js index 326ed359b95..b87b6d64d50 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, batchPredictionJob) { - // [START aiplatform_create_batch_prediction_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, batchPredictionJob) { } createBatchPredictionJob(); - // [END aiplatform_create_batch_prediction_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.js index 4615cd67695..628b0dfc640 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, customJob) { - // [START aiplatform_create_custom_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CreateCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, customJob) { } createCustomJob(); - // [END aiplatform_create_custom_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CreateCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.js index 3cb1e9838ba..4ee497d9409 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, dataLabelingJob) { - // [START aiplatform_create_data_labeling_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CreateDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, dataLabelingJob) { } createDataLabelingJob(); - // [END aiplatform_create_data_labeling_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CreateDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js index 14f60a39ab5..7846775450b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, hyperparameterTuningJob) { - // [START aiplatform_create_hyperparameter_tuning_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CreateHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, hyperparameterTuningJob) { } createHyperparameterTuningJob(); - // [END aiplatform_create_hyperparameter_tuning_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CreateHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js index e791c1ba402..318443cbe2d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, modelDeploymentMonitoringJob) { - // [START aiplatform_create_model_deployment_monitoring_job_sample] + // [START aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, modelDeploymentMonitoringJob) { } createModelDeploymentMonitoringJob(); - // [END aiplatform_create_model_deployment_monitoring_job_sample] + // [END aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js index a68e89a88a7..2f50283707d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_batch_prediction_job_sample] + // [START aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(name) { } deleteBatchPredictionJob(); - // [END aiplatform_delete_batch_prediction_job_sample] + // [END aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.js index 5f6c3173295..1ce1e61dc75 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_custom_job_sample] + // [START aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteCustomJob(); - // [END aiplatform_delete_custom_job_sample] + // [END aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.js index 48f7a284ea2..8955b93d5db 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_data_labeling_job_sample] + // [START aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteDataLabelingJob(); - // [END aiplatform_delete_data_labeling_job_sample] + // [END aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js index c35260b4173..728789d0cd9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_hyperparameter_tuning_job_sample] + // [START aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(name) { } deleteHyperparameterTuningJob(); - // [END aiplatform_delete_hyperparameter_tuning_job_sample] + // [END aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js index ab9214db22f..d466fbcf674 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_model_deployment_monitoring_job_sample] + // [START aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } deleteModelDeploymentMonitoringJob(); - // [END aiplatform_delete_model_deployment_monitoring_job_sample] + // [END aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js index b109f89d3e9..ea32bba3ffa 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_batch_prediction_job_sample] + // [START aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getBatchPredictionJob(); - // [END aiplatform_get_batch_prediction_job_sample] + // [END aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.js index 2fde3bca308..cb54511326e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_custom_job_sample] + // [START aiplatform_v1beta1_generated_JobService_GetCustomJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getCustomJob(); - // [END aiplatform_get_custom_job_sample] + // [END aiplatform_v1beta1_generated_JobService_GetCustomJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.js index 647665211aa..e4d5866e4ea 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_data_labeling_job_sample] + // [START aiplatform_v1beta1_generated_JobService_GetDataLabelingJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getDataLabelingJob(); - // [END aiplatform_get_data_labeling_job_sample] + // [END aiplatform_v1beta1_generated_JobService_GetDataLabelingJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js index 4bdccb6da46..9328f5a4b29 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_hyperparameter_tuning_job_sample] + // [START aiplatform_v1beta1_generated_JobService_GetHyperparameterTuningJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getHyperparameterTuningJob(); - // [END aiplatform_get_hyperparameter_tuning_job_sample] + // [END aiplatform_v1beta1_generated_JobService_GetHyperparameterTuningJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js index ccc0da47144..3a8e583e0c2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_deployment_monitoring_job_sample] + // [START aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } getModelDeploymentMonitoringJob(); - // [END aiplatform_get_model_deployment_monitoring_job_sample] + // [END aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js index f83e8801b4b..6f2f0025263 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_batch_prediction_jobs_sample] + // [START aiplatform_v1beta1_generated_JobService_ListBatchPredictionJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -75,7 +75,7 @@ function main(parent) { } listBatchPredictionJobs(); - // [END aiplatform_list_batch_prediction_jobs_sample] + // [END aiplatform_v1beta1_generated_JobService_ListBatchPredictionJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js index dd14cbb8bc1..bce449df88d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_custom_jobs_sample] + // [START aiplatform_v1beta1_generated_JobService_ListCustomJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -72,7 +72,7 @@ function main(parent) { } listCustomJobs(); - // [END aiplatform_list_custom_jobs_sample] + // [END aiplatform_v1beta1_generated_JobService_ListCustomJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js index 0483914fb86..5995824640a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_data_labeling_jobs_sample] + // [START aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -78,7 +78,7 @@ function main(parent) { } listDataLabelingJobs(); - // [END aiplatform_list_data_labeling_jobs_sample] + // [END aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js index 4eb973ef7dc..9a28d6224f3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_hyperparameter_tuning_jobs_sample] + // [START aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -74,7 +74,7 @@ function main(parent) { } listHyperparameterTuningJobs(); - // [END aiplatform_list_hyperparameter_tuning_jobs_sample] + // [END aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js index dd29a7760e4..9c9e00b6622 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_model_deployment_monitoring_jobs_sample] + // [START aiplatform_v1beta1_generated_JobService_ListModelDeploymentMonitoringJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -62,7 +62,7 @@ function main(parent) { } listModelDeploymentMonitoringJobs(); - // [END aiplatform_list_model_deployment_monitoring_jobs_sample] + // [END aiplatform_v1beta1_generated_JobService_ListModelDeploymentMonitoringJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js index f43fe3ffe2b..c3ae1b50f6f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_pause_model_deployment_monitoring_job_sample] + // [START aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } pauseModelDeploymentMonitoringJob(); - // [END aiplatform_pause_model_deployment_monitoring_job_sample] + // [END aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js index ec65fa65556..be86a6653cd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_resume_model_deployment_monitoring_job_sample] + // [START aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } resumeModelDeploymentMonitoringJob(); - // [END aiplatform_resume_model_deployment_monitoring_job_sample] + // [END aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js index d64d130685c..c96a76bf845 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js @@ -15,7 +15,7 @@ 'use strict'; function main(modelDeploymentMonitoringJob, deployedModelId, objectives) { - // [START aiplatform_search_model_deployment_monitoring_stats_anomalies_sample] + // [START aiplatform_v1beta1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -87,7 +87,7 @@ function main(modelDeploymentMonitoringJob, deployedModelId, objectives) { } searchModelDeploymentMonitoringStatsAnomalies(); - // [END aiplatform_search_model_deployment_monitoring_stats_anomalies_sample] + // [END aiplatform_v1beta1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js index 21504efbef2..1e1ab901219 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(modelDeploymentMonitoringJob, updateMask) { - // [START aiplatform_update_model_deployment_monitoring_job_sample] + // [START aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(modelDeploymentMonitoringJob, updateMask) { } updateModelDeploymentMonitoringJob(); - // [END aiplatform_update_model_deployment_monitoring_job_sample] + // [END aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js index 3fe467a6045..d3f941d288c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js @@ -15,7 +15,7 @@ 'use strict'; function main(context) { - // [START aiplatform_add_context_artifacts_and_executions_sample] + // [START aiplatform_v1beta1_generated_MetadataService_AddContextArtifactsAndExecutions_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(context) { } addContextArtifactsAndExecutions(); - // [END aiplatform_add_context_artifacts_and_executions_sample] + // [END aiplatform_v1beta1_generated_MetadataService_AddContextArtifactsAndExecutions_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_children.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_children.js index b48d6752cba..ffe1e6b849b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_children.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_children.js @@ -15,7 +15,7 @@ 'use strict'; function main(context) { - // [START aiplatform_add_context_children_sample] + // [START aiplatform_v1beta1_generated_MetadataService_AddContextChildren_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(context) { } addContextChildren(); - // [END aiplatform_add_context_children_sample] + // [END aiplatform_v1beta1_generated_MetadataService_AddContextChildren_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_execution_events.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_execution_events.js index b6652df47af..c58bb646b2a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_execution_events.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_execution_events.js @@ -15,7 +15,7 @@ 'use strict'; function main(execution) { - // [START aiplatform_add_execution_events_sample] + // [START aiplatform_v1beta1_generated_MetadataService_AddExecutionEvents_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(execution) { } addExecutionEvents(); - // [END aiplatform_add_execution_events_sample] + // [END aiplatform_v1beta1_generated_MetadataService_AddExecutionEvents_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_artifact.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_artifact.js index 09d9b9fde00..f3ad2471799 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_artifact.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_artifact.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, artifact) { - // [START aiplatform_create_artifact_sample] + // [START aiplatform_v1beta1_generated_MetadataService_CreateArtifact_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(parent, artifact) { } createArtifact(); - // [END aiplatform_create_artifact_sample] + // [END aiplatform_v1beta1_generated_MetadataService_CreateArtifact_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_context.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_context.js index d0507776f02..dfb43ea6e68 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_context.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_context.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, context) { - // [START aiplatform_create_context_sample] + // [START aiplatform_v1beta1_generated_MetadataService_CreateContext_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(parent, context) { } createContext(); - // [END aiplatform_create_context_sample] + // [END aiplatform_v1beta1_generated_MetadataService_CreateContext_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_execution.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_execution.js index 0af54f34e59..4c5ced0f453 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_execution.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_execution.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, execution) { - // [START aiplatform_create_execution_sample] + // [START aiplatform_v1beta1_generated_MetadataService_CreateExecution_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(parent, execution) { } createExecution(); - // [END aiplatform_create_execution_sample] + // [END aiplatform_v1beta1_generated_MetadataService_CreateExecution_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_schema.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_schema.js index 493e93772ce..8807bbf72c7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_schema.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_schema.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, metadataSchema) { - // [START aiplatform_create_metadata_schema_sample] + // [START aiplatform_v1beta1_generated_MetadataService_CreateMetadataSchema_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(parent, metadataSchema) { } createMetadataSchema(); - // [END aiplatform_create_metadata_schema_sample] + // [END aiplatform_v1beta1_generated_MetadataService_CreateMetadataSchema_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_store.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_store.js index 463731a6cde..ebb83e89ae0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_store.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.create_metadata_store.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, metadataStore) { - // [START aiplatform_create_metadata_store_sample] + // [START aiplatform_v1beta1_generated_MetadataService_CreateMetadataStore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(parent, metadataStore) { } createMetadataStore(); - // [END aiplatform_create_metadata_store_sample] + // [END aiplatform_v1beta1_generated_MetadataService_CreateMetadataStore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_artifact.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_artifact.js index 703dbaa68a3..6578a62c1b1 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_artifact.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_artifact.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_artifact_sample] + // [START aiplatform_v1beta1_generated_MetadataService_DeleteArtifact_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(name) { } deleteArtifact(); - // [END aiplatform_delete_artifact_sample] + // [END aiplatform_v1beta1_generated_MetadataService_DeleteArtifact_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_context.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_context.js index 9cd1651ab43..a9623e151f5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_context.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_context.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_context_sample] + // [START aiplatform_v1beta1_generated_MetadataService_DeleteContext_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -56,7 +56,7 @@ function main(name) { } deleteContext(); - // [END aiplatform_delete_context_sample] + // [END aiplatform_v1beta1_generated_MetadataService_DeleteContext_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_execution.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_execution.js index 80b3812237b..971bbd2034f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_execution.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_execution.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_execution_sample] + // [START aiplatform_v1beta1_generated_MetadataService_DeleteExecution_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(name) { } deleteExecution(); - // [END aiplatform_delete_execution_sample] + // [END aiplatform_v1beta1_generated_MetadataService_DeleteExecution_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_metadata_store.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_metadata_store.js index c5080dd6cdf..6980c1eeced 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_metadata_store.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.delete_metadata_store.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_metadata_store_sample] + // [START aiplatform_v1beta1_generated_MetadataService_DeleteMetadataStore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(name) { } deleteMetadataStore(); - // [END aiplatform_delete_metadata_store_sample] + // [END aiplatform_v1beta1_generated_MetadataService_DeleteMetadataStore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_artifact.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_artifact.js index 2cf1217026b..23854ab3bb3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_artifact.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_artifact.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_artifact_sample] + // [START aiplatform_v1beta1_generated_MetadataService_GetArtifact_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getArtifact(); - // [END aiplatform_get_artifact_sample] + // [END aiplatform_v1beta1_generated_MetadataService_GetArtifact_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_context.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_context.js index 884be0cd223..0d81c67d323 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_context.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_context.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_context_sample] + // [START aiplatform_v1beta1_generated_MetadataService_GetContext_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getContext(); - // [END aiplatform_get_context_sample] + // [END aiplatform_v1beta1_generated_MetadataService_GetContext_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_execution.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_execution.js index 8bffe6fe047..2c67998e006 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_execution.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_execution.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_execution_sample] + // [START aiplatform_v1beta1_generated_MetadataService_GetExecution_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getExecution(); - // [END aiplatform_get_execution_sample] + // [END aiplatform_v1beta1_generated_MetadataService_GetExecution_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_schema.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_schema.js index 6ece352b6d1..4f9523a5747 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_schema.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_schema.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_metadata_schema_sample] + // [START aiplatform_v1beta1_generated_MetadataService_GetMetadataSchema_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getMetadataSchema(); - // [END aiplatform_get_metadata_schema_sample] + // [END aiplatform_v1beta1_generated_MetadataService_GetMetadataSchema_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_store.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_store.js index 7aa1f67543d..5681e8c18f8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_store.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.get_metadata_store.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_metadata_store_sample] + // [START aiplatform_v1beta1_generated_MetadataService_GetMetadataStore_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getMetadataStore(); - // [END aiplatform_get_metadata_store_sample] + // [END aiplatform_v1beta1_generated_MetadataService_GetMetadataStore_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js index da5dddf770a..30e0ead434b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_artifacts.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_artifacts_sample] + // [START aiplatform_v1beta1_generated_MetadataService_ListArtifacts_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -86,7 +86,7 @@ function main(parent) { } listArtifacts(); - // [END aiplatform_list_artifacts_sample] + // [END aiplatform_v1beta1_generated_MetadataService_ListArtifacts_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js index bec6b80ab64..ac519695ad6 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_contexts.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_contexts_sample] + // [START aiplatform_v1beta1_generated_MetadataService_ListContexts_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -89,7 +89,7 @@ function main(parent) { } listContexts(); - // [END aiplatform_list_contexts_sample] + // [END aiplatform_v1beta1_generated_MetadataService_ListContexts_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js index eae82659059..1f647c84199 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_executions.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_executions_sample] + // [START aiplatform_v1beta1_generated_MetadataService_ListExecutions_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -86,7 +86,7 @@ function main(parent) { } listExecutions(); - // [END aiplatform_list_executions_sample] + // [END aiplatform_v1beta1_generated_MetadataService_ListExecutions_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js index 6b627c4c8e0..df705369ef0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_metadata_schemas_sample] + // [START aiplatform_v1beta1_generated_MetadataService_ListMetadataSchemas_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -65,7 +65,7 @@ function main(parent) { } listMetadataSchemas(); - // [END aiplatform_list_metadata_schemas_sample] + // [END aiplatform_v1beta1_generated_MetadataService_ListMetadataSchemas_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_stores.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_stores.js index f682775d6ee..512d6108a64 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_stores.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.list_metadata_stores.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_metadata_stores_sample] + // [START aiplatform_v1beta1_generated_MetadataService_ListMetadataStores_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(parent) { } listMetadataStores(); - // [END aiplatform_list_metadata_stores_sample] + // [END aiplatform_v1beta1_generated_MetadataService_ListMetadataStores_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_artifacts.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_artifacts.js index 769076fc0fb..27a1f799d93 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_artifacts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_artifacts.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, filter) { - // [START aiplatform_purge_artifacts_sample] + // [START aiplatform_v1beta1_generated_MetadataService_PurgeArtifacts_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(parent, filter) { } purgeArtifacts(); - // [END aiplatform_purge_artifacts_sample] + // [END aiplatform_v1beta1_generated_MetadataService_PurgeArtifacts_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_contexts.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_contexts.js index bfbfd39b654..d6b2318579f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_contexts.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_contexts.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, filter) { - // [START aiplatform_purge_contexts_sample] + // [START aiplatform_v1beta1_generated_MetadataService_PurgeContexts_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(parent, filter) { } purgeContexts(); - // [END aiplatform_purge_contexts_sample] + // [END aiplatform_v1beta1_generated_MetadataService_PurgeContexts_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_executions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_executions.js index a47f14ada03..3b698436a15 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_executions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.purge_executions.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, filter) { - // [START aiplatform_purge_executions_sample] + // [START aiplatform_v1beta1_generated_MetadataService_PurgeExecutions_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(parent, filter) { } purgeExecutions(); - // [END aiplatform_purge_executions_sample] + // [END aiplatform_v1beta1_generated_MetadataService_PurgeExecutions_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js index 4ce30cf4798..130c3a36401 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js @@ -15,7 +15,7 @@ 'use strict'; function main(artifact) { - // [START aiplatform_query_artifact_lineage_subgraph_sample] + // [START aiplatform_v1beta1_generated_MetadataService_QueryArtifactLineageSubgraph_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -79,7 +79,7 @@ function main(artifact) { } queryArtifactLineageSubgraph(); - // [END aiplatform_query_artifact_lineage_subgraph_sample] + // [END aiplatform_v1beta1_generated_MetadataService_QueryArtifactLineageSubgraph_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js index 1ae8435f1a0..4dc445ce969 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js @@ -15,7 +15,7 @@ 'use strict'; function main(context) { - // [START aiplatform_query_context_lineage_subgraph_sample] + // [START aiplatform_v1beta1_generated_MetadataService_QueryContextLineageSubgraph_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(context) { } queryContextLineageSubgraph(); - // [END aiplatform_query_context_lineage_subgraph_sample] + // [END aiplatform_v1beta1_generated_MetadataService_QueryContextLineageSubgraph_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js index e3930d7b375..760b7cfd6a7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js @@ -15,7 +15,7 @@ 'use strict'; function main(execution) { - // [START aiplatform_query_execution_inputs_and_outputs_sample] + // [START aiplatform_v1beta1_generated_MetadataService_QueryExecutionInputsAndOutputs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(execution) { } queryExecutionInputsAndOutputs(); - // [END aiplatform_query_execution_inputs_and_outputs_sample] + // [END aiplatform_v1beta1_generated_MetadataService_QueryExecutionInputsAndOutputs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js index 3ca1eac7a5e..65af3518633 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js @@ -15,7 +15,7 @@ 'use strict'; function main(artifact, updateMask) { - // [START aiplatform_update_artifact_sample] + // [START aiplatform_v1beta1_generated_MetadataService_UpdateArtifact_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(artifact, updateMask) { } updateArtifact(); - // [END aiplatform_update_artifact_sample] + // [END aiplatform_v1beta1_generated_MetadataService_UpdateArtifact_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js index aa23bf3549a..78f83871c91 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js @@ -15,7 +15,7 @@ 'use strict'; function main(context, updateMask) { - // [START aiplatform_update_context_sample] + // [START aiplatform_v1beta1_generated_MetadataService_UpdateContext_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(context, updateMask) { } updateContext(); - // [END aiplatform_update_context_sample] + // [END aiplatform_v1beta1_generated_MetadataService_UpdateContext_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js index c00001c5a46..c66727399dc 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js @@ -15,7 +15,7 @@ 'use strict'; function main(execution, updateMask) { - // [START aiplatform_update_execution_sample] + // [START aiplatform_v1beta1_generated_MetadataService_UpdateExecution_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(execution, updateMask) { } updateExecution(); - // [END aiplatform_update_execution_sample] + // [END aiplatform_v1beta1_generated_MetadataService_UpdateExecution_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js index 7dcb5b8156c..f9b3a833bd9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, migrateResourceRequests) { - // [START aiplatform_batch_migrate_resources_sample] + // [START aiplatform_v1beta1_generated_MigrationService_BatchMigrateResources_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(parent, migrateResourceRequests) { } batchMigrateResources(); - // [END aiplatform_batch_migrate_resources_sample] + // [END aiplatform_v1beta1_generated_MigrationService_BatchMigrateResources_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js index 05b547b6b92..32c9b6c3319 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_search_migratable_resources_sample] + // [START aiplatform_v1beta1_generated_MigrationService_SearchMigratableResources_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -73,7 +73,7 @@ function main(parent) { } searchMigratableResources(); - // [END aiplatform_search_migratable_resources_sample] + // [END aiplatform_v1beta1_generated_MigrationService_SearchMigratableResources_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js index 3effa114f32..40996b88f31 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_model_sample] + // [START aiplatform_v1beta1_generated_ModelService_DeleteModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } deleteModel(); - // [END aiplatform_delete_model_sample] + // [END aiplatform_v1beta1_generated_ModelService_DeleteModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_model.js index 36077141783..c0de45f4f6e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(name, outputConfig) { - // [START aiplatform_export_model_sample] + // [START aiplatform_v1beta1_generated_ModelService_ExportModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(name, outputConfig) { } exportModel(); - // [END aiplatform_export_model_sample] + // [END aiplatform_v1beta1_generated_ModelService_ExportModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model.js index 13effa69c3c..ce1d7405139 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_sample] + // [START aiplatform_v1beta1_generated_ModelService_GetModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -43,7 +43,7 @@ function main(name) { } getModel(); - // [END aiplatform_get_model_sample] + // [END aiplatform_v1beta1_generated_ModelService_GetModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation.js index cdb552cee38..8829b8d1774 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_evaluation_sample] + // [START aiplatform_v1beta1_generated_ModelService_GetModelEvaluation_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getModelEvaluation(); - // [END aiplatform_get_model_evaluation_sample] + // [END aiplatform_v1beta1_generated_ModelService_GetModelEvaluation_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js index b59f1e51b2b..7eb305a15ac 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_model_evaluation_slice_sample] + // [START aiplatform_v1beta1_generated_ModelService_GetModelEvaluationSlice_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getModelEvaluationSlice(); - // [END aiplatform_get_model_evaluation_slice_sample] + // [END aiplatform_v1beta1_generated_ModelService_GetModelEvaluationSlice_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js index 233040f860a..120126455a5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_model_evaluation_slices_sample] + // [START aiplatform_v1beta1_generated_ModelService_ListModelEvaluationSlices_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -68,7 +68,7 @@ function main(parent) { } listModelEvaluationSlices(); - // [END aiplatform_list_model_evaluation_slices_sample] + // [END aiplatform_v1beta1_generated_ModelService_ListModelEvaluationSlices_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluations.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluations.js index d7748f28ae3..8fa05d49e59 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluations.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_evaluations.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_model_evaluations_sample] + // [START aiplatform_v1beta1_generated_ModelService_ListModelEvaluations_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -64,7 +64,7 @@ function main(parent) { } listModelEvaluations(); - // [END aiplatform_list_model_evaluations_sample] + // [END aiplatform_v1beta1_generated_ModelService_ListModelEvaluations_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_models.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_models.js index f36d554afcc..f1fabc0105f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_models.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_models.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_models_sample] + // [START aiplatform_v1beta1_generated_ModelService_ListModels_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -76,7 +76,7 @@ function main(parent) { } listModels(); - // [END aiplatform_list_models_sample] + // [END aiplatform_v1beta1_generated_ModelService_ListModels_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js index 28fa1784503..e7d0dbf101a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(model, updateMask) { - // [START aiplatform_update_model_sample] + // [START aiplatform_v1beta1_generated_ModelService_UpdateModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(model, updateMask) { } updateModel(); - // [END aiplatform_update_model_sample] + // [END aiplatform_v1beta1_generated_ModelService_UpdateModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js index 3999e8319bf..b85d25b1385 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, model) { - // [START aiplatform_upload_model_sample] + // [START aiplatform_v1beta1_generated_ModelService_UploadModel_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(parent, model) { } uploadModel(); - // [END aiplatform_upload_model_sample] + // [END aiplatform_v1beta1_generated_ModelService_UploadModel_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js index b4e1b520326..4eb451d775d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_pipeline_job_sample] + // [START aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelPipelineJob(); - // [END aiplatform_cancel_pipeline_job_sample] + // [END aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js index 097ac60d1b6..75fb2e1ea3a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_cancel_training_pipeline_sample] + // [START aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } cancelTrainingPipeline(); - // [END aiplatform_cancel_training_pipeline_sample] + // [END aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js index 98c37d2de93..36e0a1eec47 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, pipelineJob) { - // [START aiplatform_create_pipeline_job_sample] + // [START aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -56,7 +56,7 @@ function main(parent, pipelineJob) { } createPipelineJob(); - // [END aiplatform_create_pipeline_job_sample] + // [END aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js index ec616bef970..bb458d82f4f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, trainingPipeline) { - // [START aiplatform_create_training_pipeline_sample] + // [START aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, trainingPipeline) { } createTrainingPipeline(); - // [END aiplatform_create_training_pipeline_sample] + // [END aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js index 600619ace4b..8062335a069 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_pipeline_job_sample] + // [START aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deletePipelineJob(); - // [END aiplatform_delete_pipeline_job_sample] + // [END aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js index 0494497395e..ee283070f36 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_training_pipeline_sample] + // [START aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } deleteTrainingPipeline(); - // [END aiplatform_delete_training_pipeline_sample] + // [END aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js index 75f2a24db81..4a0f7e2e665 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_pipeline_job_sample] + // [START aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getPipelineJob(); - // [END aiplatform_get_pipeline_job_sample] + // [END aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js index 92ce1656ee0..5db6862d2a2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_training_pipeline_sample] + // [START aiplatform_v1beta1_generated_PipelineService_GetTrainingPipeline_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getTrainingPipeline(); - // [END aiplatform_get_training_pipeline_sample] + // [END aiplatform_v1beta1_generated_PipelineService_GetTrainingPipeline_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js index 819093e0cf6..16c7211e6d6 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_pipeline_jobs_sample] + // [START aiplatform_v1beta1_generated_PipelineService_ListPipelineJobs_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(parent) { } listPipelineJobs(); - // [END aiplatform_list_pipeline_jobs_sample] + // [END aiplatform_v1beta1_generated_PipelineService_ListPipelineJobs_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js index 769d915129d..907c325d179 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_training_pipelines_sample] + // [START aiplatform_v1beta1_generated_PipelineService_ListTrainingPipelines_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -72,7 +72,7 @@ function main(parent) { } listTrainingPipelines(); - // [END aiplatform_list_training_pipelines_sample] + // [END aiplatform_v1beta1_generated_PipelineService_ListTrainingPipelines_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.explain.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.explain.js index 178759cd59d..f148702794f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.explain.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.explain.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, instances) { - // [START aiplatform_explain_sample] + // [START aiplatform_v1beta1_generated_PredictionService_Explain_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -80,7 +80,7 @@ function main(endpoint, instances) { } explain(); - // [END aiplatform_explain_sample] + // [END aiplatform_v1beta1_generated_PredictionService_Explain_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.predict.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.predict.js index 6baa84397d3..1941e5d3495 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.predict.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.predict.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint, instances) { - // [START aiplatform_predict_sample] + // [START aiplatform_v1beta1_generated_PredictionService_Predict_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -64,7 +64,7 @@ function main(endpoint, instances) { } predict(); - // [END aiplatform_predict_sample] + // [END aiplatform_v1beta1_generated_PredictionService_Predict_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.raw_predict.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.raw_predict.js index 5210e28808b..a80226dd746 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.raw_predict.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.raw_predict.js @@ -15,7 +15,7 @@ 'use strict'; function main(endpoint) { - // [START aiplatform_raw_predict_sample] + // [START aiplatform_v1beta1_generated_PredictionService_RawPredict_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -58,7 +58,7 @@ function main(endpoint) { } rawPredict(); - // [END aiplatform_raw_predict_sample] + // [END aiplatform_v1beta1_generated_PredictionService_RawPredict_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js index e4c9cdabb4a..9213533bb8f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, specialistPool) { - // [START aiplatform_create_specialist_pool_sample] + // [START aiplatform_v1beta1_generated_SpecialistPoolService_CreateSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, specialistPool) { } createSpecialistPool(); - // [END aiplatform_create_specialist_pool_sample] + // [END aiplatform_v1beta1_generated_SpecialistPoolService_CreateSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js index 90cb37e019b..2d73b2dd9fd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_specialist_pool_sample] + // [START aiplatform_v1beta1_generated_SpecialistPoolService_DeleteSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -51,7 +51,7 @@ function main(name) { } deleteSpecialistPool(); - // [END aiplatform_delete_specialist_pool_sample] + // [END aiplatform_v1beta1_generated_SpecialistPoolService_DeleteSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js index 4cc046961b5..de854de95ec 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_specialist_pool_sample] + // [START aiplatform_v1beta1_generated_SpecialistPoolService_GetSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getSpecialistPool(); - // [END aiplatform_get_specialist_pool_sample] + // [END aiplatform_v1beta1_generated_SpecialistPoolService_GetSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js index 3f05756781a..96c5d964510 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_specialist_pools_sample] + // [START aiplatform_v1beta1_generated_SpecialistPoolService_ListSpecialistPools_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -61,7 +61,7 @@ function main(parent) { } listSpecialistPools(); - // [END aiplatform_list_specialist_pools_sample] + // [END aiplatform_v1beta1_generated_SpecialistPoolService_ListSpecialistPools_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js index 3cffbf376e2..2640244243d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js @@ -15,7 +15,7 @@ 'use strict'; function main(specialistPool, updateMask) { - // [START aiplatform_update_specialist_pool_sample] + // [START aiplatform_v1beta1_generated_SpecialistPoolService_UpdateSpecialistPool_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(specialistPool, updateMask) { } updateSpecialistPool(); - // [END aiplatform_update_specialist_pool_sample] + // [END aiplatform_v1beta1_generated_SpecialistPoolService_UpdateSpecialistPool_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js index 91526fab9e1..f0d9d8dd639 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, requests) { - // [START aiplatform_batch_create_tensorboard_runs_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardRuns_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -53,7 +53,7 @@ function main(parent, requests) { } batchCreateTensorboardRuns(); - // [END aiplatform_batch_create_tensorboard_runs_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardRuns_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js index 3df5ce6d7cd..6cd3a000816 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, requests) { - // [START aiplatform_batch_create_tensorboard_time_series_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(parent, requests) { } batchCreateTensorboardTimeSeries(); - // [END aiplatform_batch_create_tensorboard_time_series_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js index 6d9a30fa7d2..2385704d313 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, tensorboard) { - // [START aiplatform_create_tensorboard_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -50,7 +50,7 @@ function main(parent, tensorboard) { } createTensorboard(); - // [END aiplatform_create_tensorboard_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js index 384eb824c8a..935c165f964 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, tensorboardExperimentId) { - // [START aiplatform_create_tensorboard_experiment_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -59,7 +59,7 @@ function main(parent, tensorboardExperimentId) { } createTensorboardExperiment(); - // [END aiplatform_create_tensorboard_experiment_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js index e49afd1e6a1..8c3de6a61c8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, tensorboardRun, tensorboardRunId) { - // [START aiplatform_create_tensorboard_run_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -58,7 +58,7 @@ function main(parent, tensorboardRun, tensorboardRunId) { } createTensorboardRun(); - // [END aiplatform_create_tensorboard_run_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js index 5534725b9f0..000b069d219 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, tensorboardTimeSeries) { - // [START aiplatform_create_tensorboard_time_series_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(parent, tensorboardTimeSeries) { } createTensorboardTimeSeries(); - // [END aiplatform_create_tensorboard_time_series_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js index 6c99eed1ca0..ff764535126 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_tensorboard_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } deleteTensorboard(); - // [END aiplatform_delete_tensorboard_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js index 5d650de1648..738b53158b0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_tensorboard_experiment_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(name) { } deleteTensorboardExperiment(); - // [END aiplatform_delete_tensorboard_experiment_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js index c3fa96ae700..3c8820bd85f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_tensorboard_run_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -46,7 +46,7 @@ function main(name) { } deleteTensorboardRun(); - // [END aiplatform_delete_tensorboard_run_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js index 1b38a09b48f..eea26481a84 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_tensorboard_time_series_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(name) { } deleteTensorboardTimeSeries(); - // [END aiplatform_delete_tensorboard_time_series_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js index 5a9235d333a..6bb44968f4e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(tensorboardTimeSeries) { - // [START aiplatform_export_tensorboard_time_series_data_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -73,7 +73,7 @@ function main(tensorboardTimeSeries) { } exportTensorboardTimeSeriesData(); - // [END aiplatform_export_tensorboard_time_series_data_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js index 13d10c7dbdc..2ad420969cf 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_tensorboard_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getTensorboard(); - // [END aiplatform_get_tensorboard_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js index bb5218238ff..3dfd4b01329 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_tensorboard_experiment_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getTensorboardExperiment(); - // [END aiplatform_get_tensorboard_experiment_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js index 4301c8d1db0..354183c8dcf 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_tensorboard_run_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getTensorboardRun(); - // [END aiplatform_get_tensorboard_run_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js index 84449226365..01e64365f14 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_tensorboard_time_series_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -45,7 +45,7 @@ function main(name) { } getTensorboardTimeSeries(); - // [END aiplatform_get_tensorboard_time_series_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js index 4770be94540..8846746d2fa 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_tensorboard_experiments_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -77,7 +77,7 @@ function main(parent) { } listTensorboardExperiments(); - // [END aiplatform_list_tensorboard_experiments_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js index ffab6cb9d2d..7880fe43480 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_tensorboard_runs_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -75,7 +75,7 @@ function main(parent) { } listTensorboardRuns(); - // [END aiplatform_list_tensorboard_runs_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js index 1c8cb0f3fca..b216a960739 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_tensorboard_time_series_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -77,7 +77,7 @@ function main(parent) { } listTensorboardTimeSeries(); - // [END aiplatform_list_tensorboard_time_series_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js index 86e288359b4..8b5bbc838e3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_tensorboards_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -75,7 +75,7 @@ function main(parent) { } listTensorboards(); - // [END aiplatform_list_tensorboards_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js index 829d21769fe..7245dc73426 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(timeSeries) { - // [START aiplatform_read_tensorboard_blob_data_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(timeSeries) { } readTensorboardBlobData(); - // [END aiplatform_read_tensorboard_blob_data_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js index 26e93034a00..fcbdaa3bb23 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(tensorboardTimeSeries) { - // [START aiplatform_read_tensorboard_time_series_data_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardTimeSeriesData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(tensorboardTimeSeries) { } readTensorboardTimeSeriesData(); - // [END aiplatform_read_tensorboard_time_series_data_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardTimeSeriesData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js index 7a5063d0d5c..1c384ac039d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js @@ -15,7 +15,7 @@ 'use strict'; function main(updateMask, tensorboard) { - // [START aiplatform_update_tensorboard_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboard_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -56,7 +56,7 @@ function main(updateMask, tensorboard) { } updateTensorboard(); - // [END aiplatform_update_tensorboard_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboard_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js index 5a4544c3e2d..4980645478e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js @@ -15,7 +15,7 @@ 'use strict'; function main(updateMask, tensorboardExperiment) { - // [START aiplatform_update_tensorboard_experiment_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardExperiment_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(updateMask, tensorboardExperiment) { } updateTensorboardExperiment(); - // [END aiplatform_update_tensorboard_experiment_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardExperiment_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js index 3eb23c86c94..f00acc04f91 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js @@ -15,7 +15,7 @@ 'use strict'; function main(updateMask, tensorboardRun) { - // [START aiplatform_update_tensorboard_run_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardRun_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -55,7 +55,7 @@ function main(updateMask, tensorboardRun) { } updateTensorboardRun(); - // [END aiplatform_update_tensorboard_run_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardRun_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js index eaf9dde78f7..235f145d56f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js @@ -15,7 +15,7 @@ 'use strict'; function main(updateMask, tensorboardTimeSeries) { - // [START aiplatform_update_tensorboard_time_series_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardTimeSeries_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -58,7 +58,7 @@ function main(updateMask, tensorboardTimeSeries) { } updateTensorboardTimeSeries(); - // [END aiplatform_update_tensorboard_time_series_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardTimeSeries_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js index a517f5fab73..84d739fd389 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(tensorboardExperiment, writeRunDataRequests) { - // [START aiplatform_write_tensorboard_experiment_data_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardExperimentData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -52,7 +52,7 @@ function main(tensorboardExperiment, writeRunDataRequests) { } writeTensorboardExperimentData(); - // [END aiplatform_write_tensorboard_experiment_data_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardExperimentData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js index 364d9e0c9ae..386db4cce32 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js @@ -15,7 +15,7 @@ 'use strict'; function main(tensorboardRun, timeSeriesData) { - // [START aiplatform_write_tensorboard_run_data_sample] + // [START aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardRunData_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -54,7 +54,7 @@ function main(tensorboardRun, timeSeriesData) { } writeTensorboardRunData(); - // [END aiplatform_write_tensorboard_run_data_sample] + // [END aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardRunData_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.add_trial_measurement.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.add_trial_measurement.js index 890feb554d2..3e891cd9c86 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.add_trial_measurement.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.add_trial_measurement.js @@ -15,7 +15,7 @@ 'use strict'; function main(trialName, measurement) { - // [START aiplatform_add_trial_measurement_sample] + // [START aiplatform_v1beta1_generated_VizierService_AddTrialMeasurement_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -49,7 +49,7 @@ function main(trialName, measurement) { } addTrialMeasurement(); - // [END aiplatform_add_trial_measurement_sample] + // [END aiplatform_v1beta1_generated_VizierService_AddTrialMeasurement_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js index 64dc55b83ff..2cadb9cfc20 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js @@ -15,7 +15,7 @@ 'use strict'; function main(trialName) { - // [START aiplatform_check_trial_early_stopping_state_sample] + // [START aiplatform_v1beta1_generated_VizierService_CheckTrialEarlyStoppingState_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -47,7 +47,7 @@ function main(trialName) { } checkTrialEarlyStoppingState(); - // [END aiplatform_check_trial_early_stopping_state_sample] + // [END aiplatform_v1beta1_generated_VizierService_CheckTrialEarlyStoppingState_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.complete_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.complete_trial.js index 09ed6e2fbc8..c6ab8070378 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.complete_trial.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.complete_trial.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_complete_trial_sample] + // [START aiplatform_v1beta1_generated_VizierService_CompleteTrial_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -60,7 +60,7 @@ function main(name) { } completeTrial(); - // [END aiplatform_complete_trial_sample] + // [END aiplatform_v1beta1_generated_VizierService_CompleteTrial_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_study.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_study.js index ec373504f4a..0ef7198c6dc 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_study.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_study.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, study) { - // [START aiplatform_create_study_sample] + // [START aiplatform_v1beta1_generated_VizierService_CreateStudy_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, study) { } createStudy(); - // [END aiplatform_create_study_sample] + // [END aiplatform_v1beta1_generated_VizierService_CreateStudy_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_trial.js index f726dc327ee..94aedc8cb60 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_trial.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.create_trial.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, trial) { - // [START aiplatform_create_trial_sample] + // [START aiplatform_v1beta1_generated_VizierService_CreateTrial_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, trial) { } createTrial(); - // [END aiplatform_create_trial_sample] + // [END aiplatform_v1beta1_generated_VizierService_CreateTrial_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_study.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_study.js index 8f81680a967..0eaf8a6a74a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_study.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_study.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_study_sample] + // [START aiplatform_v1beta1_generated_VizierService_DeleteStudy_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -43,7 +43,7 @@ function main(name) { } deleteStudy(); - // [END aiplatform_delete_study_sample] + // [END aiplatform_v1beta1_generated_VizierService_DeleteStudy_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_trial.js index d26fac90306..a7d8f0603cd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_trial.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.delete_trial.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_delete_trial_sample] + // [START aiplatform_v1beta1_generated_VizierService_DeleteTrial_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } deleteTrial(); - // [END aiplatform_delete_trial_sample] + // [END aiplatform_v1beta1_generated_VizierService_DeleteTrial_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_study.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_study.js index 947217007ac..03ff03f8fed 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_study.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_study.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_study_sample] + // [START aiplatform_v1beta1_generated_VizierService_GetStudy_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -43,7 +43,7 @@ function main(name) { } getStudy(); - // [END aiplatform_get_study_sample] + // [END aiplatform_v1beta1_generated_VizierService_GetStudy_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_trial.js index 16d553e2a57..379aa52bee4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_trial.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.get_trial.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_get_trial_sample] + // [START aiplatform_v1beta1_generated_VizierService_GetTrial_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } getTrial(); - // [END aiplatform_get_trial_sample] + // [END aiplatform_v1beta1_generated_VizierService_GetTrial_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_optimal_trials.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_optimal_trials.js index a4c1c77c5b3..5f0eb249e37 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_optimal_trials.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_optimal_trials.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_optimal_trials_sample] + // [START aiplatform_v1beta1_generated_VizierService_ListOptimalTrials_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -42,7 +42,7 @@ function main(parent) { } listOptimalTrials(); - // [END aiplatform_list_optimal_trials_sample] + // [END aiplatform_v1beta1_generated_VizierService_ListOptimalTrials_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_studies.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_studies.js index 791cc119aa2..21f3a9b85e3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_studies.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_studies.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_studies_sample] + // [START aiplatform_v1beta1_generated_VizierService_ListStudies_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -55,7 +55,7 @@ function main(parent) { } listStudies(); - // [END aiplatform_list_studies_sample] + // [END aiplatform_v1beta1_generated_VizierService_ListStudies_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_trials.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_trials.js index 0eb7c163366..2cda1191fe9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_trials.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.list_trials.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent) { - // [START aiplatform_list_trials_sample] + // [START aiplatform_v1beta1_generated_VizierService_ListTrials_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -55,7 +55,7 @@ function main(parent) { } listTrials(); - // [END aiplatform_list_trials_sample] + // [END aiplatform_v1beta1_generated_VizierService_ListTrials_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.lookup_study.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.lookup_study.js index e9b3600fa24..0b3fea32d17 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.lookup_study.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.lookup_study.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, displayName) { - // [START aiplatform_lookup_study_sample] + // [START aiplatform_v1beta1_generated_VizierService_LookupStudy_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -48,7 +48,7 @@ function main(parent, displayName) { } lookupStudy(); - // [END aiplatform_lookup_study_sample] + // [END aiplatform_v1beta1_generated_VizierService_LookupStudy_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.stop_trial.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.stop_trial.js index 58388dcfd8b..a7bdff4c4e7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.stop_trial.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.stop_trial.js @@ -15,7 +15,7 @@ 'use strict'; function main(name) { - // [START aiplatform_stop_trial_sample] + // [START aiplatform_v1beta1_generated_VizierService_StopTrial_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -44,7 +44,7 @@ function main(name) { } stopTrial(); - // [END aiplatform_stop_trial_sample] + // [END aiplatform_v1beta1_generated_VizierService_StopTrial_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.suggest_trials.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.suggest_trials.js index aa9dbb3b413..2fccde42918 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.suggest_trials.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/vizier_service.suggest_trials.js @@ -15,7 +15,7 @@ 'use strict'; function main(parent, suggestionCount, clientId) { - // [START aiplatform_suggest_trials_sample] + // [START aiplatform_v1beta1_generated_VizierService_SuggestTrials_async] /** * TODO(developer): Uncomment these variables before running the sample. */ @@ -57,7 +57,7 @@ function main(parent, suggestionCount, clientId) { } suggestTrials(); - // [END aiplatform_suggest_trials_sample] + // [END aiplatform_v1beta1_generated_VizierService_SuggestTrials_async] } process.on('unhandledRejection', err => { diff --git a/packages/google-cloud-aiplatform/src/index.ts b/packages/google-cloud-aiplatform/src/index.ts index bcec639c935..b72c7fe931f 100644 --- a/packages/google-cloud-aiplatform/src/index.ts +++ b/packages/google-cloud-aiplatform/src/index.ts @@ -39,6 +39,8 @@ const IndexEndpointServiceClient = v1.IndexEndpointServiceClient; type IndexEndpointServiceClient = v1.IndexEndpointServiceClient; const IndexServiceClient = v1.IndexServiceClient; type IndexServiceClient = v1.IndexServiceClient; +const VizierServiceClient = v1.VizierServiceClient; +type VizierServiceClient = v1.VizierServiceClient; export { v1beta1, @@ -53,6 +55,7 @@ export { SpecialistPoolServiceClient, IndexEndpointServiceClient, IndexServiceClient, + VizierServiceClient, }; export default { v1beta1, @@ -67,6 +70,7 @@ export default { SpecialistPoolServiceClient, IndexEndpointServiceClient, IndexServiceClient, + VizierServiceClient, }; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts index c7d7c84e471..c86ee4c8e0f 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -513,10 +513,6 @@ export class DatasetServiceClient { * for more details and examples. * @example * const [response] = await client.getDataset(request); - * - * @example include:samples/generated/v1/dataset_service.get_dataset.js - * region_tag:aiplatform_get_dataset_sample - * */ getDataset( request?: protos.google.cloud.aiplatform.v1.IGetDatasetRequest, @@ -614,10 +610,6 @@ export class DatasetServiceClient { * for more details and examples. * @example * const [response] = await client.updateDataset(request); - * - * @example include:samples/generated/v1/dataset_service.update_dataset.js - * region_tag:aiplatform_update_dataset_sample - * */ updateDataset( request?: protos.google.cloud.aiplatform.v1.IUpdateDatasetRequest, @@ -713,10 +705,6 @@ export class DatasetServiceClient { * for more details and examples. * @example * const [response] = await client.getAnnotationSpec(request); - * - * @example include:samples/generated/v1/dataset_service.get_annotation_spec.js - * region_tag:aiplatform_get_annotation_spec_sample - * */ getAnnotationSpec( request?: protos.google.cloud.aiplatform.v1.IGetAnnotationSpecRequest, @@ -820,10 +808,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.createDataset(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/dataset_service.create_dataset.js - * region_tag:aiplatform_create_dataset_sample - * */ createDataset( request?: protos.google.cloud.aiplatform.v1.ICreateDatasetRequest, @@ -887,10 +871,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/dataset_service.create_dataset.js - * region_tag:aiplatform_create_dataset_sample - * */ async checkCreateDatasetProgress( name: string @@ -971,10 +951,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.deleteDataset(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/dataset_service.delete_dataset.js - * region_tag:aiplatform_delete_dataset_sample - * */ deleteDataset( request?: protos.google.cloud.aiplatform.v1.IDeleteDatasetRequest, @@ -1038,10 +1014,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/dataset_service.delete_dataset.js - * region_tag:aiplatform_delete_dataset_sample - * */ async checkDeleteDatasetProgress( name: string @@ -1125,10 +1097,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.importData(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/dataset_service.import_data.js - * region_tag:aiplatform_import_data_sample - * */ importData( request?: protos.google.cloud.aiplatform.v1.IImportDataRequest, @@ -1192,10 +1160,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/dataset_service.import_data.js - * region_tag:aiplatform_import_data_sample - * */ async checkImportDataProgress( name: string @@ -1278,10 +1242,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.exportData(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/dataset_service.export_data.js - * region_tag:aiplatform_export_data_sample - * */ exportData( request?: protos.google.cloud.aiplatform.v1.IExportDataRequest, @@ -1345,10 +1305,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/dataset_service.export_data.js - * region_tag:aiplatform_export_data_sample - * */ async checkExportDataProgress( name: string @@ -1450,10 +1406,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/dataset_service.list_datasets.js - * region_tag:aiplatform_list_datasets_sample - * */ listDatasets( request?: protos.google.cloud.aiplatform.v1.IListDatasetsRequest, @@ -1544,10 +1496,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/dataset_service.list_datasets.js - * region_tag:aiplatform_list_datasets_sample - * */ listDatasetsStream( request?: protos.google.cloud.aiplatform.v1.IListDatasetsRequest, @@ -1622,10 +1570,6 @@ export class DatasetServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/dataset_service.list_datasets.js - * region_tag:aiplatform_list_datasets_sample - * */ listDatasetsAsync( request?: protos.google.cloud.aiplatform.v1.IListDatasetsRequest, @@ -1712,10 +1656,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/dataset_service.list_data_items.js - * region_tag:aiplatform_list_data_items_sample - * */ listDataItems( request?: protos.google.cloud.aiplatform.v1.IListDataItemsRequest, @@ -1791,10 +1731,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/dataset_service.list_data_items.js - * region_tag:aiplatform_list_data_items_sample - * */ listDataItemsStream( request?: protos.google.cloud.aiplatform.v1.IListDataItemsRequest, @@ -1854,10 +1790,6 @@ export class DatasetServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/dataset_service.list_data_items.js - * region_tag:aiplatform_list_data_items_sample - * */ listDataItemsAsync( request?: protos.google.cloud.aiplatform.v1.IListDataItemsRequest, @@ -1944,10 +1876,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/dataset_service.list_annotations.js - * region_tag:aiplatform_list_annotations_sample - * */ listAnnotations( request?: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest, @@ -2023,10 +1951,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/dataset_service.list_annotations.js - * region_tag:aiplatform_list_annotations_sample - * */ listAnnotationsStream( request?: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest, @@ -2086,10 +2010,6 @@ export class DatasetServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/dataset_service.list_annotations.js - * region_tag:aiplatform_list_annotations_sample - * */ listAnnotationsAsync( request?: protos.google.cloud.aiplatform.v1.IListAnnotationsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index d9d07c22dff..33799c8478d 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -499,10 +499,6 @@ export class EndpointServiceClient { * for more details and examples. * @example * const [response] = await client.getEndpoint(request); - * - * @example include:samples/generated/v1/endpoint_service.get_endpoint.js - * region_tag:aiplatform_get_endpoint_sample - * */ getEndpoint( request?: protos.google.cloud.aiplatform.v1.IGetEndpointRequest, @@ -594,10 +590,6 @@ export class EndpointServiceClient { * for more details and examples. * @example * const [response] = await client.updateEndpoint(request); - * - * @example include:samples/generated/v1/endpoint_service.update_endpoint.js - * region_tag:aiplatform_update_endpoint_sample - * */ updateEndpoint( request?: protos.google.cloud.aiplatform.v1.IUpdateEndpointRequest, @@ -701,10 +693,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.createEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/endpoint_service.create_endpoint.js - * region_tag:aiplatform_create_endpoint_sample - * */ createEndpoint( request?: protos.google.cloud.aiplatform.v1.ICreateEndpointRequest, @@ -768,10 +756,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/endpoint_service.create_endpoint.js - * region_tag:aiplatform_create_endpoint_sample - * */ async checkCreateEndpointProgress( name: string @@ -852,10 +836,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.deleteEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/endpoint_service.delete_endpoint.js - * region_tag:aiplatform_delete_endpoint_sample - * */ deleteEndpoint( request?: protos.google.cloud.aiplatform.v1.IDeleteEndpointRequest, @@ -919,10 +899,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/endpoint_service.delete_endpoint.js - * region_tag:aiplatform_delete_endpoint_sample - * */ async checkDeleteEndpointProgress( name: string @@ -1020,10 +996,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.deployModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/endpoint_service.deploy_model.js - * region_tag:aiplatform_deploy_model_sample - * */ deployModel( request?: protos.google.cloud.aiplatform.v1.IDeployModelRequest, @@ -1087,10 +1059,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/endpoint_service.deploy_model.js - * region_tag:aiplatform_deploy_model_sample - * */ async checkDeployModelProgress( name: string @@ -1182,10 +1150,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.undeployModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/endpoint_service.undeploy_model.js - * region_tag:aiplatform_undeploy_model_sample - * */ undeployModel( request?: protos.google.cloud.aiplatform.v1.IUndeployModelRequest, @@ -1249,10 +1213,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/endpoint_service.undeploy_model.js - * region_tag:aiplatform_undeploy_model_sample - * */ async checkUndeployModelProgress( name: string @@ -1361,10 +1321,6 @@ export class EndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/endpoint_service.list_endpoints.js - * region_tag:aiplatform_list_endpoints_sample - * */ listEndpoints( request?: protos.google.cloud.aiplatform.v1.IListEndpointsRequest, @@ -1462,10 +1418,6 @@ export class EndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/endpoint_service.list_endpoints.js - * region_tag:aiplatform_list_endpoints_sample - * */ listEndpointsStream( request?: protos.google.cloud.aiplatform.v1.IListEndpointsRequest, @@ -1547,10 +1499,6 @@ export class EndpointServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/endpoint_service.list_endpoints.js - * region_tag:aiplatform_list_endpoints_sample - * */ listEndpointsAsync( request?: protos.google.cloud.aiplatform.v1.IListEndpointsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index 8c7e9126d03..f222888e2c3 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -1090,6 +1090,178 @@ } } } + }, + "VizierService": { + "clients": { + "grpc": { + "libraryClient": "VizierServiceClient", + "rpcs": { + "CreateStudy": { + "methods": [ + "createStudy" + ] + }, + "GetStudy": { + "methods": [ + "getStudy" + ] + }, + "DeleteStudy": { + "methods": [ + "deleteStudy" + ] + }, + "LookupStudy": { + "methods": [ + "lookupStudy" + ] + }, + "CreateTrial": { + "methods": [ + "createTrial" + ] + }, + "GetTrial": { + "methods": [ + "getTrial" + ] + }, + "AddTrialMeasurement": { + "methods": [ + "addTrialMeasurement" + ] + }, + "CompleteTrial": { + "methods": [ + "completeTrial" + ] + }, + "DeleteTrial": { + "methods": [ + "deleteTrial" + ] + }, + "StopTrial": { + "methods": [ + "stopTrial" + ] + }, + "ListOptimalTrials": { + "methods": [ + "listOptimalTrials" + ] + }, + "SuggestTrials": { + "methods": [ + "suggestTrials" + ] + }, + "CheckTrialEarlyStoppingState": { + "methods": [ + "checkTrialEarlyStoppingState" + ] + }, + "ListStudies": { + "methods": [ + "listStudies", + "listStudiesStream", + "listStudiesAsync" + ] + }, + "ListTrials": { + "methods": [ + "listTrials", + "listTrialsStream", + "listTrialsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "VizierServiceClient", + "rpcs": { + "CreateStudy": { + "methods": [ + "createStudy" + ] + }, + "GetStudy": { + "methods": [ + "getStudy" + ] + }, + "DeleteStudy": { + "methods": [ + "deleteStudy" + ] + }, + "LookupStudy": { + "methods": [ + "lookupStudy" + ] + }, + "CreateTrial": { + "methods": [ + "createTrial" + ] + }, + "GetTrial": { + "methods": [ + "getTrial" + ] + }, + "AddTrialMeasurement": { + "methods": [ + "addTrialMeasurement" + ] + }, + "CompleteTrial": { + "methods": [ + "completeTrial" + ] + }, + "DeleteTrial": { + "methods": [ + "deleteTrial" + ] + }, + "StopTrial": { + "methods": [ + "stopTrial" + ] + }, + "ListOptimalTrials": { + "methods": [ + "listOptimalTrials" + ] + }, + "SuggestTrials": { + "methods": [ + "suggestTrials" + ] + }, + "CheckTrialEarlyStoppingState": { + "methods": [ + "checkTrialEarlyStoppingState" + ] + }, + "ListStudies": { + "methods": [ + "listStudies", + "listStudiesStream", + "listStudiesAsync" + ] + }, + "ListTrials": { + "methods": [ + "listTrials", + "listTrialsStream", + "listTrialsAsync" + ] + } + } + } + } } } } diff --git a/packages/google-cloud-aiplatform/src/v1/index.ts b/packages/google-cloud-aiplatform/src/v1/index.ts index debd192ad13..b245f48d44b 100644 --- a/packages/google-cloud-aiplatform/src/v1/index.ts +++ b/packages/google-cloud-aiplatform/src/v1/index.ts @@ -26,3 +26,4 @@ export {ModelServiceClient} from './model_service_client'; export {PipelineServiceClient} from './pipeline_service_client'; export {PredictionServiceClient} from './prediction_service_client'; export {SpecialistPoolServiceClient} from './specialist_pool_service_client'; +export {VizierServiceClient} from './vizier_service_client'; diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts index 8d12383fa4a..cb4a8fac996 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts @@ -503,10 +503,6 @@ export class IndexEndpointServiceClient { * for more details and examples. * @example * const [response] = await client.getIndexEndpoint(request); - * - * @example include:samples/generated/v1/index_endpoint_service.get_index_endpoint.js - * region_tag:aiplatform_get_index_endpoint_sample - * */ getIndexEndpoint( request?: protos.google.cloud.aiplatform.v1.IGetIndexEndpointRequest, @@ -600,10 +596,6 @@ export class IndexEndpointServiceClient { * for more details and examples. * @example * const [response] = await client.updateIndexEndpoint(request); - * - * @example include:samples/generated/v1/index_endpoint_service.update_index_endpoint.js - * region_tag:aiplatform_update_index_endpoint_sample - * */ updateIndexEndpoint( request?: protos.google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest, @@ -707,10 +699,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.createIndexEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_endpoint_service.create_index_endpoint.js - * region_tag:aiplatform_create_index_endpoint_sample - * */ createIndexEndpoint( request?: protos.google.cloud.aiplatform.v1.ICreateIndexEndpointRequest, @@ -774,10 +762,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_endpoint_service.create_index_endpoint.js - * region_tag:aiplatform_create_index_endpoint_sample - * */ async checkCreateIndexEndpointProgress( name: string @@ -858,10 +842,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.deleteIndexEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_endpoint_service.delete_index_endpoint.js - * region_tag:aiplatform_delete_index_endpoint_sample - * */ deleteIndexEndpoint( request?: protos.google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest, @@ -925,10 +905,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_endpoint_service.delete_index_endpoint.js - * region_tag:aiplatform_delete_index_endpoint_sample - * */ async checkDeleteIndexEndpointProgress( name: string @@ -1013,10 +989,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.deployIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_endpoint_service.deploy_index.js - * region_tag:aiplatform_deploy_index_sample - * */ deployIndex( request?: protos.google.cloud.aiplatform.v1.IDeployIndexRequest, @@ -1080,10 +1052,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_endpoint_service.deploy_index.js - * region_tag:aiplatform_deploy_index_sample - * */ async checkDeployIndexProgress( name: string @@ -1167,10 +1135,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.undeployIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_endpoint_service.undeploy_index.js - * region_tag:aiplatform_undeploy_index_sample - * */ undeployIndex( request?: protos.google.cloud.aiplatform.v1.IUndeployIndexRequest, @@ -1234,10 +1198,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_endpoint_service.undeploy_index.js - * region_tag:aiplatform_undeploy_index_sample - * */ async checkUndeployIndexProgress( name: string @@ -1340,10 +1300,6 @@ export class IndexEndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/index_endpoint_service.list_index_endpoints.js - * region_tag:aiplatform_list_index_endpoints_sample - * */ listIndexEndpoints( request?: protos.google.cloud.aiplatform.v1.IListIndexEndpointsRequest, @@ -1435,10 +1391,6 @@ export class IndexEndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/index_endpoint_service.list_index_endpoints.js - * region_tag:aiplatform_list_index_endpoints_sample - * */ listIndexEndpointsStream( request?: protos.google.cloud.aiplatform.v1.IListIndexEndpointsRequest, @@ -1514,10 +1466,6 @@ export class IndexEndpointServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/index_endpoint_service.list_index_endpoints.js - * region_tag:aiplatform_list_index_endpoints_sample - * */ listIndexEndpointsAsync( request?: protos.google.cloud.aiplatform.v1.IListIndexEndpointsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts index 14ec299782d..d989e892eba 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -486,10 +486,6 @@ export class IndexServiceClient { * for more details and examples. * @example * const [response] = await client.getIndex(request); - * - * @example include:samples/generated/v1/index_service.get_index.js - * region_tag:aiplatform_get_index_sample - * */ getIndex( request?: protos.google.cloud.aiplatform.v1.IGetIndexRequest, @@ -589,10 +585,6 @@ export class IndexServiceClient { * @example * const [operation] = await client.createIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_service.create_index.js - * region_tag:aiplatform_create_index_sample - * */ createIndex( request?: protos.google.cloud.aiplatform.v1.ICreateIndexRequest, @@ -656,10 +648,6 @@ export class IndexServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_service.create_index.js - * region_tag:aiplatform_create_index_sample - * */ async checkCreateIndexProgress( name: string @@ -741,10 +729,6 @@ export class IndexServiceClient { * @example * const [operation] = await client.updateIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_service.update_index.js - * region_tag:aiplatform_update_index_sample - * */ updateIndex( request?: protos.google.cloud.aiplatform.v1.IUpdateIndexRequest, @@ -808,10 +792,6 @@ export class IndexServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_service.update_index.js - * region_tag:aiplatform_update_index_sample - * */ async checkUpdateIndexProgress( name: string @@ -894,10 +874,6 @@ export class IndexServiceClient { * @example * const [operation] = await client.deleteIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/index_service.delete_index.js - * region_tag:aiplatform_delete_index_sample - * */ deleteIndex( request?: protos.google.cloud.aiplatform.v1.IDeleteIndexRequest, @@ -961,10 +937,6 @@ export class IndexServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/index_service.delete_index.js - * region_tag:aiplatform_delete_index_sample - * */ async checkDeleteIndexProgress( name: string @@ -1046,10 +1018,6 @@ export class IndexServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/index_service.list_indexes.js - * region_tag:aiplatform_list_indexes_sample - * */ listIndexes( request?: protos.google.cloud.aiplatform.v1.IListIndexesRequest, @@ -1122,10 +1090,6 @@ export class IndexServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/index_service.list_indexes.js - * region_tag:aiplatform_list_indexes_sample - * */ listIndexesStream( request?: protos.google.cloud.aiplatform.v1.IListIndexesRequest, @@ -1184,10 +1148,6 @@ export class IndexServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/index_service.list_indexes.js - * region_tag:aiplatform_list_indexes_sample - * */ listIndexesAsync( request?: protos.google.cloud.aiplatform.v1.IListIndexesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index a262c41e8d5..085136cd708 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -594,10 +594,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createCustomJob(request); - * - * @example include:samples/generated/v1/job_service.create_custom_job.js - * region_tag:aiplatform_create_custom_job_sample - * */ createCustomJob( request?: protos.google.cloud.aiplatform.v1.ICreateCustomJobRequest, @@ -687,10 +683,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getCustomJob(request); - * - * @example include:samples/generated/v1/job_service.get_custom_job.js - * region_tag:aiplatform_get_custom_job_sample - * */ getCustomJob( request?: protos.google.cloud.aiplatform.v1.IGetCustomJobRequest, @@ -791,10 +783,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelCustomJob(request); - * - * @example include:samples/generated/v1/job_service.cancel_custom_job.js - * region_tag:aiplatform_cancel_custom_job_sample - * */ cancelCustomJob( request?: protos.google.cloud.aiplatform.v1.ICancelCustomJobRequest, @@ -892,10 +880,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createDataLabelingJob(request); - * - * @example include:samples/generated/v1/job_service.create_data_labeling_job.js - * region_tag:aiplatform_create_data_labeling_job_sample - * */ createDataLabelingJob( request?: protos.google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest, @@ -992,10 +976,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getDataLabelingJob(request); - * - * @example include:samples/generated/v1/job_service.get_data_labeling_job.js - * region_tag:aiplatform_get_data_labeling_job_sample - * */ getDataLabelingJob( request?: protos.google.cloud.aiplatform.v1.IGetDataLabelingJobRequest, @@ -1092,10 +1072,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelDataLabelingJob(request); - * - * @example include:samples/generated/v1/job_service.cancel_data_labeling_job.js - * region_tag:aiplatform_cancel_data_labeling_job_sample - * */ cancelDataLabelingJob( request?: protos.google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest, @@ -1196,10 +1172,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createHyperparameterTuningJob(request); - * - * @example include:samples/generated/v1/job_service.create_hyperparameter_tuning_job.js - * region_tag:aiplatform_create_hyperparameter_tuning_job_sample - * */ createHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest, @@ -1303,10 +1275,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getHyperparameterTuningJob(request); - * - * @example include:samples/generated/v1/job_service.get_hyperparameter_tuning_job.js - * region_tag:aiplatform_get_hyperparameter_tuning_job_sample - * */ getHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest, @@ -1419,10 +1387,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelHyperparameterTuningJob(request); - * - * @example include:samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js - * region_tag:aiplatform_cancel_hyperparameter_tuning_job_sample - * */ cancelHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest, @@ -1528,10 +1492,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createBatchPredictionJob(request); - * - * @example include:samples/generated/v1/job_service.create_batch_prediction_job.js - * region_tag:aiplatform_create_batch_prediction_job_sample - * */ createBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, @@ -1635,10 +1595,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getBatchPredictionJob(request); - * - * @example include:samples/generated/v1/job_service.get_batch_prediction_job.js - * region_tag:aiplatform_get_batch_prediction_job_sample - * */ getBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, @@ -1747,10 +1703,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelBatchPredictionJob(request); - * - * @example include:samples/generated/v1/job_service.cancel_batch_prediction_job.js - * region_tag:aiplatform_cancel_batch_prediction_job_sample - * */ cancelBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, @@ -1856,10 +1808,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1/job_service.create_model_deployment_monitoring_job.js - * region_tag:aiplatform_create_model_deployment_monitoring_job_sample - * */ createModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, @@ -1963,10 +1911,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1/job_service.get_model_deployment_monitoring_job.js - * region_tag:aiplatform_get_model_deployment_monitoring_job_sample - * */ getModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, @@ -2072,10 +2016,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.pauseModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js - * region_tag:aiplatform_pause_model_deployment_monitoring_job_sample - * */ pauseModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, @@ -2181,10 +2121,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.resumeModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js - * region_tag:aiplatform_resume_model_deployment_monitoring_job_sample - * */ resumeModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, @@ -2294,10 +2230,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteCustomJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/job_service.delete_custom_job.js - * region_tag:aiplatform_delete_custom_job_sample - * */ deleteCustomJob( request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, @@ -2361,10 +2293,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/job_service.delete_custom_job.js - * region_tag:aiplatform_delete_custom_job_sample - * */ async checkDeleteCustomJobProgress( name: string @@ -2445,10 +2373,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteDataLabelingJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_delete_data_labeling_job_sample - * */ deleteDataLabelingJob( request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, @@ -2512,10 +2436,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_delete_data_labeling_job_sample - * */ async checkDeleteDataLabelingJobProgress( name: string @@ -2596,10 +2516,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteHyperparameterTuningJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_delete_hyperparameter_tuning_job_sample - * */ deleteHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, @@ -2667,10 +2583,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_delete_hyperparameter_tuning_job_sample - * */ async checkDeleteHyperparameterTuningJobProgress( name: string @@ -2752,10 +2664,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteBatchPredictionJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_delete_batch_prediction_job_sample - * */ deleteBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, @@ -2823,10 +2731,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_delete_batch_prediction_job_sample - * */ async checkDeleteBatchPredictionJobProgress( name: string @@ -2934,10 +2838,6 @@ export class JobServiceClient { * @example * const [operation] = await client.updateModelDeploymentMonitoringJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_update_model_deployment_monitoring_job_sample - * */ updateModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, @@ -3006,10 +2906,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_update_model_deployment_monitoring_job_sample - * */ async checkUpdateModelDeploymentMonitoringJobProgress( name: string @@ -3090,10 +2986,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteModelDeploymentMonitoringJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_delete_model_deployment_monitoring_job_sample - * */ deleteModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, @@ -3161,10 +3053,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_delete_model_deployment_monitoring_job_sample - * */ async checkDeleteModelDeploymentMonitoringJobProgress( name: string @@ -3266,10 +3154,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_custom_jobs.js - * region_tag:aiplatform_list_custom_jobs_sample - * */ listCustomJobs( request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, @@ -3360,10 +3244,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_custom_jobs.js - * region_tag:aiplatform_list_custom_jobs_sample - * */ listCustomJobsStream( request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, @@ -3438,10 +3318,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/job_service.list_custom_jobs.js - * region_tag:aiplatform_list_custom_jobs_sample - * */ listCustomJobsAsync( request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, @@ -3547,10 +3423,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_list_data_labeling_jobs_sample - * */ listDataLabelingJobs( request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, @@ -3645,10 +3517,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_list_data_labeling_jobs_sample - * */ listDataLabelingJobsStream( request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, @@ -3727,10 +3595,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_list_data_labeling_jobs_sample - * */ listDataLabelingJobsAsync( request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, @@ -3832,10 +3696,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_list_hyperparameter_tuning_jobs_sample - * */ listHyperparameterTuningJobs( request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, @@ -3930,10 +3790,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_list_hyperparameter_tuning_jobs_sample - * */ listHyperparameterTuningJobsStream( request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, @@ -4008,10 +3864,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_list_hyperparameter_tuning_jobs_sample - * */ listHyperparameterTuningJobsAsync( request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, @@ -4115,10 +3967,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_batch_prediction_jobs.js - * region_tag:aiplatform_list_batch_prediction_jobs_sample - * */ listBatchPredictionJobs( request?: protos.google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, @@ -4215,10 +4063,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_batch_prediction_jobs.js - * region_tag:aiplatform_list_batch_prediction_jobs_sample - * */ listBatchPredictionJobsStream( request?: protos.google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, @@ -4295,10 +4139,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/job_service.list_batch_prediction_jobs.js - * region_tag:aiplatform_list_batch_prediction_jobs_sample - * */ listBatchPredictionJobsAsync( request?: protos.google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, @@ -4396,10 +4236,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js - * region_tag:aiplatform_search_model_deployment_monitoring_stats_anomalies_sample - * */ searchModelDeploymentMonitoringStatsAnomalies( request?: protos.google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, @@ -4491,10 +4327,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js - * region_tag:aiplatform_search_model_deployment_monitoring_stats_anomalies_sample - * */ searchModelDeploymentMonitoringStatsAnomaliesStream( request?: protos.google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, @@ -4568,10 +4400,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js - * region_tag:aiplatform_search_model_deployment_monitoring_stats_anomalies_sample - * */ searchModelDeploymentMonitoringStatsAnomaliesAsync( request?: protos.google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, @@ -4658,10 +4486,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js - * region_tag:aiplatform_list_model_deployment_monitoring_jobs_sample - * */ listModelDeploymentMonitoringJobs( request?: protos.google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, @@ -4737,10 +4561,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js - * region_tag:aiplatform_list_model_deployment_monitoring_jobs_sample - * */ listModelDeploymentMonitoringJobsStream( request?: protos.google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, @@ -4797,10 +4617,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js - * region_tag:aiplatform_list_model_deployment_monitoring_jobs_sample - * */ listModelDeploymentMonitoringJobsAsync( request?: protos.google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index ca47022db82..e0ae398189d 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -481,10 +481,6 @@ export class MigrationServiceClient { * @example * const [operation] = await client.batchMigrateResources(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/migration_service.batch_migrate_resources.js - * region_tag:aiplatform_batch_migrate_resources_sample - * */ batchMigrateResources( request?: protos.google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, @@ -548,10 +544,6 @@ export class MigrationServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/migration_service.batch_migrate_resources.js - * region_tag:aiplatform_batch_migrate_resources_sample - * */ async checkBatchMigrateResourcesProgress( name: string @@ -649,10 +641,6 @@ export class MigrationServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/migration_service.search_migratable_resources.js - * region_tag:aiplatform_search_migratable_resources_sample - * */ searchMigratableResources( request?: protos.google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, @@ -741,10 +729,6 @@ export class MigrationServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/migration_service.search_migratable_resources.js - * region_tag:aiplatform_search_migratable_resources_sample - * */ searchMigratableResourcesStream( request?: protos.google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, @@ -813,10 +797,6 @@ export class MigrationServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/migration_service.search_migratable_resources.js - * region_tag:aiplatform_search_migratable_resources_sample - * */ searchMigratableResourcesAsync( request?: protos.google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index 27e04f3515c..b3d5783b77a 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -500,10 +500,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.getModel(request); - * - * @example include:samples/generated/v1/model_service.get_model.js - * region_tag:aiplatform_get_model_sample - * */ getModel( request?: protos.google.cloud.aiplatform.v1.IGetModelRequest, @@ -590,10 +586,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.updateModel(request); - * - * @example include:samples/generated/v1/model_service.update_model.js - * region_tag:aiplatform_update_model_sample - * */ updateModel( request?: protos.google.cloud.aiplatform.v1.IUpdateModelRequest, @@ -685,10 +677,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.getModelEvaluation(request); - * - * @example include:samples/generated/v1/model_service.get_model_evaluation.js - * region_tag:aiplatform_get_model_evaluation_sample - * */ getModelEvaluation( request?: protos.google.cloud.aiplatform.v1.IGetModelEvaluationRequest, @@ -785,10 +773,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.getModelEvaluationSlice(request); - * - * @example include:samples/generated/v1/model_service.get_model_evaluation_slice.js - * region_tag:aiplatform_get_model_evaluation_slice_sample - * */ getModelEvaluationSlice( request?: protos.google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, @@ -899,10 +883,6 @@ export class ModelServiceClient { * @example * const [operation] = await client.uploadModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/model_service.upload_model.js - * region_tag:aiplatform_upload_model_sample - * */ uploadModel( request?: protos.google.cloud.aiplatform.v1.IUploadModelRequest, @@ -966,10 +946,6 @@ export class ModelServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/model_service.upload_model.js - * region_tag:aiplatform_upload_model_sample - * */ async checkUploadModelProgress( name: string @@ -1051,10 +1027,6 @@ export class ModelServiceClient { * @example * const [operation] = await client.deleteModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/model_service.delete_model.js - * region_tag:aiplatform_delete_model_sample - * */ deleteModel( request?: protos.google.cloud.aiplatform.v1.IDeleteModelRequest, @@ -1118,10 +1090,6 @@ export class ModelServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/model_service.delete_model.js - * region_tag:aiplatform_delete_model_sample - * */ async checkDeleteModelProgress( name: string @@ -1205,10 +1173,6 @@ export class ModelServiceClient { * @example * const [operation] = await client.exportModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/model_service.export_model.js - * region_tag:aiplatform_export_model_sample - * */ exportModel( request?: protos.google.cloud.aiplatform.v1.IExportModelRequest, @@ -1272,10 +1236,6 @@ export class ModelServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/model_service.export_model.js - * region_tag:aiplatform_export_model_sample - * */ async checkExportModelProgress( name: string @@ -1380,10 +1340,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/model_service.list_models.js - * region_tag:aiplatform_list_models_sample - * */ listModels( request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, @@ -1479,10 +1435,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/model_service.list_models.js - * region_tag:aiplatform_list_models_sample - * */ listModelsStream( request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, @@ -1564,10 +1516,6 @@ export class ModelServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/model_service.list_models.js - * region_tag:aiplatform_list_models_sample - * */ listModelsAsync( request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, @@ -1653,10 +1601,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/model_service.list_model_evaluations.js - * region_tag:aiplatform_list_model_evaluations_sample - * */ listModelEvaluations( request?: protos.google.cloud.aiplatform.v1.IListModelEvaluationsRequest, @@ -1731,10 +1675,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/model_service.list_model_evaluations.js - * region_tag:aiplatform_list_model_evaluations_sample - * */ listModelEvaluationsStream( request?: protos.google.cloud.aiplatform.v1.IListModelEvaluationsRequest, @@ -1793,10 +1733,6 @@ export class ModelServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/model_service.list_model_evaluations.js - * region_tag:aiplatform_list_model_evaluations_sample - * */ listModelEvaluationsAsync( request?: protos.google.cloud.aiplatform.v1.IListModelEvaluationsRequest, @@ -1885,10 +1821,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/model_service.list_model_evaluation_slices.js - * region_tag:aiplatform_list_model_evaluation_slices_sample - * */ listModelEvaluationSlices( request?: protos.google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, @@ -1970,10 +1902,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/model_service.list_model_evaluation_slices.js - * region_tag:aiplatform_list_model_evaluation_slices_sample - * */ listModelEvaluationSlicesStream( request?: protos.google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, @@ -2035,10 +1963,6 @@ export class ModelServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/model_service.list_model_evaluation_slices.js - * region_tag:aiplatform_list_model_evaluation_slices_sample - * */ listModelEvaluationSlicesAsync( request?: protos.google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index 81cad873c67..f7f2dfb2546 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -500,10 +500,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.createTrainingPipeline(request); - * - * @example include:samples/generated/v1/pipeline_service.create_training_pipeline.js - * region_tag:aiplatform_create_training_pipeline_sample - * */ createTrainingPipeline( request?: protos.google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, @@ -604,10 +600,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.getTrainingPipeline(request); - * - * @example include:samples/generated/v1/pipeline_service.get_training_pipeline.js - * region_tag:aiplatform_get_training_pipeline_sample - * */ getTrainingPipeline( request?: protos.google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, @@ -713,10 +705,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.cancelTrainingPipeline(request); - * - * @example include:samples/generated/v1/pipeline_service.cancel_training_pipeline.js - * region_tag:aiplatform_cancel_training_pipeline_sample - * */ cancelTrainingPipeline( request?: protos.google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, @@ -825,10 +813,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.createPipelineJob(request); - * - * @example include:samples/generated/v1/pipeline_service.create_pipeline_job.js - * region_tag:aiplatform_create_pipeline_job_sample - * */ createPipelineJob( request?: protos.google.cloud.aiplatform.v1.ICreatePipelineJobRequest, @@ -922,10 +906,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.getPipelineJob(request); - * - * @example include:samples/generated/v1/pipeline_service.get_pipeline_job.js - * region_tag:aiplatform_get_pipeline_job_sample - * */ getPipelineJob( request?: protos.google.cloud.aiplatform.v1.IGetPipelineJobRequest, @@ -1028,10 +1008,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.cancelPipelineJob(request); - * - * @example include:samples/generated/v1/pipeline_service.cancel_pipeline_job.js - * region_tag:aiplatform_cancel_pipeline_job_sample - * */ cancelPipelineJob( request?: protos.google.cloud.aiplatform.v1.ICancelPipelineJobRequest, @@ -1134,10 +1110,6 @@ export class PipelineServiceClient { * @example * const [operation] = await client.deleteTrainingPipeline(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/pipeline_service.delete_training_pipeline.js - * region_tag:aiplatform_delete_training_pipeline_sample - * */ deleteTrainingPipeline( request?: protos.google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, @@ -1205,10 +1177,6 @@ export class PipelineServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/pipeline_service.delete_training_pipeline.js - * region_tag:aiplatform_delete_training_pipeline_sample - * */ async checkDeleteTrainingPipelineProgress( name: string @@ -1289,10 +1257,6 @@ export class PipelineServiceClient { * @example * const [operation] = await client.deletePipelineJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/pipeline_service.delete_pipeline_job.js - * region_tag:aiplatform_delete_pipeline_job_sample - * */ deletePipelineJob( request?: protos.google.cloud.aiplatform.v1.IDeletePipelineJobRequest, @@ -1356,10 +1320,6 @@ export class PipelineServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/pipeline_service.delete_pipeline_job.js - * region_tag:aiplatform_delete_pipeline_job_sample - * */ async checkDeletePipelineJobProgress( name: string @@ -1460,10 +1420,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/pipeline_service.list_training_pipelines.js - * region_tag:aiplatform_list_training_pipelines_sample - * */ listTrainingPipelines( request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, @@ -1553,10 +1509,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/pipeline_service.list_training_pipelines.js - * region_tag:aiplatform_list_training_pipelines_sample - * */ listTrainingPipelinesStream( request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, @@ -1630,10 +1582,6 @@ export class PipelineServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/pipeline_service.list_training_pipelines.js - * region_tag:aiplatform_list_training_pipelines_sample - * */ listTrainingPipelinesAsync( request?: protos.google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, @@ -1742,10 +1690,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/pipeline_service.list_pipeline_jobs.js - * region_tag:aiplatform_list_pipeline_jobs_sample - * */ listPipelineJobs( request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, @@ -1843,10 +1787,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/pipeline_service.list_pipeline_jobs.js - * region_tag:aiplatform_list_pipeline_jobs_sample - * */ listPipelineJobsStream( request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, @@ -1928,10 +1868,6 @@ export class PipelineServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/pipeline_service.list_pipeline_jobs.js - * region_tag:aiplatform_list_pipeline_jobs_sample - * */ listPipelineJobsAsync( request?: protos.google.cloud.aiplatform.v1.IListPipelineJobsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index fed6e44745e..2c68af443cc 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -418,10 +418,6 @@ export class PredictionServiceClient { * for more details and examples. * @example * const [response] = await client.predict(request); - * - * @example include:samples/generated/v1/prediction_service.predict.js - * region_tag:aiplatform_predict_sample - * */ predict( request?: protos.google.cloud.aiplatform.v1.IPredictRequest, @@ -521,10 +517,6 @@ export class PredictionServiceClient { * for more details and examples. * @example * const [response] = await client.rawPredict(request); - * - * @example include:samples/generated/v1/prediction_service.raw_predict.js - * region_tag:aiplatform_raw_predict_sample - * */ rawPredict( request?: protos.google.cloud.aiplatform.v1.IRawPredictRequest, @@ -648,10 +640,6 @@ export class PredictionServiceClient { * for more details and examples. * @example * const [response] = await client.explain(request); - * - * @example include:samples/generated/v1/prediction_service.explain.js - * region_tag:aiplatform_explain_sample - * */ explain( request?: protos.google.cloud.aiplatform.v1.IExplainRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index fbdb5d80279..bc133461643 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -497,10 +497,6 @@ export class SpecialistPoolServiceClient { * for more details and examples. * @example * const [response] = await client.getSpecialistPool(request); - * - * @example include:samples/generated/v1/specialist_pool_service.get_specialist_pool.js - * region_tag:aiplatform_get_specialist_pool_sample - * */ getSpecialistPool( request?: protos.google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, @@ -604,10 +600,6 @@ export class SpecialistPoolServiceClient { * @example * const [operation] = await client.createSpecialistPool(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/specialist_pool_service.create_specialist_pool.js - * region_tag:aiplatform_create_specialist_pool_sample - * */ createSpecialistPool( request?: protos.google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, @@ -671,10 +663,6 @@ export class SpecialistPoolServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/specialist_pool_service.create_specialist_pool.js - * region_tag:aiplatform_create_specialist_pool_sample - * */ async checkCreateSpecialistPoolProgress( name: string @@ -758,10 +746,6 @@ export class SpecialistPoolServiceClient { * @example * const [operation] = await client.deleteSpecialistPool(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/specialist_pool_service.delete_specialist_pool.js - * region_tag:aiplatform_delete_specialist_pool_sample - * */ deleteSpecialistPool( request?: protos.google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, @@ -825,10 +809,6 @@ export class SpecialistPoolServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/specialist_pool_service.delete_specialist_pool.js - * region_tag:aiplatform_delete_specialist_pool_sample - * */ async checkDeleteSpecialistPoolProgress( name: string @@ -909,10 +889,6 @@ export class SpecialistPoolServiceClient { * @example * const [operation] = await client.updateSpecialistPool(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1/specialist_pool_service.update_specialist_pool.js - * region_tag:aiplatform_update_specialist_pool_sample - * */ updateSpecialistPool( request?: protos.google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, @@ -976,10 +952,6 @@ export class SpecialistPoolServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1/specialist_pool_service.update_specialist_pool.js - * region_tag:aiplatform_update_specialist_pool_sample - * */ async checkUpdateSpecialistPoolProgress( name: string @@ -1063,10 +1035,6 @@ export class SpecialistPoolServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/specialist_pool_service.list_specialist_pools.js - * region_tag:aiplatform_list_specialist_pools_sample - * */ listSpecialistPools( request?: protos.google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, @@ -1139,10 +1107,6 @@ export class SpecialistPoolServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1/specialist_pool_service.list_specialist_pools.js - * region_tag:aiplatform_list_specialist_pools_sample - * */ listSpecialistPoolsStream( request?: protos.google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, @@ -1199,10 +1163,6 @@ export class SpecialistPoolServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1/specialist_pool_service.list_specialist_pools.js - * region_tag:aiplatform_list_specialist_pools_sample - * */ listSpecialistPoolsAsync( request?: protos.google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json index 022b0853282..0ac5b4ccfe1 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json @@ -85,5 +85,6 @@ "../../protos/google/cloud/aiplatform/v1/study.proto", "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", - "../../protos/google/cloud/aiplatform/v1/value.proto" + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" ] diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts new file mode 100644 index 00000000000..71af3e5d586 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -0,0 +1,3633 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import * as gax from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + LROperation, + PaginationCallback, + GaxCall, +} from 'google-gax'; + +import {Transform} from 'stream'; +import {RequestType} from 'google-gax/build/src/apitypes'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/vizier_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './vizier_service_client_config.json'; +import {operationsProtos} from 'google-gax'; +const version = require('../../../package.json').version; + +/** + * Vertex Vizier API. + * + * Vizier service is a GCP service to solve blackbox optimization problems, + * such as tuning machine learning hyperparameters and searching over deep + * learning architectures. + * @class + * @memberof v1 + */ +export class VizierServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; + vizierServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of VizierServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. + * In fallback mode, a special browser-compatible transport implementation is used + * instead of gRPC transport. In browser context (if the `window` object is defined) + * the fallback mode is enabled automatically; set `options.fallback` to `false` + * if you need to override this behavior. + */ + constructor(opts?: ClientOptions) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof VizierServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gax.fallback : gax; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + endpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + locationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listStudies: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'studies' + ), + listTrials: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'trials' + ), + }; + + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + + this.operationsClient = this._gaxModule + .lro({ + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }) + .operationsClient(opts); + const suggestTrialsResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.SuggestTrialsResponse' + ) as gax.protobuf.Type; + const suggestTrialsMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.SuggestTrialsMetadata' + ) as gax.protobuf.Type; + const checkTrialEarlyStoppingStateResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse' + ) as gax.protobuf.Type; + const checkTrialEarlyStoppingStateMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata' + ) as gax.protobuf.Type; + + this.descriptors.longrunning = { + suggestTrials: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + suggestTrialsResponse.decode.bind(suggestTrialsResponse), + suggestTrialsMetadata.decode.bind(suggestTrialsMetadata) + ), + checkTrialEarlyStoppingState: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + checkTrialEarlyStoppingStateResponse.decode.bind( + checkTrialEarlyStoppingStateResponse + ), + checkTrialEarlyStoppingStateMetadata.decode.bind( + checkTrialEarlyStoppingStateMetadata + ) + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1.VizierService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = gax.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.vizierServiceStub) { + return this.vizierServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1.VizierService. + this.vizierServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1.VizierService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1.VizierService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const vizierServiceStubMethods = [ + 'createStudy', + 'getStudy', + 'listStudies', + 'deleteStudy', + 'lookupStudy', + 'suggestTrials', + 'createTrial', + 'getTrial', + 'listTrials', + 'addTrialMeasurement', + 'completeTrial', + 'deleteTrial', + 'checkTrialEarlyStoppingState', + 'stopTrial', + 'listOptimalTrials', + ]; + for (const methodName of vizierServiceStubMethods) { + const callPromise = this.vizierServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.vizierServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'aiplatform.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + createStudy( + request?: protos.google.cloud.aiplatform.v1.ICreateStudyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ICreateStudyRequest | undefined, + {} | undefined + ] + >; + createStudy( + request: protos.google.cloud.aiplatform.v1.ICreateStudyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ICreateStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + createStudy( + request: protos.google.cloud.aiplatform.v1.ICreateStudyRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ICreateStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Creates a Study. A resource name will be generated after creation of the + * Study. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.Study} request.study + * Required. The Study configuration used to create the Study. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Study]{@link google.cloud.aiplatform.v1.Study}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createStudy(request); + */ + createStudy( + request?: protos.google.cloud.aiplatform.v1.ICreateStudyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IStudy, + | protos.google.cloud.aiplatform.v1.ICreateStudyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ICreateStudyRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ICreateStudyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createStudy(request, options, callback); + } + getStudy( + request?: protos.google.cloud.aiplatform.v1.IGetStudyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.IGetStudyRequest | undefined, + {} | undefined + ] + >; + getStudy( + request: protos.google.cloud.aiplatform.v1.IGetStudyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.IGetStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + getStudy( + request: protos.google.cloud.aiplatform.v1.IGetStudyRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.IGetStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Gets a Study by name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Study]{@link google.cloud.aiplatform.v1.Study}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getStudy(request); + */ + getStudy( + request?: protos.google.cloud.aiplatform.v1.IGetStudyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.IGetStudyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.IGetStudyRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.IGetStudyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getStudy(request, options, callback); + } + deleteStudy( + request?: protos.google.cloud.aiplatform.v1.IDeleteStudyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteStudyRequest | undefined, + {} | undefined + ] + >; + deleteStudy( + request: protos.google.cloud.aiplatform.v1.IDeleteStudyRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + deleteStudy( + request: protos.google.cloud.aiplatform.v1.IDeleteStudyRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a Study. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteStudy(request); + */ + deleteStudy( + request?: protos.google.cloud.aiplatform.v1.IDeleteStudyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IDeleteStudyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteStudyRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteStudyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteStudy(request, options, callback); + } + lookupStudy( + request?: protos.google.cloud.aiplatform.v1.ILookupStudyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ILookupStudyRequest | undefined, + {} | undefined + ] + >; + lookupStudy( + request: protos.google.cloud.aiplatform.v1.ILookupStudyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ILookupStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + lookupStudy( + request: protos.google.cloud.aiplatform.v1.ILookupStudyRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ILookupStudyRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Looks a study up using the user-defined display_name field instead of the + * fully qualified resource name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to get the Study from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.displayName + * Required. The user-defined display name of the Study + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Study]{@link google.cloud.aiplatform.v1.Study}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.lookupStudy(request); + */ + lookupStudy( + request?: protos.google.cloud.aiplatform.v1.ILookupStudyRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IStudy, + | protos.google.cloud.aiplatform.v1.ILookupStudyRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ILookupStudyRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy, + protos.google.cloud.aiplatform.v1.ILookupStudyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.lookupStudy(request, options, callback); + } + createTrial( + request?: protos.google.cloud.aiplatform.v1.ICreateTrialRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICreateTrialRequest | undefined, + {} | undefined + ] + >; + createTrial( + request: protos.google.cloud.aiplatform.v1.ICreateTrialRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICreateTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + createTrial( + request: protos.google.cloud.aiplatform.v1.ICreateTrialRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICreateTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Adds a user provided Trial to a Study. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {google.cloud.aiplatform.v1.Trial} request.trial + * Required. The Trial to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Trial]{@link google.cloud.aiplatform.v1.Trial}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createTrial(request); + */ + createTrial( + request?: protos.google.cloud.aiplatform.v1.ICreateTrialRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.ICreateTrialRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICreateTrialRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICreateTrialRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createTrial(request, options, callback); + } + getTrial( + request?: protos.google.cloud.aiplatform.v1.IGetTrialRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IGetTrialRequest | undefined, + {} | undefined + ] + >; + getTrial( + request: protos.google.cloud.aiplatform.v1.IGetTrialRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IGetTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + getTrial( + request: protos.google.cloud.aiplatform.v1.IGetTrialRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IGetTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Gets a Trial. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Trial]{@link google.cloud.aiplatform.v1.Trial}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getTrial(request); + */ + getTrial( + request?: protos.google.cloud.aiplatform.v1.IGetTrialRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IGetTrialRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IGetTrialRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IGetTrialRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getTrial(request, options, callback); + } + addTrialMeasurement( + request?: protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest | undefined, + {} | undefined + ] + >; + addTrialMeasurement( + request: protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest + | null + | undefined, + {} | null | undefined + > + ): void; + addTrialMeasurement( + request: protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Adds a measurement of the objective metrics to a Trial. This measurement + * is assumed to have been taken before the Trial is complete. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.trialName + * Required. The name of the trial to add measurement. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @param {google.cloud.aiplatform.v1.Measurement} request.measurement + * Required. The measurement to be added to a Trial. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Trial]{@link google.cloud.aiplatform.v1.Trial}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.addTrialMeasurement(request); + */ + addTrialMeasurement( + request?: protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IAddTrialMeasurementRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + trial_name: request.trialName || '', + }); + this.initialize(); + return this.innerApiCalls.addTrialMeasurement(request, options, callback); + } + completeTrial( + request?: protos.google.cloud.aiplatform.v1.ICompleteTrialRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICompleteTrialRequest | undefined, + {} | undefined + ] + >; + completeTrial( + request: protos.google.cloud.aiplatform.v1.ICompleteTrialRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.ICompleteTrialRequest + | null + | undefined, + {} | null | undefined + > + ): void; + completeTrial( + request: protos.google.cloud.aiplatform.v1.ICompleteTrialRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.ICompleteTrialRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Marks a Trial as complete. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @param {google.cloud.aiplatform.v1.Measurement} [request.finalMeasurement] + * Optional. If provided, it will be used as the completed Trial's + * final_measurement; Otherwise, the service will auto-select a + * previously reported measurement as the final-measurement + * @param {boolean} [request.trialInfeasible] + * Optional. True if the Trial cannot be run with the given Parameter, and + * final_measurement will be ignored. + * @param {string} [request.infeasibleReason] + * Optional. A human readable reason why the trial was infeasible. This should + * only be provided if `trial_infeasible` is true. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Trial]{@link google.cloud.aiplatform.v1.Trial}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.completeTrial(request); + */ + completeTrial( + request?: protos.google.cloud.aiplatform.v1.ICompleteTrialRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.ICompleteTrialRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.ICompleteTrialRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.ICompleteTrialRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.completeTrial(request, options, callback); + } + deleteTrial( + request?: protos.google.cloud.aiplatform.v1.IDeleteTrialRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteTrialRequest | undefined, + {} | undefined + ] + >; + deleteTrial( + request: protos.google.cloud.aiplatform.v1.IDeleteTrialRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + deleteTrial( + request: protos.google.cloud.aiplatform.v1.IDeleteTrialRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes a Trial. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteTrial(request); + */ + deleteTrial( + request?: protos.google.cloud.aiplatform.v1.IDeleteTrialRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IDeleteTrialRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteTrialRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteTrialRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteTrial(request, options, callback); + } + stopTrial( + request?: protos.google.cloud.aiplatform.v1.IStopTrialRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IStopTrialRequest | undefined, + {} | undefined + ] + >; + stopTrial( + request: protos.google.cloud.aiplatform.v1.IStopTrialRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IStopTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + stopTrial( + request: protos.google.cloud.aiplatform.v1.IStopTrialRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IStopTrialRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Stops a Trial. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Trial]{@link google.cloud.aiplatform.v1.Trial}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.stopTrial(request); + */ + stopTrial( + request?: protos.google.cloud.aiplatform.v1.IStopTrialRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ITrial, + | protos.google.cloud.aiplatform.v1.IStopTrialRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IStopTrialRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial, + protos.google.cloud.aiplatform.v1.IStopTrialRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.stopTrial(request, options, callback); + } + listOptimalTrials( + request?: protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse, + protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest | undefined, + {} | undefined + ] + >; + listOptimalTrials( + request: protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse, + | protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + listOptimalTrials( + request: protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse, + | protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Lists the pareto-optimal Trials for multi-objective Study or the + * optimal Trials for single-objective Study. The definition of + * pareto-optimal can be checked in wiki page. + * https://en.wikipedia.org/wiki/Pareto_efficiency + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the Study that the optimal Trial belongs to. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListOptimalTrialsResponse]{@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.listOptimalTrials(request); + */ + listOptimalTrials( + request?: protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse, + | protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse, + | protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse, + protos.google.cloud.aiplatform.v1.IListOptimalTrialsRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listOptimalTrials(request, options, callback); + } + + suggestTrials( + request?: protos.google.cloud.aiplatform.v1.ISuggestTrialsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + suggestTrials( + request: protos.google.cloud.aiplatform.v1.ISuggestTrialsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + suggestTrials( + request: protos.google.cloud.aiplatform.v1.ISuggestTrialsRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + /** + * Adds one or more Trials to a Study, with parameter values + * suggested by Vertex Vizier. Returns a long-running + * operation associated with the generation of Trial suggestions. + * When this long-running operation succeeds, it will contain + * a {@link google.cloud.ml.v1.SuggestTrialsResponse|SuggestTrialsResponse}. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location that the Study belongs to. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {number} request.suggestionCount + * Required. The number of suggestions requested. + * @param {string} request.clientId + * Required. The identifier of the client that is requesting the suggestion. + * + * If multiple SuggestTrialsRequests have the same `client_id`, + * the service will return the identical suggested Trial if the Trial is + * pending, and provide a new Trial if the last suggested Trial was completed. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example + * const [operation] = await client.suggestTrials(request); + * const [response] = await operation.promise(); + */ + suggestTrials( + request?: protos.google.cloud.aiplatform.v1.ISuggestTrialsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.suggestTrials(request, options, callback); + } + /** + * Check the status of the long running operation returned by `suggestTrials()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example + * const decodedOperation = await checkSuggestTrialsProgress(name); + * console.log(decodedOperation.result); + * console.log(decodedOperation.done); + * console.log(decodedOperation.metadata); + */ + async checkSuggestTrialsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.SuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.SuggestTrialsMetadata + > + > { + const request = new operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new gax.Operation( + operation, + this.descriptors.longrunning.suggestTrials, + gax.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.SuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.SuggestTrialsMetadata + >; + } + checkTrialEarlyStoppingState( + request?: protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + checkTrialEarlyStoppingState( + request: protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + checkTrialEarlyStoppingState( + request: protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + /** + * Checks whether a Trial should stop or not. Returns a + * long-running operation. When the operation is successful, + * it will contain a + * {@link google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse|CheckTrialEarlyStoppingStateResponse}. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.trialName + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example + * const [operation] = await client.checkTrialEarlyStoppingState(request); + * const [response] = await operation.promise(); + */ + checkTrialEarlyStoppingState( + request?: protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + trial_name: request.trialName || '', + }); + this.initialize(); + return this.innerApiCalls.checkTrialEarlyStoppingState( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `checkTrialEarlyStoppingState()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example + * const decodedOperation = await checkCheckTrialEarlyStoppingStateProgress(name); + * console.log(decodedOperation.result); + * console.log(decodedOperation.done); + * console.log(decodedOperation.metadata); + */ + async checkCheckTrialEarlyStoppingStateProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + > + > { + const request = new operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new gax.Operation( + operation, + this.descriptors.longrunning.checkTrialEarlyStoppingState, + gax.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + >; + } + listStudies( + request?: protos.google.cloud.aiplatform.v1.IListStudiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy[], + protos.google.cloud.aiplatform.v1.IListStudiesRequest | null, + protos.google.cloud.aiplatform.v1.IListStudiesResponse + ] + >; + listStudies( + request: protos.google.cloud.aiplatform.v1.IListStudiesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListStudiesRequest, + protos.google.cloud.aiplatform.v1.IListStudiesResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IStudy + > + ): void; + listStudies( + request: protos.google.cloud.aiplatform.v1.IListStudiesRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListStudiesRequest, + protos.google.cloud.aiplatform.v1.IListStudiesResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IStudy + > + ): void; + /** + * Lists all the studies in a region for an associated project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the Study from. + * Format: `projects/{project}/locations/{location}` + * @param {string} [request.pageToken] + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + * @param {number} [request.pageSize] + * Optional. The maximum number of studies to return per "page" of results. + * If unspecified, service will pick an appropriate default. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Study]{@link google.cloud.aiplatform.v1.Study}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listStudiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listStudies( + request?: protos.google.cloud.aiplatform.v1.IListStudiesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListStudiesRequest, + | protos.google.cloud.aiplatform.v1.IListStudiesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IStudy + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListStudiesRequest, + protos.google.cloud.aiplatform.v1.IListStudiesResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IStudy + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IStudy[], + protos.google.cloud.aiplatform.v1.IListStudiesRequest | null, + protos.google.cloud.aiplatform.v1.IListStudiesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listStudies(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the Study from. + * Format: `projects/{project}/locations/{location}` + * @param {string} [request.pageToken] + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + * @param {number} [request.pageSize] + * Optional. The maximum number of studies to return per "page" of results. + * If unspecified, service will pick an appropriate default. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Study]{@link google.cloud.aiplatform.v1.Study} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listStudiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listStudiesStream( + request?: protos.google.cloud.aiplatform.v1.IListStudiesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listStudies']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listStudies.createStream( + this.innerApiCalls.listStudies as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listStudies`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the Study from. + * Format: `projects/{project}/locations/{location}` + * @param {string} [request.pageToken] + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + * @param {number} [request.pageSize] + * Optional. The maximum number of studies to return per "page" of results. + * If unspecified, service will pick an appropriate default. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Study]{@link google.cloud.aiplatform.v1.Study}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listStudiesAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listStudiesAsync( + request?: protos.google.cloud.aiplatform.v1.IListStudiesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const defaultCallSettings = this._defaults['listStudies']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listStudies.asyncIterate( + this.innerApiCalls['listStudies'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + listTrials( + request?: protos.google.cloud.aiplatform.v1.IListTrialsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial[], + protos.google.cloud.aiplatform.v1.IListTrialsRequest | null, + protos.google.cloud.aiplatform.v1.IListTrialsResponse + ] + >; + listTrials( + request: protos.google.cloud.aiplatform.v1.IListTrialsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrialsRequest, + protos.google.cloud.aiplatform.v1.IListTrialsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.ITrial + > + ): void; + listTrials( + request: protos.google.cloud.aiplatform.v1.IListTrialsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrialsRequest, + protos.google.cloud.aiplatform.v1.IListTrialsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.ITrial + > + ): void; + /** + * Lists the Trials associated with a Study. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Study to list the Trial from. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {string} [request.pageToken] + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + * @param {number} [request.pageSize] + * Optional. The number of Trials to retrieve per "page" of results. + * If unspecified, the service will pick an appropriate default. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Trial]{@link google.cloud.aiplatform.v1.Trial}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listTrialsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listTrials( + request?: protos.google.cloud.aiplatform.v1.IListTrialsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrialsRequest, + | protos.google.cloud.aiplatform.v1.IListTrialsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ITrial + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListTrialsRequest, + protos.google.cloud.aiplatform.v1.IListTrialsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.ITrial + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ITrial[], + protos.google.cloud.aiplatform.v1.IListTrialsRequest | null, + protos.google.cloud.aiplatform.v1.IListTrialsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listTrials(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Study to list the Trial from. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {string} [request.pageToken] + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + * @param {number} [request.pageSize] + * Optional. The number of Trials to retrieve per "page" of results. + * If unspecified, the service will pick an appropriate default. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Trial]{@link google.cloud.aiplatform.v1.Trial} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listTrialsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listTrialsStream( + request?: protos.google.cloud.aiplatform.v1.IListTrialsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listTrials']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listTrials.createStream( + this.innerApiCalls.listTrials as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listTrials`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Study to list the Trial from. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @param {string} [request.pageToken] + * Optional. A page token to request the next page of results. + * If unspecified, there are no subsequent pages. + * @param {number} [request.pageSize] + * Optional. The number of Trials to retrieve per "page" of results. + * If unspecified, the service will pick an appropriate default. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Trial]{@link google.cloud.aiplatform.v1.Trial}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listTrialsAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listTrialsAsync( + request?: protos.google.cloud.aiplatform.v1.IListTrialsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const defaultCallSettings = this._defaults['listTrials']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listTrials.asyncIterate( + this.innerApiCalls['listTrials'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified endpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + endpointPath(project: string, location: string, endpoint: string) { + return this.pathTemplates.endpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from Endpoint resource. + * + * @param {string} endpointName + * A fully-qualified path representing Endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEndpointName(endpointName: string) { + return this.pathTemplates.endpointPathTemplate.match(endpointName).project; + } + + /** + * Parse the location from Endpoint resource. + * + * @param {string} endpointName + * A fully-qualified path representing Endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEndpointName(endpointName: string) { + return this.pathTemplates.endpointPathTemplate.match(endpointName).location; + } + + /** + * Parse the endpoint from Endpoint resource. + * + * @param {string} endpointName + * A fully-qualified path representing Endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromEndpointName(endpointName: string) { + return this.pathTemplates.endpointPathTemplate.match(endpointName).endpoint; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified location resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + locationPath(project: string, location: string) { + return this.pathTemplates.locationPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).project; + } + + /** + * Parse the location from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).location; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + this.initialize(); + if (!this._terminated) { + return this.vizierServiceStub!.then(stub => { + this._terminated = true; + stub.close(); + this.operationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/vizier_service_client_config.json new file mode 100644 index 00000000000..fe86ba2bb2a --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client_config.json @@ -0,0 +1,86 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1.VizierService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateStudy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetStudy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListStudies": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteStudy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "LookupStudy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SuggestTrials": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateTrial": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetTrial": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListTrials": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "AddTrialMeasurement": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CompleteTrial": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteTrial": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CheckTrialEarlyStoppingState": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "StopTrial": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListOptimalTrials": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json new file mode 100644 index 00000000000..0ac5b4ccfe1 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json @@ -0,0 +1,90 @@ +[ + "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", + "../../protos/google/cloud/aiplatform/v1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", + "../../protos/google/cloud/aiplatform/v1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/index.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1/io.proto", + "../../protos/google/cloud/aiplatform/v1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1/model.proto", + "../../protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/study.proto", + "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" +] diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts index 6ef3a2a5c46..099a0dfe9b3 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -544,10 +544,6 @@ export class DatasetServiceClient { * for more details and examples. * @example * const [response] = await client.getDataset(request); - * - * @example include:samples/generated/v1beta1/dataset_service.get_dataset.js - * region_tag:aiplatform_get_dataset_sample - * */ getDataset( request?: protos.google.cloud.aiplatform.v1beta1.IGetDatasetRequest, @@ -647,10 +643,6 @@ export class DatasetServiceClient { * for more details and examples. * @example * const [response] = await client.updateDataset(request); - * - * @example include:samples/generated/v1beta1/dataset_service.update_dataset.js - * region_tag:aiplatform_update_dataset_sample - * */ updateDataset( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, @@ -749,10 +741,6 @@ export class DatasetServiceClient { * for more details and examples. * @example * const [response] = await client.getAnnotationSpec(request); - * - * @example include:samples/generated/v1beta1/dataset_service.get_annotation_spec.js - * region_tag:aiplatform_get_annotation_spec_sample - * */ getAnnotationSpec( request?: protos.google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, @@ -859,10 +847,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.createDataset(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/dataset_service.create_dataset.js - * region_tag:aiplatform_create_dataset_sample - * */ createDataset( request?: protos.google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, @@ -926,10 +910,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/dataset_service.create_dataset.js - * region_tag:aiplatform_create_dataset_sample - * */ async checkCreateDatasetProgress( name: string @@ -1010,10 +990,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.deleteDataset(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/dataset_service.delete_dataset.js - * region_tag:aiplatform_delete_dataset_sample - * */ deleteDataset( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, @@ -1077,10 +1053,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/dataset_service.delete_dataset.js - * region_tag:aiplatform_delete_dataset_sample - * */ async checkDeleteDatasetProgress( name: string @@ -1164,10 +1136,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.importData(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/dataset_service.import_data.js - * region_tag:aiplatform_import_data_sample - * */ importData( request?: protos.google.cloud.aiplatform.v1beta1.IImportDataRequest, @@ -1231,10 +1199,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/dataset_service.import_data.js - * region_tag:aiplatform_import_data_sample - * */ async checkImportDataProgress( name: string @@ -1317,10 +1281,6 @@ export class DatasetServiceClient { * @example * const [operation] = await client.exportData(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/dataset_service.export_data.js - * region_tag:aiplatform_export_data_sample - * */ exportData( request?: protos.google.cloud.aiplatform.v1beta1.IExportDataRequest, @@ -1384,10 +1344,6 @@ export class DatasetServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/dataset_service.export_data.js - * region_tag:aiplatform_export_data_sample - * */ async checkExportDataProgress( name: string @@ -1489,10 +1445,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/dataset_service.list_datasets.js - * region_tag:aiplatform_list_datasets_sample - * */ listDatasets( request?: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, @@ -1583,10 +1535,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/dataset_service.list_datasets.js - * region_tag:aiplatform_list_datasets_sample - * */ listDatasetsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, @@ -1661,10 +1609,6 @@ export class DatasetServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/dataset_service.list_datasets.js - * region_tag:aiplatform_list_datasets_sample - * */ listDatasetsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, @@ -1751,10 +1695,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/dataset_service.list_data_items.js - * region_tag:aiplatform_list_data_items_sample - * */ listDataItems( request?: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, @@ -1830,10 +1770,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/dataset_service.list_data_items.js - * region_tag:aiplatform_list_data_items_sample - * */ listDataItemsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, @@ -1893,10 +1829,6 @@ export class DatasetServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/dataset_service.list_data_items.js - * region_tag:aiplatform_list_data_items_sample - * */ listDataItemsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, @@ -1983,10 +1915,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/dataset_service.list_annotations.js - * region_tag:aiplatform_list_annotations_sample - * */ listAnnotations( request?: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, @@ -2062,10 +1990,6 @@ export class DatasetServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/dataset_service.list_annotations.js - * region_tag:aiplatform_list_annotations_sample - * */ listAnnotationsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, @@ -2125,10 +2049,6 @@ export class DatasetServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/dataset_service.list_annotations.js - * region_tag:aiplatform_list_annotations_sample - * */ listAnnotationsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts index 40a2f65be4a..a330d60a607 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -530,10 +530,6 @@ export class EndpointServiceClient { * for more details and examples. * @example * const [response] = await client.getEndpoint(request); - * - * @example include:samples/generated/v1beta1/endpoint_service.get_endpoint.js - * region_tag:aiplatform_get_endpoint_sample - * */ getEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.IGetEndpointRequest, @@ -627,10 +623,6 @@ export class EndpointServiceClient { * for more details and examples. * @example * const [response] = await client.updateEndpoint(request); - * - * @example include:samples/generated/v1beta1/endpoint_service.update_endpoint.js - * region_tag:aiplatform_update_endpoint_sample - * */ updateEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, @@ -734,10 +726,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.createEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/endpoint_service.create_endpoint.js - * region_tag:aiplatform_create_endpoint_sample - * */ createEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, @@ -801,10 +789,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/endpoint_service.create_endpoint.js - * region_tag:aiplatform_create_endpoint_sample - * */ async checkCreateEndpointProgress( name: string @@ -885,10 +869,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.deleteEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/endpoint_service.delete_endpoint.js - * region_tag:aiplatform_delete_endpoint_sample - * */ deleteEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, @@ -952,10 +932,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/endpoint_service.delete_endpoint.js - * region_tag:aiplatform_delete_endpoint_sample - * */ async checkDeleteEndpointProgress( name: string @@ -1053,10 +1029,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.deployModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/endpoint_service.deploy_model.js - * region_tag:aiplatform_deploy_model_sample - * */ deployModel( request?: protos.google.cloud.aiplatform.v1beta1.IDeployModelRequest, @@ -1120,10 +1092,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/endpoint_service.deploy_model.js - * region_tag:aiplatform_deploy_model_sample - * */ async checkDeployModelProgress( name: string @@ -1215,10 +1183,6 @@ export class EndpointServiceClient { * @example * const [operation] = await client.undeployModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/endpoint_service.undeploy_model.js - * region_tag:aiplatform_undeploy_model_sample - * */ undeployModel( request?: protos.google.cloud.aiplatform.v1beta1.IUndeployModelRequest, @@ -1282,10 +1246,6 @@ export class EndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/endpoint_service.undeploy_model.js - * region_tag:aiplatform_undeploy_model_sample - * */ async checkUndeployModelProgress( name: string @@ -1385,10 +1345,6 @@ export class EndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/endpoint_service.list_endpoints.js - * region_tag:aiplatform_list_endpoints_sample - * */ listEndpoints( request?: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, @@ -1477,10 +1433,6 @@ export class EndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/endpoint_service.list_endpoints.js - * region_tag:aiplatform_list_endpoints_sample - * */ listEndpointsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, @@ -1553,10 +1505,6 @@ export class EndpointServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/endpoint_service.list_endpoints.js - * region_tag:aiplatform_list_endpoints_sample - * */ listEndpointsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts index b53b3cb5347..d243bf73285 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts @@ -460,10 +460,6 @@ export class FeaturestoreOnlineServingServiceClient { * for more details and examples. * @example * const [response] = await client.readFeatureValues(request); - * - * @example include:samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js - * region_tag:aiplatform_read_feature_values_sample - * */ readFeatureValues( request?: protos.google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts index 7df9502a5de..6e671f5b23f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -644,10 +644,6 @@ export class FeaturestoreServiceClient { * for more details and examples. * @example * const [response] = await client.getFeaturestore(request); - * - * @example include:samples/generated/v1beta1/featurestore_service.get_featurestore.js - * region_tag:aiplatform_get_featurestore_sample - * */ getFeaturestore( request?: protos.google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, @@ -744,10 +740,6 @@ export class FeaturestoreServiceClient { * for more details and examples. * @example * const [response] = await client.getEntityType(request); - * - * @example include:samples/generated/v1beta1/featurestore_service.get_entity_type.js - * region_tag:aiplatform_get_entity_type_sample - * */ getEntityType( request?: protos.google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, @@ -860,10 +852,6 @@ export class FeaturestoreServiceClient { * for more details and examples. * @example * const [response] = await client.updateEntityType(request); - * - * @example include:samples/generated/v1beta1/featurestore_service.update_entity_type.js - * region_tag:aiplatform_update_entity_type_sample - * */ updateEntityType( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, @@ -960,10 +948,6 @@ export class FeaturestoreServiceClient { * for more details and examples. * @example * const [response] = await client.getFeature(request); - * - * @example include:samples/generated/v1beta1/featurestore_service.get_feature.js - * region_tag:aiplatform_get_feature_sample - * */ getFeature( request?: protos.google.cloud.aiplatform.v1beta1.IGetFeatureRequest, @@ -1073,10 +1057,6 @@ export class FeaturestoreServiceClient { * for more details and examples. * @example * const [response] = await client.updateFeature(request); - * - * @example include:samples/generated/v1beta1/featurestore_service.update_feature.js - * region_tag:aiplatform_update_feature_sample - * */ updateFeature( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, @@ -1189,10 +1169,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.createFeaturestore(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.create_featurestore.js - * region_tag:aiplatform_create_featurestore_sample - * */ createFeaturestore( request?: protos.google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, @@ -1256,10 +1232,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.create_featurestore.js - * region_tag:aiplatform_create_featurestore_sample - * */ async checkCreateFeaturestoreProgress( name: string @@ -1354,10 +1326,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.updateFeaturestore(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.update_featurestore.js - * region_tag:aiplatform_update_featurestore_sample - * */ updateFeaturestore( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, @@ -1421,10 +1389,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.update_featurestore.js - * region_tag:aiplatform_update_featurestore_sample - * */ async checkUpdateFeaturestoreProgress( name: string @@ -1510,10 +1474,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.deleteFeaturestore(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.delete_featurestore.js - * region_tag:aiplatform_delete_featurestore_sample - * */ deleteFeaturestore( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, @@ -1577,10 +1537,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.delete_featurestore.js - * region_tag:aiplatform_delete_featurestore_sample - * */ async checkDeleteFeaturestoreProgress( name: string @@ -1671,10 +1627,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.createEntityType(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.create_entity_type.js - * region_tag:aiplatform_create_entity_type_sample - * */ createEntityType( request?: protos.google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, @@ -1738,10 +1690,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.create_entity_type.js - * region_tag:aiplatform_create_entity_type_sample - * */ async checkCreateEntityTypeProgress( name: string @@ -1826,10 +1774,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.deleteEntityType(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.delete_entity_type.js - * region_tag:aiplatform_delete_entity_type_sample - * */ deleteEntityType( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, @@ -1893,10 +1837,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.delete_entity_type.js - * region_tag:aiplatform_delete_entity_type_sample - * */ async checkDeleteEntityTypeProgress( name: string @@ -1987,10 +1927,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.createFeature(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.create_feature.js - * region_tag:aiplatform_create_feature_sample - * */ createFeature( request?: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, @@ -2054,10 +1990,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.create_feature.js - * region_tag:aiplatform_create_feature_sample - * */ async checkCreateFeatureProgress( name: string @@ -2143,10 +2075,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.batchCreateFeatures(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.batch_create_features.js - * region_tag:aiplatform_batch_create_features_sample - * */ batchCreateFeatures( request?: protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, @@ -2210,10 +2138,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.batch_create_features.js - * region_tag:aiplatform_batch_create_features_sample - * */ async checkBatchCreateFeaturesProgress( name: string @@ -2294,10 +2218,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.deleteFeature(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.delete_feature.js - * region_tag:aiplatform_delete_feature_sample - * */ deleteFeature( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, @@ -2361,10 +2281,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.delete_feature.js - * region_tag:aiplatform_delete_feature_sample - * */ async checkDeleteFeatureProgress( name: string @@ -2491,10 +2407,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.importFeatureValues(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.import_feature_values.js - * region_tag:aiplatform_import_feature_values_sample - * */ importFeatureValues( request?: protos.google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, @@ -2558,10 +2470,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.import_feature_values.js - * region_tag:aiplatform_import_feature_values_sample - * */ async checkImportFeatureValuesProgress( name: string @@ -2690,10 +2598,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.batchReadFeatureValues(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js - * region_tag:aiplatform_batch_read_feature_values_sample - * */ batchReadFeatureValues( request?: protos.google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, @@ -2761,10 +2665,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js - * region_tag:aiplatform_batch_read_feature_values_sample - * */ async checkBatchReadFeatureValuesProgress( name: string @@ -2854,10 +2754,6 @@ export class FeaturestoreServiceClient { * @example * const [operation] = await client.exportFeatureValues(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/featurestore_service.export_feature_values.js - * region_tag:aiplatform_export_feature_values_sample - * */ exportFeatureValues( request?: protos.google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, @@ -2921,10 +2817,6 @@ export class FeaturestoreServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/featurestore_service.export_feature_values.js - * region_tag:aiplatform_export_feature_values_sample - * */ async checkExportFeatureValuesProgress( name: string @@ -3043,10 +2935,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.list_featurestores.js - * region_tag:aiplatform_list_featurestores_sample - * */ listFeaturestores( request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, @@ -3154,10 +3042,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.list_featurestores.js - * region_tag:aiplatform_list_featurestores_sample - * */ listFeaturestoresStream( request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, @@ -3249,10 +3133,6 @@ export class FeaturestoreServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/featurestore_service.list_featurestores.js - * region_tag:aiplatform_list_featurestores_sample - * */ listFeaturestoresAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, @@ -3371,10 +3251,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.list_entity_types.js - * region_tag:aiplatform_list_entity_types_sample - * */ listEntityTypes( request?: protos.google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, @@ -3482,10 +3358,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.list_entity_types.js - * region_tag:aiplatform_list_entity_types_sample - * */ listEntityTypesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, @@ -3577,10 +3449,6 @@ export class FeaturestoreServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/featurestore_service.list_entity_types.js - * region_tag:aiplatform_list_entity_types_sample - * */ listEntityTypesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, @@ -3706,10 +3574,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.list_features.js - * region_tag:aiplatform_list_features_sample - * */ listFeatures( request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, @@ -3824,10 +3688,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.list_features.js - * region_tag:aiplatform_list_features_sample - * */ listFeaturesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, @@ -3926,10 +3786,6 @@ export class FeaturestoreServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/featurestore_service.list_features.js - * region_tag:aiplatform_list_features_sample - * */ listFeaturesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, @@ -4078,10 +3934,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.search_features.js - * region_tag:aiplatform_search_features_sample - * */ searchFeatures( request?: protos.google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, @@ -4219,10 +4071,6 @@ export class FeaturestoreServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/featurestore_service.search_features.js - * region_tag:aiplatform_search_features_sample - * */ searchFeaturesStream( request?: protos.google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, @@ -4344,10 +4192,6 @@ export class FeaturestoreServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/featurestore_service.search_features.js - * region_tag:aiplatform_search_features_sample - * */ searchFeaturesAsync( request?: protos.google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts index 0996b87a66f..eeb7c45ebc4 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts @@ -534,10 +534,6 @@ export class IndexEndpointServiceClient { * for more details and examples. * @example * const [response] = await client.getIndexEndpoint(request); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js - * region_tag:aiplatform_get_index_endpoint_sample - * */ getIndexEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, @@ -637,10 +633,6 @@ export class IndexEndpointServiceClient { * for more details and examples. * @example * const [response] = await client.updateIndexEndpoint(request); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js - * region_tag:aiplatform_update_index_endpoint_sample - * */ updateIndexEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, @@ -747,10 +739,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.createIndexEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js - * region_tag:aiplatform_create_index_endpoint_sample - * */ createIndexEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, @@ -814,10 +802,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js - * region_tag:aiplatform_create_index_endpoint_sample - * */ async checkCreateIndexEndpointProgress( name: string @@ -898,10 +882,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.deleteIndexEndpoint(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js - * region_tag:aiplatform_delete_index_endpoint_sample - * */ deleteIndexEndpoint( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, @@ -965,10 +945,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js - * region_tag:aiplatform_delete_index_endpoint_sample - * */ async checkDeleteIndexEndpointProgress( name: string @@ -1053,10 +1029,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.deployIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.deploy_index.js - * region_tag:aiplatform_deploy_index_sample - * */ deployIndex( request?: protos.google.cloud.aiplatform.v1beta1.IDeployIndexRequest, @@ -1120,10 +1092,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.deploy_index.js - * region_tag:aiplatform_deploy_index_sample - * */ async checkDeployIndexProgress( name: string @@ -1207,10 +1175,6 @@ export class IndexEndpointServiceClient { * @example * const [operation] = await client.undeployIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.undeploy_index.js - * region_tag:aiplatform_undeploy_index_sample - * */ undeployIndex( request?: protos.google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, @@ -1274,10 +1238,6 @@ export class IndexEndpointServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_endpoint_service.undeploy_index.js - * region_tag:aiplatform_undeploy_index_sample - * */ async checkUndeployIndexProgress( name: string @@ -1380,10 +1340,6 @@ export class IndexEndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js - * region_tag:aiplatform_list_index_endpoints_sample - * */ listIndexEndpoints( request?: protos.google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, @@ -1475,10 +1431,6 @@ export class IndexEndpointServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js - * region_tag:aiplatform_list_index_endpoints_sample - * */ listIndexEndpointsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, @@ -1554,10 +1506,6 @@ export class IndexEndpointServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js - * region_tag:aiplatform_list_index_endpoints_sample - * */ listIndexEndpointsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts index d36c95fa522..42172bc8885 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -517,10 +517,6 @@ export class IndexServiceClient { * for more details and examples. * @example * const [response] = await client.getIndex(request); - * - * @example include:samples/generated/v1beta1/index_service.get_index.js - * region_tag:aiplatform_get_index_sample - * */ getIndex( request?: protos.google.cloud.aiplatform.v1beta1.IGetIndexRequest, @@ -624,10 +620,6 @@ export class IndexServiceClient { * @example * const [operation] = await client.createIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_service.create_index.js - * region_tag:aiplatform_create_index_sample - * */ createIndex( request?: protos.google.cloud.aiplatform.v1beta1.ICreateIndexRequest, @@ -691,10 +683,6 @@ export class IndexServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_service.create_index.js - * region_tag:aiplatform_create_index_sample - * */ async checkCreateIndexProgress( name: string @@ -776,10 +764,6 @@ export class IndexServiceClient { * @example * const [operation] = await client.updateIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_service.update_index.js - * region_tag:aiplatform_update_index_sample - * */ updateIndex( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, @@ -843,10 +827,6 @@ export class IndexServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_service.update_index.js - * region_tag:aiplatform_update_index_sample - * */ async checkUpdateIndexProgress( name: string @@ -929,10 +909,6 @@ export class IndexServiceClient { * @example * const [operation] = await client.deleteIndex(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/index_service.delete_index.js - * region_tag:aiplatform_delete_index_sample - * */ deleteIndex( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, @@ -996,10 +972,6 @@ export class IndexServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/index_service.delete_index.js - * region_tag:aiplatform_delete_index_sample - * */ async checkDeleteIndexProgress( name: string @@ -1085,10 +1057,6 @@ export class IndexServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/index_service.list_indexes.js - * region_tag:aiplatform_list_indexes_sample - * */ listIndexes( request?: protos.google.cloud.aiplatform.v1beta1.IListIndexesRequest, @@ -1163,10 +1131,6 @@ export class IndexServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/index_service.list_indexes.js - * region_tag:aiplatform_list_indexes_sample - * */ listIndexesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListIndexesRequest, @@ -1225,10 +1189,6 @@ export class IndexServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/index_service.list_indexes.js - * region_tag:aiplatform_list_indexes_sample - * */ listIndexesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListIndexesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts index 9bb95b46bc4..5b024ae0c00 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -624,10 +624,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createCustomJob(request); - * - * @example include:samples/generated/v1beta1/job_service.create_custom_job.js - * region_tag:aiplatform_create_custom_job_sample - * */ createCustomJob( request?: protos.google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, @@ -724,10 +720,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getCustomJob(request); - * - * @example include:samples/generated/v1beta1/job_service.get_custom_job.js - * region_tag:aiplatform_get_custom_job_sample - * */ getCustomJob( request?: protos.google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, @@ -833,10 +825,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelCustomJob(request); - * - * @example include:samples/generated/v1beta1/job_service.cancel_custom_job.js - * region_tag:aiplatform_cancel_custom_job_sample - * */ cancelCustomJob( request?: protos.google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, @@ -937,10 +925,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createDataLabelingJob(request); - * - * @example include:samples/generated/v1beta1/job_service.create_data_labeling_job.js - * region_tag:aiplatform_create_data_labeling_job_sample - * */ createDataLabelingJob( request?: protos.google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, @@ -1040,10 +1024,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getDataLabelingJob(request); - * - * @example include:samples/generated/v1beta1/job_service.get_data_labeling_job.js - * region_tag:aiplatform_get_data_labeling_job_sample - * */ getDataLabelingJob( request?: protos.google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, @@ -1143,10 +1123,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelDataLabelingJob(request); - * - * @example include:samples/generated/v1beta1/job_service.cancel_data_labeling_job.js - * region_tag:aiplatform_cancel_data_labeling_job_sample - * */ cancelDataLabelingJob( request?: protos.google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, @@ -1247,10 +1223,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createHyperparameterTuningJob(request); - * - * @example include:samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js - * region_tag:aiplatform_create_hyperparameter_tuning_job_sample - * */ createHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, @@ -1354,10 +1326,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getHyperparameterTuningJob(request); - * - * @example include:samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js - * region_tag:aiplatform_get_hyperparameter_tuning_job_sample - * */ getHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, @@ -1470,10 +1438,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelHyperparameterTuningJob(request); - * - * @example include:samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js - * region_tag:aiplatform_cancel_hyperparameter_tuning_job_sample - * */ cancelHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, @@ -1579,10 +1543,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createBatchPredictionJob(request); - * - * @example include:samples/generated/v1beta1/job_service.create_batch_prediction_job.js - * region_tag:aiplatform_create_batch_prediction_job_sample - * */ createBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, @@ -1686,10 +1646,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getBatchPredictionJob(request); - * - * @example include:samples/generated/v1beta1/job_service.get_batch_prediction_job.js - * region_tag:aiplatform_get_batch_prediction_job_sample - * */ getBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, @@ -1798,10 +1754,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.cancelBatchPredictionJob(request); - * - * @example include:samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js - * region_tag:aiplatform_cancel_batch_prediction_job_sample - * */ cancelBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, @@ -1907,10 +1859,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.createModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js - * region_tag:aiplatform_create_model_deployment_monitoring_job_sample - * */ createModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, @@ -2014,10 +1962,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.getModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js - * region_tag:aiplatform_get_model_deployment_monitoring_job_sample - * */ getModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, @@ -2123,10 +2067,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.pauseModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js - * region_tag:aiplatform_pause_model_deployment_monitoring_job_sample - * */ pauseModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, @@ -2232,10 +2172,6 @@ export class JobServiceClient { * for more details and examples. * @example * const [response] = await client.resumeModelDeploymentMonitoringJob(request); - * - * @example include:samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js - * region_tag:aiplatform_resume_model_deployment_monitoring_job_sample - * */ resumeModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, @@ -2345,10 +2281,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteCustomJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js - * region_tag:aiplatform_delete_custom_job_sample - * */ deleteCustomJob( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, @@ -2412,10 +2344,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js - * region_tag:aiplatform_delete_custom_job_sample - * */ async checkDeleteCustomJobProgress( name: string @@ -2496,10 +2424,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteDataLabelingJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_delete_data_labeling_job_sample - * */ deleteDataLabelingJob( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, @@ -2563,10 +2487,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_delete_data_labeling_job_sample - * */ async checkDeleteDataLabelingJobProgress( name: string @@ -2647,10 +2567,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteHyperparameterTuningJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_delete_hyperparameter_tuning_job_sample - * */ deleteHyperparameterTuningJob( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, @@ -2718,10 +2634,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_delete_hyperparameter_tuning_job_sample - * */ async checkDeleteHyperparameterTuningJobProgress( name: string @@ -2803,10 +2715,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteBatchPredictionJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_delete_batch_prediction_job_sample - * */ deleteBatchPredictionJob( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, @@ -2874,10 +2782,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_delete_batch_prediction_job_sample - * */ async checkDeleteBatchPredictionJobProgress( name: string @@ -2959,10 +2863,6 @@ export class JobServiceClient { * @example * const [operation] = await client.updateModelDeploymentMonitoringJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_update_model_deployment_monitoring_job_sample - * */ updateModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, @@ -3031,10 +2931,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_update_model_deployment_monitoring_job_sample - * */ async checkUpdateModelDeploymentMonitoringJobProgress( name: string @@ -3115,10 +3011,6 @@ export class JobServiceClient { * @example * const [operation] = await client.deleteModelDeploymentMonitoringJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_delete_model_deployment_monitoring_job_sample - * */ deleteModelDeploymentMonitoringJob( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, @@ -3186,10 +3078,6 @@ export class JobServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_delete_model_deployment_monitoring_job_sample - * */ async checkDeleteModelDeploymentMonitoringJobProgress( name: string @@ -3291,10 +3179,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js - * region_tag:aiplatform_list_custom_jobs_sample - * */ listCustomJobs( request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, @@ -3385,10 +3269,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js - * region_tag:aiplatform_list_custom_jobs_sample - * */ listCustomJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, @@ -3463,10 +3343,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js - * region_tag:aiplatform_list_custom_jobs_sample - * */ listCustomJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, @@ -3572,10 +3448,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_list_data_labeling_jobs_sample - * */ listDataLabelingJobs( request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, @@ -3670,10 +3542,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_list_data_labeling_jobs_sample - * */ listDataLabelingJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, @@ -3752,10 +3620,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_list_data_labeling_jobs_sample - * */ listDataLabelingJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, @@ -3857,10 +3721,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_list_hyperparameter_tuning_jobs_sample - * */ listHyperparameterTuningJobs( request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, @@ -3955,10 +3815,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_list_hyperparameter_tuning_jobs_sample - * */ listHyperparameterTuningJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, @@ -4033,10 +3889,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_list_hyperparameter_tuning_jobs_sample - * */ listHyperparameterTuningJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, @@ -4140,10 +3992,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js - * region_tag:aiplatform_list_batch_prediction_jobs_sample - * */ listBatchPredictionJobs( request?: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, @@ -4240,10 +4088,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js - * region_tag:aiplatform_list_batch_prediction_jobs_sample - * */ listBatchPredictionJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, @@ -4320,10 +4164,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js - * region_tag:aiplatform_list_batch_prediction_jobs_sample - * */ listBatchPredictionJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, @@ -4421,10 +4261,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js - * region_tag:aiplatform_search_model_deployment_monitoring_stats_anomalies_sample - * */ searchModelDeploymentMonitoringStatsAnomalies( request?: protos.google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, @@ -4516,10 +4352,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js - * region_tag:aiplatform_search_model_deployment_monitoring_stats_anomalies_sample - * */ searchModelDeploymentMonitoringStatsAnomaliesStream( request?: protos.google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, @@ -4593,10 +4425,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js - * region_tag:aiplatform_search_model_deployment_monitoring_stats_anomalies_sample - * */ searchModelDeploymentMonitoringStatsAnomaliesAsync( request?: protos.google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, @@ -4683,10 +4511,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js - * region_tag:aiplatform_list_model_deployment_monitoring_jobs_sample - * */ listModelDeploymentMonitoringJobs( request?: protos.google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, @@ -4762,10 +4586,6 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js - * region_tag:aiplatform_list_model_deployment_monitoring_jobs_sample - * */ listModelDeploymentMonitoringJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, @@ -4822,10 +4642,6 @@ export class JobServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js - * region_tag:aiplatform_list_model_deployment_monitoring_jobs_sample - * */ listModelDeploymentMonitoringJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts index 03885ade9c0..fb4a4db9caa 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -624,10 +624,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.getMetadataStore(request); - * - * @example include:samples/generated/v1beta1/metadata_service.get_metadata_store.js - * region_tag:aiplatform_get_metadata_store_sample - * */ getMetadataStore( request?: protos.google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, @@ -735,10 +731,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.createArtifact(request); - * - * @example include:samples/generated/v1beta1/metadata_service.create_artifact.js - * region_tag:aiplatform_create_artifact_sample - * */ createArtifact( request?: protos.google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, @@ -832,10 +824,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.getArtifact(request); - * - * @example include:samples/generated/v1beta1/metadata_service.get_artifact.js - * region_tag:aiplatform_get_artifact_sample - * */ getArtifact( request?: protos.google.cloud.aiplatform.v1beta1.IGetArtifactRequest, @@ -937,10 +925,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.updateArtifact(request); - * - * @example include:samples/generated/v1beta1/metadata_service.update_artifact.js - * region_tag:aiplatform_update_artifact_sample - * */ updateArtifact( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, @@ -1045,10 +1029,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.createContext(request); - * - * @example include:samples/generated/v1beta1/metadata_service.create_context.js - * region_tag:aiplatform_create_context_sample - * */ createContext( request?: protos.google.cloud.aiplatform.v1beta1.ICreateContextRequest, @@ -1142,10 +1122,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.getContext(request); - * - * @example include:samples/generated/v1beta1/metadata_service.get_context.js - * region_tag:aiplatform_get_context_sample - * */ getContext( request?: protos.google.cloud.aiplatform.v1beta1.IGetContextRequest, @@ -1247,10 +1223,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.updateContext(request); - * - * @example include:samples/generated/v1beta1/metadata_service.update_context.js - * region_tag:aiplatform_update_context_sample - * */ updateContext( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateContextRequest, @@ -1361,10 +1333,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.addContextArtifactsAndExecutions(request); - * - * @example include:samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js - * region_tag:aiplatform_add_context_artifacts_and_executions_sample - * */ addContextArtifactsAndExecutions( request?: protos.google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, @@ -1475,10 +1443,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.addContextChildren(request); - * - * @example include:samples/generated/v1beta1/metadata_service.add_context_children.js - * region_tag:aiplatform_add_context_children_sample - * */ addContextChildren( request?: protos.google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, @@ -1584,10 +1548,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.queryContextLineageSubgraph(request); - * - * @example include:samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js - * region_tag:aiplatform_query_context_lineage_subgraph_sample - * */ queryContextLineageSubgraph( request?: protos.google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, @@ -1703,10 +1663,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.createExecution(request); - * - * @example include:samples/generated/v1beta1/metadata_service.create_execution.js - * region_tag:aiplatform_create_execution_sample - * */ createExecution( request?: protos.google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, @@ -1803,10 +1759,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.getExecution(request); - * - * @example include:samples/generated/v1beta1/metadata_service.get_execution.js - * region_tag:aiplatform_get_execution_sample - * */ getExecution( request?: protos.google.cloud.aiplatform.v1beta1.IGetExecutionRequest, @@ -1911,10 +1863,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.updateExecution(request); - * - * @example include:samples/generated/v1beta1/metadata_service.update_execution.js - * region_tag:aiplatform_update_execution_sample - * */ updateExecution( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, @@ -2020,10 +1968,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.addExecutionEvents(request); - * - * @example include:samples/generated/v1beta1/metadata_service.add_execution_events.js - * region_tag:aiplatform_add_execution_events_sample - * */ addExecutionEvents( request?: protos.google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, @@ -2126,10 +2070,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.queryExecutionInputsAndOutputs(request); - * - * @example include:samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js - * region_tag:aiplatform_query_execution_inputs_and_outputs_sample - * */ queryExecutionInputsAndOutputs( request?: protos.google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, @@ -2245,10 +2185,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.createMetadataSchema(request); - * - * @example include:samples/generated/v1beta1/metadata_service.create_metadata_schema.js - * region_tag:aiplatform_create_metadata_schema_sample - * */ createMetadataSchema( request?: protos.google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, @@ -2348,10 +2284,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.getMetadataSchema(request); - * - * @example include:samples/generated/v1beta1/metadata_service.get_metadata_schema.js - * region_tag:aiplatform_get_metadata_schema_sample - * */ getMetadataSchema( request?: protos.google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, @@ -2485,10 +2417,6 @@ export class MetadataServiceClient { * for more details and examples. * @example * const [response] = await client.queryArtifactLineageSubgraph(request); - * - * @example include:samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js - * region_tag:aiplatform_query_artifact_lineage_subgraph_sample - * */ queryArtifactLineageSubgraph( request?: protos.google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, @@ -2609,10 +2537,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.createMetadataStore(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.create_metadata_store.js - * region_tag:aiplatform_create_metadata_store_sample - * */ createMetadataStore( request?: protos.google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, @@ -2676,10 +2600,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.create_metadata_store.js - * region_tag:aiplatform_create_metadata_store_sample - * */ async checkCreateMetadataStoreProgress( name: string @@ -2763,10 +2683,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.deleteMetadataStore(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_metadata_store.js - * region_tag:aiplatform_delete_metadata_store_sample - * */ deleteMetadataStore( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, @@ -2830,10 +2746,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_metadata_store.js - * region_tag:aiplatform_delete_metadata_store_sample - * */ async checkDeleteMetadataStoreProgress( name: string @@ -2918,10 +2830,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.deleteArtifact(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_artifact.js - * region_tag:aiplatform_delete_artifact_sample - * */ deleteArtifact( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, @@ -2985,10 +2893,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_artifact.js - * region_tag:aiplatform_delete_artifact_sample - * */ async checkDeleteArtifactProgress( name: string @@ -3076,10 +2980,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.purgeArtifacts(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.purge_artifacts.js - * region_tag:aiplatform_purge_artifacts_sample - * */ purgeArtifacts( request?: protos.google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, @@ -3143,10 +3043,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.purge_artifacts.js - * region_tag:aiplatform_purge_artifacts_sample - * */ async checkPurgeArtifactsProgress( name: string @@ -3234,10 +3130,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.deleteContext(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_context.js - * region_tag:aiplatform_delete_context_sample - * */ deleteContext( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteContextRequest, @@ -3301,10 +3193,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_context.js - * region_tag:aiplatform_delete_context_sample - * */ async checkDeleteContextProgress( name: string @@ -3392,10 +3280,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.purgeContexts(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.purge_contexts.js - * region_tag:aiplatform_purge_contexts_sample - * */ purgeContexts( request?: protos.google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, @@ -3459,10 +3343,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.purge_contexts.js - * region_tag:aiplatform_purge_contexts_sample - * */ async checkPurgeContextsProgress( name: string @@ -3547,10 +3427,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.deleteExecution(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_execution.js - * region_tag:aiplatform_delete_execution_sample - * */ deleteExecution( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, @@ -3614,10 +3490,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.delete_execution.js - * region_tag:aiplatform_delete_execution_sample - * */ async checkDeleteExecutionProgress( name: string @@ -3705,10 +3577,6 @@ export class MetadataServiceClient { * @example * const [operation] = await client.purgeExecutions(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/metadata_service.purge_executions.js - * region_tag:aiplatform_purge_executions_sample - * */ purgeExecutions( request?: protos.google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, @@ -3772,10 +3640,6 @@ export class MetadataServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/metadata_service.purge_executions.js - * region_tag:aiplatform_purge_executions_sample - * */ async checkPurgeExecutionsProgress( name: string @@ -3863,10 +3727,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_metadata_stores.js - * region_tag:aiplatform_list_metadata_stores_sample - * */ listMetadataStores( request?: protos.google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, @@ -3943,10 +3803,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_metadata_stores.js - * region_tag:aiplatform_list_metadata_stores_sample - * */ listMetadataStoresStream( request?: protos.google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, @@ -4007,10 +3863,6 @@ export class MetadataServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/metadata_service.list_metadata_stores.js - * region_tag:aiplatform_list_metadata_stores_sample - * */ listMetadataStoresAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, @@ -4124,10 +3976,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_artifacts.js - * region_tag:aiplatform_list_artifacts_sample - * */ listArtifacts( request?: protos.google.cloud.aiplatform.v1beta1.IListArtifactsRequest, @@ -4230,10 +4078,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_artifacts.js - * region_tag:aiplatform_list_artifacts_sample - * */ listArtifactsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListArtifactsRequest, @@ -4320,10 +4164,6 @@ export class MetadataServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/metadata_service.list_artifacts.js - * region_tag:aiplatform_list_artifacts_sample - * */ listArtifactsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListArtifactsRequest, @@ -4441,10 +4281,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_contexts.js - * region_tag:aiplatform_list_contexts_sample - * */ listContexts( request?: protos.google.cloud.aiplatform.v1beta1.IListContextsRequest, @@ -4551,10 +4387,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_contexts.js - * region_tag:aiplatform_list_contexts_sample - * */ listContextsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListContextsRequest, @@ -4645,10 +4477,6 @@ export class MetadataServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/metadata_service.list_contexts.js - * region_tag:aiplatform_list_contexts_sample - * */ listContextsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListContextsRequest, @@ -4761,10 +4589,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_executions.js - * region_tag:aiplatform_list_executions_sample - * */ listExecutions( request?: protos.google.cloud.aiplatform.v1beta1.IListExecutionsRequest, @@ -4866,10 +4690,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_executions.js - * region_tag:aiplatform_list_executions_sample - * */ listExecutionsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListExecutionsRequest, @@ -4955,10 +4775,6 @@ export class MetadataServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/metadata_service.list_executions.js - * region_tag:aiplatform_list_executions_sample - * */ listExecutionsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListExecutionsRequest, @@ -5048,10 +4864,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_metadata_schemas.js - * region_tag:aiplatform_list_metadata_schemas_sample - * */ listMetadataSchemas( request?: protos.google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, @@ -5130,10 +4942,6 @@ export class MetadataServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/metadata_service.list_metadata_schemas.js - * region_tag:aiplatform_list_metadata_schemas_sample - * */ listMetadataSchemasStream( request?: protos.google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, @@ -5196,10 +5004,6 @@ export class MetadataServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/metadata_service.list_metadata_schemas.js - * region_tag:aiplatform_list_metadata_schemas_sample - * */ listMetadataSchemasAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts index b30e0d4da44..3e619331062 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -509,10 +509,6 @@ export class MigrationServiceClient { * @example * const [operation] = await client.batchMigrateResources(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/migration_service.batch_migrate_resources.js - * region_tag:aiplatform_batch_migrate_resources_sample - * */ batchMigrateResources( request?: protos.google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, @@ -576,10 +572,6 @@ export class MigrationServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/migration_service.batch_migrate_resources.js - * region_tag:aiplatform_batch_migrate_resources_sample - * */ async checkBatchMigrateResourcesProgress( name: string @@ -677,10 +669,6 @@ export class MigrationServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/migration_service.search_migratable_resources.js - * region_tag:aiplatform_search_migratable_resources_sample - * */ searchMigratableResources( request?: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, @@ -769,10 +757,6 @@ export class MigrationServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/migration_service.search_migratable_resources.js - * region_tag:aiplatform_search_migratable_resources_sample - * */ searchMigratableResourcesStream( request?: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, @@ -841,10 +825,6 @@ export class MigrationServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/migration_service.search_migratable_resources.js - * region_tag:aiplatform_search_migratable_resources_sample - * */ searchMigratableResourcesAsync( request?: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts index 72f3ff8e99f..cd445bc3334 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -531,10 +531,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.getModel(request); - * - * @example include:samples/generated/v1beta1/model_service.get_model.js - * region_tag:aiplatform_get_model_sample - * */ getModel( request?: protos.google.cloud.aiplatform.v1beta1.IGetModelRequest, @@ -629,10 +625,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.updateModel(request); - * - * @example include:samples/generated/v1beta1/model_service.update_model.js - * region_tag:aiplatform_update_model_sample - * */ updateModel( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelRequest, @@ -729,10 +721,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.getModelEvaluation(request); - * - * @example include:samples/generated/v1beta1/model_service.get_model_evaluation.js - * region_tag:aiplatform_get_model_evaluation_sample - * */ getModelEvaluation( request?: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, @@ -832,10 +820,6 @@ export class ModelServiceClient { * for more details and examples. * @example * const [response] = await client.getModelEvaluationSlice(request); - * - * @example include:samples/generated/v1beta1/model_service.get_model_evaluation_slice.js - * region_tag:aiplatform_get_model_evaluation_slice_sample - * */ getModelEvaluationSlice( request?: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, @@ -946,10 +930,6 @@ export class ModelServiceClient { * @example * const [operation] = await client.uploadModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/model_service.upload_model.js - * region_tag:aiplatform_upload_model_sample - * */ uploadModel( request?: protos.google.cloud.aiplatform.v1beta1.IUploadModelRequest, @@ -1013,10 +993,6 @@ export class ModelServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/model_service.upload_model.js - * region_tag:aiplatform_upload_model_sample - * */ async checkUploadModelProgress( name: string @@ -1098,10 +1074,6 @@ export class ModelServiceClient { * @example * const [operation] = await client.deleteModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/model_service.delete_model.js - * region_tag:aiplatform_delete_model_sample - * */ deleteModel( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelRequest, @@ -1165,10 +1137,6 @@ export class ModelServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/model_service.delete_model.js - * region_tag:aiplatform_delete_model_sample - * */ async checkDeleteModelProgress( name: string @@ -1252,10 +1220,6 @@ export class ModelServiceClient { * @example * const [operation] = await client.exportModel(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/model_service.export_model.js - * region_tag:aiplatform_export_model_sample - * */ exportModel( request?: protos.google.cloud.aiplatform.v1beta1.IExportModelRequest, @@ -1319,10 +1283,6 @@ export class ModelServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/model_service.export_model.js - * region_tag:aiplatform_export_model_sample - * */ async checkExportModelProgress( name: string @@ -1422,10 +1382,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/model_service.list_models.js - * region_tag:aiplatform_list_models_sample - * */ listModels( request?: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, @@ -1514,10 +1470,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/model_service.list_models.js - * region_tag:aiplatform_list_models_sample - * */ listModelsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, @@ -1590,10 +1542,6 @@ export class ModelServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/model_service.list_models.js - * region_tag:aiplatform_list_models_sample - * */ listModelsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, @@ -1679,10 +1627,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/model_service.list_model_evaluations.js - * region_tag:aiplatform_list_model_evaluations_sample - * */ listModelEvaluations( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, @@ -1757,10 +1701,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/model_service.list_model_evaluations.js - * region_tag:aiplatform_list_model_evaluations_sample - * */ listModelEvaluationsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, @@ -1819,10 +1759,6 @@ export class ModelServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/model_service.list_model_evaluations.js - * region_tag:aiplatform_list_model_evaluations_sample - * */ listModelEvaluationsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, @@ -1911,10 +1847,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/model_service.list_model_evaluation_slices.js - * region_tag:aiplatform_list_model_evaluation_slices_sample - * */ listModelEvaluationSlices( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, @@ -1996,10 +1928,6 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/model_service.list_model_evaluation_slices.js - * region_tag:aiplatform_list_model_evaluation_slices_sample - * */ listModelEvaluationSlicesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, @@ -2061,10 +1989,6 @@ export class ModelServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/model_service.list_model_evaluation_slices.js - * region_tag:aiplatform_list_model_evaluation_slices_sample - * */ listModelEvaluationSlicesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index 7460c2c5ec7..1d86a9d992e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -527,10 +527,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.createTrainingPipeline(request); - * - * @example include:samples/generated/v1beta1/pipeline_service.create_training_pipeline.js - * region_tag:aiplatform_create_training_pipeline_sample - * */ createTrainingPipeline( request?: protos.google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, @@ -634,10 +630,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.getTrainingPipeline(request); - * - * @example include:samples/generated/v1beta1/pipeline_service.get_training_pipeline.js - * region_tag:aiplatform_get_training_pipeline_sample - * */ getTrainingPipeline( request?: protos.google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, @@ -746,10 +738,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.cancelTrainingPipeline(request); - * - * @example include:samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js - * region_tag:aiplatform_cancel_training_pipeline_sample - * */ cancelTrainingPipeline( request?: protos.google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, @@ -861,10 +849,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.createPipelineJob(request); - * - * @example include:samples/generated/v1beta1/pipeline_service.create_pipeline_job.js - * region_tag:aiplatform_create_pipeline_job_sample - * */ createPipelineJob( request?: protos.google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, @@ -961,10 +945,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.getPipelineJob(request); - * - * @example include:samples/generated/v1beta1/pipeline_service.get_pipeline_job.js - * region_tag:aiplatform_get_pipeline_job_sample - * */ getPipelineJob( request?: protos.google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, @@ -1070,10 +1050,6 @@ export class PipelineServiceClient { * for more details and examples. * @example * const [response] = await client.cancelPipelineJob(request); - * - * @example include:samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js - * region_tag:aiplatform_cancel_pipeline_job_sample - * */ cancelPipelineJob( request?: protos.google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, @@ -1179,10 +1155,6 @@ export class PipelineServiceClient { * @example * const [operation] = await client.deleteTrainingPipeline(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js - * region_tag:aiplatform_delete_training_pipeline_sample - * */ deleteTrainingPipeline( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, @@ -1250,10 +1222,6 @@ export class PipelineServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js - * region_tag:aiplatform_delete_training_pipeline_sample - * */ async checkDeleteTrainingPipelineProgress( name: string @@ -1334,10 +1302,6 @@ export class PipelineServiceClient { * @example * const [operation] = await client.deletePipelineJob(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js - * region_tag:aiplatform_delete_pipeline_job_sample - * */ deletePipelineJob( request?: protos.google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, @@ -1401,10 +1365,6 @@ export class PipelineServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js - * region_tag:aiplatform_delete_pipeline_job_sample - * */ async checkDeletePipelineJobProgress( name: string @@ -1505,10 +1465,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/pipeline_service.list_training_pipelines.js - * region_tag:aiplatform_list_training_pipelines_sample - * */ listTrainingPipelines( request?: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, @@ -1598,10 +1554,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/pipeline_service.list_training_pipelines.js - * region_tag:aiplatform_list_training_pipelines_sample - * */ listTrainingPipelinesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, @@ -1675,10 +1627,6 @@ export class PipelineServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/pipeline_service.list_training_pipelines.js - * region_tag:aiplatform_list_training_pipelines_sample - * */ listTrainingPipelinesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, @@ -1787,10 +1735,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js - * region_tag:aiplatform_list_pipeline_jobs_sample - * */ listPipelineJobs( request?: protos.google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, @@ -1888,10 +1832,6 @@ export class PipelineServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js - * region_tag:aiplatform_list_pipeline_jobs_sample - * */ listPipelineJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, @@ -1973,10 +1913,6 @@ export class PipelineServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js - * region_tag:aiplatform_list_pipeline_jobs_sample - * */ listPipelineJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index 9b7edc1227b..18c03d4a0b6 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -446,10 +446,6 @@ export class PredictionServiceClient { * for more details and examples. * @example * const [response] = await client.predict(request); - * - * @example include:samples/generated/v1beta1/prediction_service.predict.js - * region_tag:aiplatform_predict_sample - * */ predict( request?: protos.google.cloud.aiplatform.v1beta1.IPredictRequest, @@ -555,10 +551,6 @@ export class PredictionServiceClient { * for more details and examples. * @example * const [response] = await client.rawPredict(request); - * - * @example include:samples/generated/v1beta1/prediction_service.raw_predict.js - * region_tag:aiplatform_raw_predict_sample - * */ rawPredict( request?: protos.google.cloud.aiplatform.v1beta1.IRawPredictRequest, @@ -684,10 +676,6 @@ export class PredictionServiceClient { * for more details and examples. * @example * const [response] = await client.explain(request); - * - * @example include:samples/generated/v1beta1/prediction_service.explain.js - * region_tag:aiplatform_explain_sample - * */ explain( request?: protos.google.cloud.aiplatform.v1beta1.IExplainRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts index a5f1d3139d4..f815bd789d3 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts @@ -527,10 +527,6 @@ export class SpecialistPoolServiceClient { * for more details and examples. * @example * const [response] = await client.getSpecialistPool(request); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js - * region_tag:aiplatform_get_specialist_pool_sample - * */ getSpecialistPool( request?: protos.google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, @@ -637,10 +633,6 @@ export class SpecialistPoolServiceClient { * @example * const [operation] = await client.createSpecialistPool(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js - * region_tag:aiplatform_create_specialist_pool_sample - * */ createSpecialistPool( request?: protos.google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, @@ -704,10 +696,6 @@ export class SpecialistPoolServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js - * region_tag:aiplatform_create_specialist_pool_sample - * */ async checkCreateSpecialistPoolProgress( name: string @@ -791,10 +779,6 @@ export class SpecialistPoolServiceClient { * @example * const [operation] = await client.deleteSpecialistPool(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js - * region_tag:aiplatform_delete_specialist_pool_sample - * */ deleteSpecialistPool( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, @@ -858,10 +842,6 @@ export class SpecialistPoolServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js - * region_tag:aiplatform_delete_specialist_pool_sample - * */ async checkDeleteSpecialistPoolProgress( name: string @@ -942,10 +922,6 @@ export class SpecialistPoolServiceClient { * @example * const [operation] = await client.updateSpecialistPool(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js - * region_tag:aiplatform_update_specialist_pool_sample - * */ updateSpecialistPool( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, @@ -1009,10 +985,6 @@ export class SpecialistPoolServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js - * region_tag:aiplatform_update_specialist_pool_sample - * */ async checkUpdateSpecialistPoolProgress( name: string @@ -1096,10 +1068,6 @@ export class SpecialistPoolServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js - * region_tag:aiplatform_list_specialist_pools_sample - * */ listSpecialistPools( request?: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, @@ -1172,10 +1140,6 @@ export class SpecialistPoolServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js - * region_tag:aiplatform_list_specialist_pools_sample - * */ listSpecialistPoolsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, @@ -1232,10 +1196,6 @@ export class SpecialistPoolServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js - * region_tag:aiplatform_list_specialist_pools_sample - * */ listSpecialistPoolsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts index 4ac97abc74b..3c0c3ed3250 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -613,10 +613,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.getTensorboard(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.get_tensorboard.js - * region_tag:aiplatform_get_tensorboard_sample - * */ getTensorboard( request?: protos.google.cloud.aiplatform.v1beta1.IGetTensorboardRequest, @@ -721,10 +717,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.createTensorboardExperiment(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js - * region_tag:aiplatform_create_tensorboard_experiment_sample - * */ createTensorboardExperiment( request?: protos.google.cloud.aiplatform.v1beta1.ICreateTensorboardExperimentRequest, @@ -828,10 +820,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.getTensorboardExperiment(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js - * region_tag:aiplatform_get_tensorboard_experiment_sample - * */ getTensorboardExperiment( request?: protos.google.cloud.aiplatform.v1beta1.IGetTensorboardExperimentRequest, @@ -942,10 +930,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.updateTensorboardExperiment(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js - * region_tag:aiplatform_update_tensorboard_experiment_sample - * */ updateTensorboardExperiment( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateTensorboardExperimentRequest, @@ -1058,10 +1042,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.createTensorboardRun(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js - * region_tag:aiplatform_create_tensorboard_run_sample - * */ createTensorboardRun( request?: protos.google.cloud.aiplatform.v1beta1.ICreateTensorboardRunRequest, @@ -1166,10 +1146,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.batchCreateTensorboardRuns(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js - * region_tag:aiplatform_batch_create_tensorboard_runs_sample - * */ batchCreateTensorboardRuns( request?: protos.google.cloud.aiplatform.v1beta1.IBatchCreateTensorboardRunsRequest, @@ -1273,10 +1249,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.getTensorboardRun(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js - * region_tag:aiplatform_get_tensorboard_run_sample - * */ getTensorboardRun( request?: protos.google.cloud.aiplatform.v1beta1.IGetTensorboardRunRequest, @@ -1383,10 +1355,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.updateTensorboardRun(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js - * region_tag:aiplatform_update_tensorboard_run_sample - * */ updateTensorboardRun( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateTensorboardRunRequest, @@ -1493,10 +1461,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.batchCreateTensorboardTimeSeries(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js - * region_tag:aiplatform_batch_create_tensorboard_time_series_sample - * */ batchCreateTensorboardTimeSeries( request?: protos.google.cloud.aiplatform.v1beta1.IBatchCreateTensorboardTimeSeriesRequest, @@ -1609,10 +1573,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.createTensorboardTimeSeries(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js - * region_tag:aiplatform_create_tensorboard_time_series_sample - * */ createTensorboardTimeSeries( request?: protos.google.cloud.aiplatform.v1beta1.ICreateTensorboardTimeSeriesRequest, @@ -1716,10 +1676,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.getTensorboardTimeSeries(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js - * region_tag:aiplatform_get_tensorboard_time_series_sample - * */ getTensorboardTimeSeries( request?: protos.google.cloud.aiplatform.v1beta1.IGetTensorboardTimeSeriesRequest, @@ -1831,10 +1787,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.updateTensorboardTimeSeries(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js - * region_tag:aiplatform_update_tensorboard_time_series_sample - * */ updateTensorboardTimeSeries( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateTensorboardTimeSeriesRequest, @@ -1950,10 +1902,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.readTensorboardTimeSeriesData(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js - * region_tag:aiplatform_read_tensorboard_time_series_data_sample - * */ readTensorboardTimeSeriesData( request?: protos.google.cloud.aiplatform.v1beta1.IReadTensorboardTimeSeriesDataRequest, @@ -2061,10 +2009,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.writeTensorboardExperimentData(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js - * region_tag:aiplatform_write_tensorboard_experiment_data_sample - * */ writeTensorboardExperimentData( request?: protos.google.cloud.aiplatform.v1beta1.IWriteTensorboardExperimentDataRequest, @@ -2176,10 +2120,6 @@ export class TensorboardServiceClient { * for more details and examples. * @example * const [response] = await client.writeTensorboardRunData(request); - * - * @example include:samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js - * region_tag:aiplatform_write_tensorboard_run_data_sample - * */ writeTensorboardRunData( request?: protos.google.cloud.aiplatform.v1beta1.IWriteTensorboardRunDataRequest, @@ -2332,10 +2272,6 @@ export class TensorboardServiceClient { * @example * const [operation] = await client.createTensorboard(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/tensorboard_service.create_tensorboard.js - * region_tag:aiplatform_create_tensorboard_sample - * */ createTensorboard( request?: protos.google.cloud.aiplatform.v1beta1.ICreateTensorboardRequest, @@ -2399,10 +2335,6 @@ export class TensorboardServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/tensorboard_service.create_tensorboard.js - * region_tag:aiplatform_create_tensorboard_sample - * */ async checkCreateTensorboardProgress( name: string @@ -2490,10 +2422,6 @@ export class TensorboardServiceClient { * @example * const [operation] = await client.updateTensorboard(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/tensorboard_service.update_tensorboard.js - * region_tag:aiplatform_update_tensorboard_sample - * */ updateTensorboard( request?: protos.google.cloud.aiplatform.v1beta1.IUpdateTensorboardRequest, @@ -2557,10 +2485,6 @@ export class TensorboardServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/tensorboard_service.update_tensorboard.js - * region_tag:aiplatform_update_tensorboard_sample - * */ async checkUpdateTensorboardProgress( name: string @@ -2641,10 +2565,6 @@ export class TensorboardServiceClient { * @example * const [operation] = await client.deleteTensorboard(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js - * region_tag:aiplatform_delete_tensorboard_sample - * */ deleteTensorboard( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteTensorboardRequest, @@ -2708,10 +2628,6 @@ export class TensorboardServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js - * region_tag:aiplatform_delete_tensorboard_sample - * */ async checkDeleteTensorboardProgress( name: string @@ -2792,10 +2708,6 @@ export class TensorboardServiceClient { * @example * const [operation] = await client.deleteTensorboardExperiment(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js - * region_tag:aiplatform_delete_tensorboard_experiment_sample - * */ deleteTensorboardExperiment( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteTensorboardExperimentRequest, @@ -2863,10 +2775,6 @@ export class TensorboardServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js - * region_tag:aiplatform_delete_tensorboard_experiment_sample - * */ async checkDeleteTensorboardExperimentProgress( name: string @@ -2947,10 +2855,6 @@ export class TensorboardServiceClient { * @example * const [operation] = await client.deleteTensorboardRun(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js - * region_tag:aiplatform_delete_tensorboard_run_sample - * */ deleteTensorboardRun( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteTensorboardRunRequest, @@ -3014,10 +2918,6 @@ export class TensorboardServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js - * region_tag:aiplatform_delete_tensorboard_run_sample - * */ async checkDeleteTensorboardRunProgress( name: string @@ -3098,10 +2998,6 @@ export class TensorboardServiceClient { * @example * const [operation] = await client.deleteTensorboardTimeSeries(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js - * region_tag:aiplatform_delete_tensorboard_time_series_sample - * */ deleteTensorboardTimeSeries( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteTensorboardTimeSeriesRequest, @@ -3169,10 +3065,6 @@ export class TensorboardServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js - * region_tag:aiplatform_delete_tensorboard_time_series_sample - * */ async checkDeleteTensorboardTimeSeriesProgress( name: string @@ -3267,10 +3159,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboards.js - * region_tag:aiplatform_list_tensorboards_sample - * */ listTensorboards( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardsRequest, @@ -3354,10 +3242,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboards.js - * region_tag:aiplatform_list_tensorboards_sample - * */ listTensorboardsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardsRequest, @@ -3425,10 +3309,6 @@ export class TensorboardServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboards.js - * region_tag:aiplatform_list_tensorboards_sample - * */ listTensorboardsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardsRequest, @@ -3523,10 +3403,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js - * region_tag:aiplatform_list_tensorboard_experiments_sample - * */ listTensorboardExperiments( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardExperimentsRequest, @@ -3614,10 +3490,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js - * region_tag:aiplatform_list_tensorboard_experiments_sample - * */ listTensorboardExperimentsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardExperimentsRequest, @@ -3685,10 +3557,6 @@ export class TensorboardServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js - * region_tag:aiplatform_list_tensorboard_experiments_sample - * */ listTensorboardExperimentsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardExperimentsRequest, @@ -3783,10 +3651,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js - * region_tag:aiplatform_list_tensorboard_runs_sample - * */ listTensorboardRuns( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardRunsRequest, @@ -3870,10 +3734,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js - * region_tag:aiplatform_list_tensorboard_runs_sample - * */ listTensorboardRunsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardRunsRequest, @@ -3941,10 +3801,6 @@ export class TensorboardServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js - * region_tag:aiplatform_list_tensorboard_runs_sample - * */ listTensorboardRunsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardRunsRequest, @@ -4039,10 +3895,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js - * region_tag:aiplatform_list_tensorboard_time_series_sample - * */ listTensorboardTimeSeries( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardTimeSeriesRequest, @@ -4130,10 +3982,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js - * region_tag:aiplatform_list_tensorboard_time_series_sample - * */ listTensorboardTimeSeriesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardTimeSeriesRequest, @@ -4201,10 +4049,6 @@ export class TensorboardServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js - * region_tag:aiplatform_list_tensorboard_time_series_sample - * */ listTensorboardTimeSeriesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTensorboardTimeSeriesRequest, @@ -4299,10 +4143,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js - * region_tag:aiplatform_export_tensorboard_time_series_data_sample - * */ exportTensorboardTimeSeriesData( request?: protos.google.cloud.aiplatform.v1beta1.IExportTensorboardTimeSeriesDataRequest, @@ -4389,10 +4229,6 @@ export class TensorboardServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js - * region_tag:aiplatform_export_tensorboard_time_series_data_sample - * */ exportTensorboardTimeSeriesDataStream( request?: protos.google.cloud.aiplatform.v1beta1.IExportTensorboardTimeSeriesDataRequest, @@ -4460,10 +4296,6 @@ export class TensorboardServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js - * region_tag:aiplatform_export_tensorboard_time_series_data_sample - * */ exportTensorboardTimeSeriesDataAsync( request?: protos.google.cloud.aiplatform.v1beta1.IExportTensorboardTimeSeriesDataRequest, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts index 01a995367f6..0ca8fb6203b 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -531,10 +531,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.createStudy(request); - * - * @example include:samples/generated/v1beta1/vizier_service.create_study.js - * region_tag:aiplatform_create_study_sample - * */ createStudy( request?: protos.google.cloud.aiplatform.v1beta1.ICreateStudyRequest, @@ -627,10 +623,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.getStudy(request); - * - * @example include:samples/generated/v1beta1/vizier_service.get_study.js - * region_tag:aiplatform_get_study_sample - * */ getStudy( request?: protos.google.cloud.aiplatform.v1beta1.IGetStudyRequest, @@ -723,10 +715,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.deleteStudy(request); - * - * @example include:samples/generated/v1beta1/vizier_service.delete_study.js - * region_tag:aiplatform_delete_study_sample - * */ deleteStudy( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteStudyRequest, @@ -822,10 +810,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.lookupStudy(request); - * - * @example include:samples/generated/v1beta1/vizier_service.lookup_study.js - * region_tag:aiplatform_lookup_study_sample - * */ lookupStudy( request?: protos.google.cloud.aiplatform.v1beta1.ILookupStudyRequest, @@ -920,10 +904,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.createTrial(request); - * - * @example include:samples/generated/v1beta1/vizier_service.create_trial.js - * region_tag:aiplatform_create_trial_sample - * */ createTrial( request?: protos.google.cloud.aiplatform.v1beta1.ICreateTrialRequest, @@ -1017,10 +997,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.getTrial(request); - * - * @example include:samples/generated/v1beta1/vizier_service.get_trial.js - * region_tag:aiplatform_get_trial_sample - * */ getTrial( request?: protos.google.cloud.aiplatform.v1beta1.IGetTrialRequest, @@ -1120,10 +1096,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.addTrialMeasurement(request); - * - * @example include:samples/generated/v1beta1/vizier_service.add_trial_measurement.js - * region_tag:aiplatform_add_trial_measurement_sample - * */ addTrialMeasurement( request?: protos.google.cloud.aiplatform.v1beta1.IAddTrialMeasurementRequest, @@ -1230,10 +1202,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.completeTrial(request); - * - * @example include:samples/generated/v1beta1/vizier_service.complete_trial.js - * region_tag:aiplatform_complete_trial_sample - * */ completeTrial( request?: protos.google.cloud.aiplatform.v1beta1.ICompleteTrialRequest, @@ -1327,10 +1295,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.deleteTrial(request); - * - * @example include:samples/generated/v1beta1/vizier_service.delete_trial.js - * region_tag:aiplatform_delete_trial_sample - * */ deleteTrial( request?: protos.google.cloud.aiplatform.v1beta1.IDeleteTrialRequest, @@ -1424,10 +1388,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.stopTrial(request); - * - * @example include:samples/generated/v1beta1/vizier_service.stop_trial.js - * region_tag:aiplatform_stop_trial_sample - * */ stopTrial( request?: protos.google.cloud.aiplatform.v1beta1.IStopTrialRequest, @@ -1525,10 +1485,6 @@ export class VizierServiceClient { * for more details and examples. * @example * const [response] = await client.listOptimalTrials(request); - * - * @example include:samples/generated/v1beta1/vizier_service.list_optimal_trials.js - * region_tag:aiplatform_list_optimal_trials_sample - * */ listOptimalTrials( request?: protos.google.cloud.aiplatform.v1beta1.IListOptimalTrialsRequest, @@ -1645,10 +1601,6 @@ export class VizierServiceClient { * @example * const [operation] = await client.suggestTrials(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/vizier_service.suggest_trials.js - * region_tag:aiplatform_suggest_trials_sample - * */ suggestTrials( request?: protos.google.cloud.aiplatform.v1beta1.ISuggestTrialsRequest, @@ -1712,10 +1664,6 @@ export class VizierServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/vizier_service.suggest_trials.js - * region_tag:aiplatform_suggest_trials_sample - * */ async checkSuggestTrialsProgress( name: string @@ -1799,10 +1747,6 @@ export class VizierServiceClient { * @example * const [operation] = await client.checkTrialEarlyStoppingState(request); * const [response] = await operation.promise(); - * - * @example include:samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js - * region_tag:aiplatform_check_trial_early_stopping_state_sample - * */ checkTrialEarlyStoppingState( request?: protos.google.cloud.aiplatform.v1beta1.ICheckTrialEarlyStoppingStateRequest, @@ -1870,10 +1814,6 @@ export class VizierServiceClient { * console.log(decodedOperation.result); * console.log(decodedOperation.done); * console.log(decodedOperation.metadata); - * - * @example include:samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js - * region_tag:aiplatform_check_trial_early_stopping_state_sample - * */ async checkCheckTrialEarlyStoppingStateProgress( name: string @@ -1954,10 +1894,6 @@ export class VizierServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/vizier_service.list_studies.js - * region_tag:aiplatform_list_studies_sample - * */ listStudies( request?: protos.google.cloud.aiplatform.v1beta1.IListStudiesRequest, @@ -2027,10 +1963,6 @@ export class VizierServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/vizier_service.list_studies.js - * region_tag:aiplatform_list_studies_sample - * */ listStudiesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListStudiesRequest, @@ -2084,10 +2016,6 @@ export class VizierServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/vizier_service.list_studies.js - * region_tag:aiplatform_list_studies_sample - * */ listStudiesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListStudiesRequest, @@ -2168,10 +2096,6 @@ export class VizierServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/vizier_service.list_trials.js - * region_tag:aiplatform_list_trials_sample - * */ listTrials( request?: protos.google.cloud.aiplatform.v1beta1.IListTrialsRequest, @@ -2241,10 +2165,6 @@ export class VizierServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * - * @example include:samples/generated/v1beta1/vizier_service.list_trials.js - * region_tag:aiplatform_list_trials_sample - * */ listTrialsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTrialsRequest, @@ -2298,10 +2218,6 @@ export class VizierServiceClient { * for await (const response of iterable) { * // process response * } - * - * @example include:samples/generated/v1beta1/vizier_service.list_trials.js - * region_tag:aiplatform_list_trials_sample - * */ listTrialsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTrialsRequest, diff --git a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js index 251c920ba06..835ab050137 100644 --- a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js @@ -32,6 +32,7 @@ function main() { const predictionServiceClient = new aiplatform.PredictionServiceClient(); const specialistPoolServiceClient = new aiplatform.SpecialistPoolServiceClient(); + const vizierServiceClient = new aiplatform.VizierServiceClient(); } main(); diff --git a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts index ef201e7bdf3..fe4fa264e24 100644 --- a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts @@ -27,6 +27,7 @@ import { PipelineServiceClient, PredictionServiceClient, SpecialistPoolServiceClient, + VizierServiceClient, } from '@google-cloud/aiplatform'; // check that the client class type name can be used @@ -64,6 +65,9 @@ function doStuffWithSpecialistPoolServiceClient( ) { client.close(); } +function doStuffWithVizierServiceClient(client: VizierServiceClient) { + client.close(); +} function main() { // check that the client instance can be created @@ -96,6 +100,9 @@ function main() { // check that the client instance can be created const specialistPoolServiceClient = new SpecialistPoolServiceClient(); doStuffWithSpecialistPoolServiceClient(specialistPoolServiceClient); + // check that the client instance can be created + const vizierServiceClient = new VizierServiceClient(); + doStuffWithVizierServiceClient(vizierServiceClient); } main(); diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts new file mode 100644 index 00000000000..9b985f7e9ef --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts @@ -0,0 +1,4130 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as vizierserviceModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf, LROperation, operationsProtos} from 'google-gax'; + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubLongRunningCall( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().rejects(callError) + : sinon.stub().resolves([mockOperation]); +} + +function stubLongRunningCallWithCallback( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().callsArgWith(2, callError) + : sinon.stub().callsArgWith(2, null, mockOperation); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.VizierServiceClient', () => { + it('has servicePath', () => { + const servicePath = vizierserviceModule.v1.VizierServiceClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = vizierserviceModule.v1.VizierServiceClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = vizierserviceModule.v1.VizierServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new vizierserviceModule.v1.VizierServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.vizierServiceStub, undefined); + await client.initialize(); + assert(client.vizierServiceStub); + }); + + it('has close method', () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.close(); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('createStudy', () => { + it('invokes createStudy without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateStudyRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Study() + ); + client.innerApiCalls.createStudy = stubSimpleCall(expectedResponse); + const [response] = await client.createStudy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createStudy without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateStudyRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Study() + ); + client.innerApiCalls.createStudy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createStudy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IStudy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createStudy with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateStudyRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createStudy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createStudy(request), expectedError); + assert( + (client.innerApiCalls.createStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getStudy', () => { + it('invokes getStudy without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetStudyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Study() + ); + client.innerApiCalls.getStudy = stubSimpleCall(expectedResponse); + const [response] = await client.getStudy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getStudy without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetStudyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Study() + ); + client.innerApiCalls.getStudy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getStudy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IStudy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getStudy with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetStudyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getStudy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getStudy(request), expectedError); + assert( + (client.innerApiCalls.getStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteStudy', () => { + it('invokes deleteStudy without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteStudy = stubSimpleCall(expectedResponse); + const [response] = await client.deleteStudy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteStudy without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteStudy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteStudy( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteStudy with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteStudy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteStudy(request), expectedError); + assert( + (client.innerApiCalls.deleteStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('lookupStudy', () => { + it('invokes lookupStudy without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.LookupStudyRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Study() + ); + client.innerApiCalls.lookupStudy = stubSimpleCall(expectedResponse); + const [response] = await client.lookupStudy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.lookupStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes lookupStudy without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.LookupStudyRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Study() + ); + client.innerApiCalls.lookupStudy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.lookupStudy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IStudy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.lookupStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes lookupStudy with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.LookupStudyRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.lookupStudy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.lookupStudy(request), expectedError); + assert( + (client.innerApiCalls.lookupStudy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createTrial', () => { + it('invokes createTrial without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateTrialRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.createTrial = stubSimpleCall(expectedResponse); + const [response] = await client.createTrial(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createTrial without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateTrialRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.createTrial = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createTrial( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ITrial | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createTrial with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateTrialRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createTrial = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createTrial(request), expectedError); + assert( + (client.innerApiCalls.createTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getTrial', () => { + it('invokes getTrial without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.getTrial = stubSimpleCall(expectedResponse); + const [response] = await client.getTrial(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getTrial without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.getTrial = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getTrial( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ITrial | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getTrial with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getTrial = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getTrial(request), expectedError); + assert( + (client.innerApiCalls.getTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('addTrialMeasurement', () => { + it('invokes addTrialMeasurement without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.addTrialMeasurement = + stubSimpleCall(expectedResponse); + const [response] = await client.addTrialMeasurement(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.addTrialMeasurement as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes addTrialMeasurement without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.addTrialMeasurement = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.addTrialMeasurement( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ITrial | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.addTrialMeasurement as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes addTrialMeasurement with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.addTrialMeasurement = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.addTrialMeasurement(request), expectedError); + assert( + (client.innerApiCalls.addTrialMeasurement as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('completeTrial', () => { + it('invokes completeTrial without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.completeTrial = stubSimpleCall(expectedResponse); + const [response] = await client.completeTrial(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.completeTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes completeTrial without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.completeTrial = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.completeTrial( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ITrial | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.completeTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes completeTrial with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.completeTrial = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.completeTrial(request), expectedError); + assert( + (client.innerApiCalls.completeTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteTrial', () => { + it('invokes deleteTrial without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteTrial = stubSimpleCall(expectedResponse); + const [response] = await client.deleteTrial(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteTrial without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteTrial = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteTrial( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteTrial with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteTrial = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteTrial(request), expectedError); + assert( + (client.innerApiCalls.deleteTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('stopTrial', () => { + it('invokes stopTrial without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.StopTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.stopTrial = stubSimpleCall(expectedResponse); + const [response] = await client.stopTrial(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.stopTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes stopTrial without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.StopTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Trial() + ); + client.innerApiCalls.stopTrial = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.stopTrial( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ITrial | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.stopTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes stopTrial with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.StopTrialRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.stopTrial = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.stopTrial(request), expectedError); + assert( + (client.innerApiCalls.stopTrial as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listOptimalTrials', () => { + it('invokes listOptimalTrials without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListOptimalTrialsResponse() + ); + client.innerApiCalls.listOptimalTrials = stubSimpleCall(expectedResponse); + const [response] = await client.listOptimalTrials(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listOptimalTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listOptimalTrials without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListOptimalTrialsResponse() + ); + client.innerApiCalls.listOptimalTrials = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listOptimalTrials( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IListOptimalTrialsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listOptimalTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listOptimalTrials with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listOptimalTrials = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listOptimalTrials(request), expectedError); + assert( + (client.innerApiCalls.listOptimalTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('suggestTrials', () => { + it('invokes suggestTrials without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.suggestTrials = + stubLongRunningCall(expectedResponse); + const [operation] = await client.suggestTrials(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.suggestTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes suggestTrials without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.suggestTrials = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.suggestTrials( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.ISuggestTrialsResponse, + protos.google.cloud.aiplatform.v1.ISuggestTrialsMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.suggestTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes suggestTrials with call error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.suggestTrials = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.suggestTrials(request), expectedError); + assert( + (client.innerApiCalls.suggestTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes suggestTrials with LRO error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SuggestTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.suggestTrials = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.suggestTrials(request); + await assert.rejects(operation.promise(), expectedError); + assert( + (client.innerApiCalls.suggestTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkSuggestTrialsProgress without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkSuggestTrialsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkSuggestTrialsProgress with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkSuggestTrialsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('checkTrialEarlyStoppingState', () => { + it('invokes checkTrialEarlyStoppingState without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.checkTrialEarlyStoppingState = + stubLongRunningCall(expectedResponse); + const [operation] = await client.checkTrialEarlyStoppingState(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.checkTrialEarlyStoppingState as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkTrialEarlyStoppingState without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.checkTrialEarlyStoppingState = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.checkTrialEarlyStoppingState( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, + protos.google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.checkTrialEarlyStoppingState as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes checkTrialEarlyStoppingState with call error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.checkTrialEarlyStoppingState = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkTrialEarlyStoppingState(request), + expectedError + ); + assert( + (client.innerApiCalls.checkTrialEarlyStoppingState as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkTrialEarlyStoppingState with LRO error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest() + ); + request.trialName = ''; + const expectedHeaderRequestParams = 'trial_name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.checkTrialEarlyStoppingState = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.checkTrialEarlyStoppingState(request); + await assert.rejects(operation.promise(), expectedError); + assert( + (client.innerApiCalls.checkTrialEarlyStoppingState as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkCheckTrialEarlyStoppingStateProgress without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkCheckTrialEarlyStoppingStateProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCheckTrialEarlyStoppingStateProgress with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCheckTrialEarlyStoppingStateProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listStudies', () => { + it('invokes listStudies without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + ]; + client.innerApiCalls.listStudies = stubSimpleCall(expectedResponse); + const [response] = await client.listStudies(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listStudies as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listStudies without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + ]; + client.innerApiCalls.listStudies = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listStudies( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IStudy[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listStudies as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listStudies with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listStudies = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listStudies(request), expectedError); + assert( + (client.innerApiCalls.listStudies as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listStudiesStream without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + ]; + client.descriptors.page.listStudies.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listStudiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Study[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.Study) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listStudies.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listStudies, request) + ); + assert.strictEqual( + (client.descriptors.page.listStudies.createStream as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listStudiesStream with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listStudies.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listStudiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Study[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.Study) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listStudies.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listStudies, request) + ); + assert.strictEqual( + (client.descriptors.page.listStudies.createStream as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listStudies without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Study()), + ]; + client.descriptors.page.listStudies.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IStudy[] = []; + const iterable = client.listStudiesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listStudies.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listStudies.asyncIterate as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listStudies with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListStudiesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listStudies.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listStudiesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IStudy[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listStudies.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listStudies.asyncIterate as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listTrials', () => { + it('invokes listTrials without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + ]; + client.innerApiCalls.listTrials = stubSimpleCall(expectedResponse); + const [response] = await client.listTrials(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listTrials without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + ]; + client.innerApiCalls.listTrials = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listTrials( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ITrial[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listTrials with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listTrials = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listTrials(request), expectedError); + assert( + (client.innerApiCalls.listTrials as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listTrialsStream without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + ]; + client.descriptors.page.listTrials.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listTrialsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Trial[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.Trial) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listTrials.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listTrials, request) + ); + assert.strictEqual( + (client.descriptors.page.listTrials.createStream as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listTrialsStream with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listTrials.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listTrialsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Trial[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.Trial) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listTrials.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listTrials, request) + ); + assert.strictEqual( + (client.descriptors.page.listTrials.createStream as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listTrials without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Trial()), + ]; + client.descriptors.page.listTrials.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.ITrial[] = []; + const iterable = client.listTrialsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listTrials.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listTrials.asyncIterate as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listTrials with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListTrialsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listTrials.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listTrialsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.ITrial[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listTrials.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listTrials.asyncIterate as SinonStub).getCall( + 0 + ).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('endpoint', () => { + const fakePath = '/rendered/path/endpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.endpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.endpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('endpointPath', () => { + const result = client.endpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.endpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEndpointName', () => { + const result = client.matchProjectFromEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.endpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEndpointName', () => { + const result = client.matchLocationFromEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.endpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromEndpointName', () => { + const result = client.matchEndpointFromEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + (client.pathTemplates.endpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('location', () => { + const fakePath = '/rendered/path/location'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.locationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.locationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('locationPath', () => { + const result = client.locationPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.locationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLocationName', () => { + const result = client.matchProjectFromLocationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLocationName', () => { + const result = client.matchLocationFromLocationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +});