diff --git a/.jsdoc.js b/.jsdoc.js
index 0c543136..4208c18b 100644
--- a/.jsdoc.js
+++ b/.jsdoc.js
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
- copyright: 'Copyright 2021 Google LLC',
+ copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/automl',
diff --git a/protos/google/cloud/automl/v1/annotation_payload.proto b/protos/google/cloud/automl/v1/annotation_payload.proto
index a81feaf1..e3310269 100644
--- a/protos/google/cloud/automl/v1/annotation_payload.proto
+++ b/protos/google/cloud/automl/v1/annotation_payload.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,13 +16,13 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/cloud/automl/v1/classification.proto";
import "google/cloud/automl/v1/detection.proto";
import "google/cloud/automl/v1/text_extraction.proto";
import "google/cloud/automl/v1/text_sentiment.proto";
import "google/cloud/automl/v1/translation.proto";
import "google/protobuf/any.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/annotation_spec.proto b/protos/google/cloud/automl/v1/annotation_spec.proto
index 9eb61579..d750e24d 100644
--- a/protos/google/cloud/automl/v1/annotation_spec.proto
+++ b/protos/google/cloud/automl/v1/annotation_spec.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,8 +16,8 @@ syntax = "proto3";
package google.cloud.automl.v1;
-import "google/api/resource.proto";
import "google/api/annotations.proto";
+import "google/api/resource.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
@@ -35,7 +35,6 @@ message AnnotationSpec {
// Output only. Resource name of the annotation spec.
// Form:
- //
// 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;
diff --git a/protos/google/cloud/automl/v1/classification.proto b/protos/google/cloud/automl/v1/classification.proto
index 9213bfde..48bea525 100644
--- a/protos/google/cloud/automl/v1/classification.proto
+++ b/protos/google/cloud/automl/v1/classification.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -124,7 +124,6 @@ message ClassificationEvaluationMetrics {
// Output only. IDs of the annotation specs used in the confusion matrix.
// For Tables CLASSIFICATION
- //
// [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]
// only list of [annotation_spec_display_name-s][] is populated.
repeated string annotation_spec_id = 1;
@@ -132,7 +131,6 @@ message ClassificationEvaluationMetrics {
// Output only. Display name of the annotation specs used in the confusion
// matrix, as they were at the moment of the evaluation. For Tables
// CLASSIFICATION
- //
// [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type],
// distinct values of the target column at the moment of the model
// evaluation are populated here.
diff --git a/protos/google/cloud/automl/v1/data_items.proto b/protos/google/cloud/automl/v1/data_items.proto
index 63896ba9..c0a60b24 100644
--- a/protos/google/cloud/automl/v1/data_items.proto
+++ b/protos/google/cloud/automl/v1/data_items.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,13 +16,13 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/cloud/automl/v1/geometry.proto";
import "google/cloud/automl/v1/io.proto";
import "google/cloud/automl/v1/text_segment.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
@@ -146,7 +146,6 @@ message Document {
// The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
// Contains exactly 4
- //
// [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices]
// and they are connected by edges in the order provided, which will
// represent a rectangle parallel to the frame. The
diff --git a/protos/google/cloud/automl/v1/dataset.proto b/protos/google/cloud/automl/v1/dataset.proto
index 2040ec96..776e3a38 100644
--- a/protos/google/cloud/automl/v1/dataset.proto
+++ b/protos/google/cloud/automl/v1/dataset.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,12 +16,12 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/automl/v1/image.proto";
import "google/cloud/automl/v1/text.proto";
import "google/cloud/automl/v1/translation.proto";
import "google/protobuf/timestamp.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/detection.proto b/protos/google/cloud/automl/v1/detection.proto
index 13fe5935..d85728e7 100644
--- a/protos/google/cloud/automl/v1/detection.proto
+++ b/protos/google/cloud/automl/v1/detection.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,9 +16,9 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/cloud/automl/v1/geometry.proto";
import "google/protobuf/duration.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/geometry.proto b/protos/google/cloud/automl/v1/geometry.proto
index a6d97e80..95cd2e37 100644
--- a/protos/google/cloud/automl/v1/geometry.proto
+++ b/protos/google/cloud/automl/v1/geometry.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
diff --git a/protos/google/cloud/automl/v1/image.proto b/protos/google/cloud/automl/v1/image.proto
index 5269d22c..99be2da1 100644
--- a/protos/google/cloud/automl/v1/image.proto
+++ b/protos/google/cloud/automl/v1/image.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,11 +16,12 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
+import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/automl/v1/annotation_spec.proto";
import "google/cloud/automl/v1/classification.proto";
import "google/protobuf/timestamp.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
@@ -33,7 +34,7 @@ option ruby_package = "Google::Cloud::AutoML::V1";
// Dataset metadata that is specific to image classification.
message ImageClassificationDatasetMetadata {
// Required. Type of the classification problem.
- ClassificationType classification_type = 1;
+ ClassificationType classification_type = 1 [(google.api.field_behavior) = REQUIRED];
}
// Dataset metadata specific to image object detection.
@@ -48,9 +49,9 @@ message ImageClassificationModelMetadata {
// created from scratch. The `base` model must be in the same
// `project` and `location` as the new model to create, and have the same
// `model_type`.
- string base_model_id = 1;
+ string base_model_id = 1 [(google.api.field_behavior) = OPTIONAL];
- // The train budget of creating this model, expressed in milli node
+ // Optional. The train budget of creating this model, expressed in milli node
// hours i.e. 1,000 value in this field means 1 node hour. The actual
// `train_cost` will be equal or less than this value. If further model
// training ceases to provide any improvements, it will stop without using
@@ -64,16 +65,16 @@ message ImageClassificationModelMetadata {
// `mobile-core-ml-high-accuracy-1`, the train budget must be between 1,000
// and 100,000 milli node hours, inclusive. The default value is 24, 000 which
// represents one day in wall time.
- int64 train_budget_milli_node_hours = 16;
+ int64 train_budget_milli_node_hours = 16 [(google.api.field_behavior) = OPTIONAL];
// Output only. The actual train cost of creating this model, expressed in
// milli node hours, i.e. 1,000 value in this field means 1 node hour.
// Guaranteed to not exceed the train budget.
- int64 train_cost_milli_node_hours = 17;
+ int64 train_cost_milli_node_hours = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The reason that this create model operation stopped,
// e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
- string stop_reason = 5;
+ string stop_reason = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
// Optional. Type of the model. The available values are:
// * `cloud` - Model to be used via prediction calls to AutoML API.
@@ -108,16 +109,16 @@ message ImageClassificationModelMetadata {
// Core ML afterwards. Expected to have a higher latency, but
// should also have a higher prediction quality than other
// models.
- string model_type = 7;
+ string model_type = 7 [(google.api.field_behavior) = OPTIONAL];
// Output only. An approximate number of online prediction QPS that can
// be supported by this model per each node on which it is deployed.
- double node_qps = 13;
+ double node_qps = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The number of nodes this model is deployed on. A node is an
// abstraction of a machine resource, which can handle online prediction QPS
// as given in the node_qps field.
- int64 node_count = 14;
+ int64 node_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Model metadata specific to image object detection.
@@ -145,22 +146,22 @@ message ImageObjectDetectionModelMetadata {
// with TensorFlow afterwards. Expected to have a higher
// latency, but should also have a higher prediction quality
// than other models.
- string model_type = 1;
+ string model_type = 1 [(google.api.field_behavior) = OPTIONAL];
// Output only. The number of nodes this model is deployed on. A node is an
// abstraction of a machine resource, which can handle online prediction QPS
// as given in the qps_per_node field.
- int64 node_count = 3;
+ int64 node_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. An approximate number of online prediction QPS that can
// be supported by this model per each node on which it is deployed.
- double node_qps = 4;
+ double node_qps = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The reason that this create model operation stopped,
// e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
- string stop_reason = 5;
+ string stop_reason = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
- // The train budget of creating this model, expressed in milli node
+ // Optional. The train budget of creating this model, expressed in milli node
// hours i.e. 1,000 value in this field means 1 node hour. The actual
// `train_cost` will be equal or less than this value. If further model
// training ceases to provide any improvements, it will stop without using
@@ -175,12 +176,12 @@ message ImageObjectDetectionModelMetadata {
// `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train
// budget must be between 1,000 and 100,000 milli node hours, inclusive.
// The default value is 24, 000 which represents one day in wall time.
- int64 train_budget_milli_node_hours = 6;
+ int64 train_budget_milli_node_hours = 6 [(google.api.field_behavior) = OPTIONAL];
// Output only. The actual train cost of creating this model, expressed in
// milli node hours, i.e. 1,000 value in this field means 1 node hour.
// Guaranteed to not exceed the train budget.
- int64 train_cost_milli_node_hours = 7;
+ int64 train_cost_milli_node_hours = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Model deployment metadata specific to Image Classification.
@@ -188,10 +189,9 @@ message ImageClassificationModelDeploymentMetadata {
// Input only. The number of nodes to deploy the model on. A node is an
// abstraction of a machine resource, which can handle online prediction QPS
// as given in the model's
- //
// [node_qps][google.cloud.automl.v1.ImageClassificationModelMetadata.node_qps].
// Must be between 1 and 100, inclusive on both ends.
- int64 node_count = 1;
+ int64 node_count = 1 [(google.api.field_behavior) = INPUT_ONLY];
}
// Model deployment metadata specific to Image Object Detection.
@@ -199,8 +199,7 @@ message ImageObjectDetectionModelDeploymentMetadata {
// Input only. The number of nodes to deploy the model on. A node is an
// abstraction of a machine resource, which can handle online prediction QPS
// as given in the model's
- //
// [qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node].
// Must be between 1 and 100, inclusive on both ends.
- int64 node_count = 1;
+ int64 node_count = 1 [(google.api.field_behavior) = INPUT_ONLY];
}
diff --git a/protos/google/cloud/automl/v1/io.proto b/protos/google/cloud/automl/v1/io.proto
index c6ac8a35..0b713d69 100644
--- a/protos/google/cloud/automl/v1/io.proto
+++ b/protos/google/cloud/automl/v1/io.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,8 +16,8 @@ syntax = "proto3";
package google.cloud.automl.v1;
-import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
+import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
@@ -532,7 +532,6 @@ option ruby_package = "Google::Cloud::AutoML::V1";
// [bigquery_source][google.cloud.automl.v1.InputConfig.bigquery_source].
// All input is concatenated into a
// single
-//
// [primary_table_spec_id][google.cloud.automl.v1.TablesDatasetMetadata.primary_table_spec_id]
//
// **For gcs_source:**
@@ -549,9 +548,7 @@ option ruby_package = "Google::Cloud::AutoML::V1";
// First three sample rows of a CSV file:
//
// "Id","First Name","Last Name","Dob","Addresses"
-//
// "1","John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
-//
// "2","Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
//
// **For bigquery_source:**
@@ -879,7 +876,6 @@ message InputConfig {
// contain values for the corresponding columns.
//
// The column names must contain the model's
-//
// [input_feature_column_specs'][google.cloud.automl.v1.TablesModelMetadata.input_feature_column_specs]
// [display_name-s][google.cloud.automl.v1.ColumnSpec.display_name]
// (order doesn't matter). The columns corresponding to the model's
@@ -891,9 +887,7 @@ message InputConfig {
// Sample rows from a CSV file:
//
// "First Name","Last Name","Dob","Addresses"
-//
// "John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
-//
// "Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
//
// **For bigquery_source:**
@@ -902,7 +896,6 @@ message InputConfig {
// table must be 100GB or smaller.
//
// The column names must contain the model's
-//
// [input_feature_column_specs'][google.cloud.automl.v1.TablesModelMetadata.input_feature_column_specs]
// [display_name-s][google.cloud.automl.v1.ColumnSpec.display_name]
// (order doesn't matter). The columns corresponding to the model's
@@ -973,19 +966,16 @@ message DocumentInputConfig {
// Output depends on whether the dataset was imported from Google Cloud
// Storage or BigQuery.
// Google Cloud Storage case:
-//
-// [gcs_destination][google.cloud.automl.v1p1beta.OutputConfig.gcs_destination]
+// [gcs_destination][google.cloud.automl.v1p1beta.OutputConfig.gcs_destination]
// must be set. Exported are CSV file(s) `tables_1.csv`,
// `tables_2.csv`,...,`tables_N.csv` with each having as header line
// the table's column names, and all other lines contain values for
// the header columns.
// BigQuery case:
-//
-// [bigquery_destination][google.cloud.automl.v1p1beta.OutputConfig.bigquery_destination]
+// [bigquery_destination][google.cloud.automl.v1p1beta.OutputConfig.bigquery_destination]
// pointing to a BigQuery project must be set. In the given project a
// new dataset will be created with name
-//
-// `export_data__`
+// `export_data__`
// where will be made
// BigQuery-dataset-name compatible (e.g. most special characters will
// become underscores), and timestamp will be in
@@ -1008,7 +998,6 @@ message OutputConfig {
// Output configuration for BatchPredict Action.
//
// As destination the
-//
// [gcs_destination][google.cloud.automl.v1.BatchPredictOutputConfig.gcs_destination]
// must be set unless specified otherwise for a domain. If gcs_destination is
// set then in the given directory a new directory is created. Its name
@@ -1034,9 +1023,7 @@ message OutputConfig {
// predictions). These files will have a JSON representation of a proto
// that wraps the same "ID" : "" but here followed by
// exactly one
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// containing only `code` and `message`fields.
//
// * For Image Object Detection:
@@ -1056,9 +1043,7 @@ message OutputConfig {
// predictions). These files will have a JSON representation of a proto
// that wraps the same "ID" : "" but here followed by
// exactly one
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// containing only `code` and `message`fields.
// * For Video Classification:
// In the created directory a video_classification.csv file, and a .JSON
@@ -1066,8 +1051,7 @@ message OutputConfig {
// line in given CSV(s)), will be created.
//
// The format of video_classification.csv is:
-//
-// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS
// where:
// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1
// the prediction input lines (i.e. video_classification.csv has
@@ -1095,8 +1079,7 @@ message OutputConfig {
// lines in given CSV(s)).
//
// The format of video_object_tracking.csv is:
-//
-// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS
// where:
// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1
// the prediction input lines (i.e. video_object_tracking.csv has
@@ -1131,9 +1114,7 @@ message OutputConfig {
// `errors_N.jsonl` files will be created (N depends on total number of
// failed predictions). These files will have a JSON representation of a
// proto that wraps input file followed by exactly one
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// containing only `code` and `message`.
//
// * For Text Sentiment:
@@ -1155,9 +1136,7 @@ message OutputConfig {
// `errors_N.jsonl` files will be created (N depends on total number of
// failed predictions). These files will have a JSON representation of a
// proto that wraps input file followed by exactly one
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// containing only `code` and `message`.
//
// * For Text Extraction:
@@ -1191,34 +1170,26 @@ message OutputConfig {
// proto that wraps either the "id" : "" (in case of inline)
// or the document proto (in case of document) but here followed by
// exactly one
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// containing only `code` and `message`.
//
// * For Tables:
// Output depends on whether
-//
-// [gcs_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.gcs_destination]
+// [gcs_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.gcs_destination]
// or
-//
-// [bigquery_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.bigquery_destination]
+// [bigquery_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.bigquery_destination]
// is set (either is allowed).
// Google Cloud Storage case:
// In the created directory files `tables_1.csv`, `tables_2.csv`,...,
// `tables_N.csv` will be created, where N may be 1, and depends on
// the total number of the successfully predicted rows.
// For all CLASSIFICATION
-//
-// [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]:
+// [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]:
// Each .csv file will contain a header, listing all columns'
-//
-// [display_name-s][google.cloud.automl.v1p1beta.ColumnSpec.display_name]
+// [display_name-s][google.cloud.automl.v1p1beta.ColumnSpec.display_name]
// given on input followed by M target column names in the format of
-//
-// "<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
-//
-// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>___score" where M is the number of distinct target values,
// i.e. number of distinct values in the target column of the table
// used to train the model. Subsequent lines will contain the
@@ -1226,16 +1197,13 @@ message OutputConfig {
// i.e. the target, columns having the corresponding prediction
// [scores][google.cloud.automl.v1p1beta.TablesAnnotation.score].
// For REGRESSION and FORECASTING
-//
-// [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]:
+// [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]:
// Each .csv file will contain a header, listing all columns'
// [display_name-s][google.cloud.automl.v1p1beta.display_name]
// given on input followed by the predicted target column with name
// in the format of
-//
-// "predicted_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
-//
-// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>"
+// "predicted_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
+// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>"
// Subsequent lines will contain the respective values of
// successfully predicted rows, with the last, i.e. the target,
// column having the predicted target value.
@@ -1244,14 +1212,11 @@ message OutputConfig {
// created (N depends on total number of failed rows). These files
// will have analogous format as `tables_*.csv`, but always with a
// single target column having
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// represented as a JSON string, and containing only `code` and
// `message`.
// BigQuery case:
-//
-// [bigquery_destination][google.cloud.automl.v1p1beta.OutputConfig.bigquery_destination]
+// [bigquery_destination][google.cloud.automl.v1p1beta.OutputConfig.bigquery_destination]
// pointing to a BigQuery project must be set. In the given project a
// new dataset will be created with name
// `prediction__`
@@ -1261,31 +1226,23 @@ message OutputConfig {
// YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset
// two tables will be created, `predictions`, and `errors`.
// The `predictions` table's column names will be the input columns'
-//
-// [display_name-s][google.cloud.automl.v1p1beta.ColumnSpec.display_name]
+// [display_name-s][google.cloud.automl.v1p1beta.ColumnSpec.display_name]
// followed by the target column with name in the format of
-//
-// "predicted_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
-//
-// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>"
+// "predicted_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
+// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>"
// The input feature columns will contain the respective values of
// successfully predicted rows, with the target column having an
// ARRAY of
-//
-// [AnnotationPayloads][google.cloud.automl.v1p1beta.AnnotationPayload],
+// [AnnotationPayloads][google.cloud.automl.v1p1beta.AnnotationPayload],
// represented as STRUCT-s, containing
// [TablesAnnotation][google.cloud.automl.v1p1beta.TablesAnnotation].
// The `errors` table contains rows for which the prediction has
// failed, it has analogous input columns while the target column name
// is in the format of
-//
-// "errors_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
-//
-// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>",
+// "errors_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec]
+// [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>",
// and as a value has
-//
-// [`google.rpc.Status`](https:
-// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
// represented as a STRUCT, and containing only `code` and `message`.
message BatchPredictOutputConfig {
// The destination of the output.
@@ -1341,9 +1298,7 @@ message ModelExportOutputConfig {
// the container. The container is verified to work correctly on
// ubuntu 16.04 operating system. See more at
// [containers
- //
- // quickstart](https:
- // //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
+ // quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
// * core_ml - Used for iOS mobile devices.
string model_format = 4;
diff --git a/protos/google/cloud/automl/v1/model.proto b/protos/google/cloud/automl/v1/model.proto
index f5368937..2bc3c3e7 100644
--- a/protos/google/cloud/automl/v1/model.proto
+++ b/protos/google/cloud/automl/v1/model.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,12 +16,12 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/automl/v1/image.proto";
import "google/cloud/automl/v1/text.proto";
import "google/cloud/automl/v1/translation.proto";
import "google/protobuf/timestamp.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/model_evaluation.proto b/protos/google/cloud/automl/v1/model_evaluation.proto
index 601389f7..10fb2f54 100644
--- a/protos/google/cloud/automl/v1/model_evaluation.proto
+++ b/protos/google/cloud/automl/v1/model_evaluation.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,6 +16,7 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/automl/v1/classification.proto";
import "google/cloud/automl/v1/detection.proto";
@@ -23,7 +24,6 @@ import "google/cloud/automl/v1/text_extraction.proto";
import "google/cloud/automl/v1/text_sentiment.proto";
import "google/cloud/automl/v1/translation.proto";
import "google/protobuf/timestamp.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
@@ -62,7 +62,6 @@ message ModelEvaluation {
// Output only. Resource name of the model evaluation.
// Format:
- //
// `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
string name = 1;
@@ -70,7 +69,6 @@ message ModelEvaluation {
// The ID is empty for the overall model evaluation.
// For Tables annotation specs in the dataset do not exist and this ID is
// always not set, but for CLASSIFICATION
- //
// [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type]
// the
// [display_name][google.cloud.automl.v1.ModelEvaluation.display_name]
@@ -83,7 +81,6 @@ message ModelEvaluation {
// value at model training time, for different models trained from the same
// dataset, the values may differ, since display names could had been changed
// between the two model's trainings. For Tables CLASSIFICATION
- //
// [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type]
// distinct values of the target column at the moment of the model evaluation
// are populated here.
@@ -100,7 +97,6 @@ message ModelEvaluation {
// the total number of all examples used for evaluation.
// Otherwise, this is the count of examples that according to the ground
// truth were annotated by the
- //
// [annotation_spec_id][google.cloud.automl.v1.ModelEvaluation.annotation_spec_id].
int32 evaluated_example_count = 6;
}
diff --git a/protos/google/cloud/automl/v1/operations.proto b/protos/google/cloud/automl/v1/operations.proto
index d6a99870..bd2256d0 100644
--- a/protos/google/cloud/automl/v1/operations.proto
+++ b/protos/google/cloud/automl/v1/operations.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,11 +16,16 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/cloud/automl/v1/dataset.proto";
import "google/cloud/automl/v1/io.proto";
+import "google/cloud/automl/v1/model.proto";
+import "google/cloud/automl/v1/model_evaluation.proto";
+import "google/cloud/automl/v1/prediction_service.proto";
+import "google/cloud/automl/v1/service.proto";
+import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
@@ -131,7 +136,6 @@ message ExportDataOperationMetadata {
message BatchPredictOperationMetadata {
// Further describes this batch predict's output.
// Supplements
- //
// [BatchPredictOutputConfig][google.cloud.automl.v1.BatchPredictOutputConfig].
message BatchPredictOutputInfo {
// The output location into which prediction output is written.
diff --git a/protos/google/cloud/automl/v1/prediction_service.proto b/protos/google/cloud/automl/v1/prediction_service.proto
index b7b69cc2..9db95024 100644
--- a/protos/google/cloud/automl/v1/prediction_service.proto
+++ b/protos/google/cloud/automl/v1/prediction_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -23,7 +23,6 @@ import "google/api/resource.proto";
import "google/cloud/automl/v1/annotation_payload.proto";
import "google/cloud/automl/v1/data_items.proto";
import "google/cloud/automl/v1/io.proto";
-import "google/cloud/automl/v1/operations.proto";
import "google/longrunning/operations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
@@ -37,7 +36,7 @@ option ruby_package = "Google::Cloud::AutoML::V1";
// AutoML Prediction API.
//
// On any input that is documented to expect a string parameter in
-// snake_case or kebab-case, either of those cases is accepted.
+// snake_case or dash-case, either of those cases is accepted.
service PredictionService {
option (google.api.default_host) = "automl.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
@@ -154,7 +153,6 @@ message PredictRequest {
//
// `feature_importance`
// : (boolean) Whether
- //
// [feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance]
// is populated in the returned list of
// [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation]
diff --git a/protos/google/cloud/automl/v1/service.proto b/protos/google/cloud/automl/v1/service.proto
index 683f6402..f72ebdb5 100644
--- a/protos/google/cloud/automl/v1/service.proto
+++ b/protos/google/cloud/automl/v1/service.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -27,7 +27,6 @@ import "google/cloud/automl/v1/image.proto";
import "google/cloud/automl/v1/io.proto";
import "google/cloud/automl/v1/model.proto";
import "google/cloud/automl/v1/model_evaluation.proto";
-import "google/cloud/automl/v1/operations.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/field_mask.proto";
@@ -52,7 +51,7 @@ option ruby_package = "Google::Cloud::AutoML::V1";
// Currently the only supported `location_id` is "us-central1".
//
// On any input that is documented to expect a string parameter in
-// snake_case or kebab-case, either of those cases is accepted.
+// snake_case or dash-case, either of those cases is accepted.
service AutoMl {
option (google.api.default_host) = "automl.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
@@ -216,7 +215,6 @@ service AutoMl {
// Deploys a model. If a model is already deployed, deploying it with the
// same parameters has no effect. Deploying with different parametrs
// (as e.g. changing
- //
// [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
// will reset the deployment state without pausing the model's availability.
//
@@ -330,8 +328,7 @@ message ListDatasetsRequest {
// An expression for filtering the results of the request.
//
// * `dataset_metadata` - for existence of the case (e.g.
- // `image_classification_dataset_metadata:*`). Some examples of
- // using the filter are:
+ // `image_classification_dataset_metadata:*`). Some examples of using the filter are:
//
// * `translation_dataset_metadata:*` --> The dataset has
// `translation_dataset_metadata`.
diff --git a/protos/google/cloud/automl/v1/text.proto b/protos/google/cloud/automl/v1/text.proto
index 667031b8..d4eb764f 100644
--- a/protos/google/cloud/automl/v1/text.proto
+++ b/protos/google/cloud/automl/v1/text.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,8 +16,9 @@ syntax = "proto3";
package google.cloud.automl.v1;
-import "google/cloud/automl/v1/classification.proto";
import "google/api/annotations.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/automl/v1/classification.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/text_extraction.proto b/protos/google/cloud/automl/v1/text_extraction.proto
index 37a31e71..e28fa4bb 100644
--- a/protos/google/cloud/automl/v1/text_extraction.proto
+++ b/protos/google/cloud/automl/v1/text_extraction.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,8 +16,8 @@ syntax = "proto3";
package google.cloud.automl.v1;
-import "google/cloud/automl/v1/text_segment.proto";
import "google/api/annotations.proto";
+import "google/cloud/automl/v1/text_segment.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/text_segment.proto b/protos/google/cloud/automl/v1/text_segment.proto
index be7eb154..c3c28b1d 100644
--- a/protos/google/cloud/automl/v1/text_segment.proto
+++ b/protos/google/cloud/automl/v1/text_segment.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
diff --git a/protos/google/cloud/automl/v1/text_sentiment.proto b/protos/google/cloud/automl/v1/text_sentiment.proto
index c68b9ed3..8541bfa1 100644
--- a/protos/google/cloud/automl/v1/text_sentiment.proto
+++ b/protos/google/cloud/automl/v1/text_sentiment.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,8 +16,8 @@ syntax = "proto3";
package google.cloud.automl.v1;
-import "google/cloud/automl/v1/classification.proto";
import "google/api/annotations.proto";
+import "google/cloud/automl/v1/classification.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/google/cloud/automl/v1/translation.proto b/protos/google/cloud/automl/v1/translation.proto
index 642894e8..aa046672 100644
--- a/protos/google/cloud/automl/v1/translation.proto
+++ b/protos/google/cloud/automl/v1/translation.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// 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.
@@ -16,9 +16,9 @@ syntax = "proto3";
package google.cloud.automl.v1;
+import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/cloud/automl/v1/data_items.proto";
-import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
diff --git a/protos/protos.d.ts b/protos/protos.d.ts
index 24bef319..eac6b586 100644
--- a/protos/protos.d.ts
+++ b/protos/protos.d.ts
@@ -28468,112 +28468,6 @@ export namespace google {
}
}
- /** Namespace rpc. */
- namespace rpc {
-
- /** Properties of a Status. */
- interface IStatus {
-
- /** Status code */
- code?: (number|null);
-
- /** Status message */
- message?: (string|null);
-
- /** Status details */
- details?: (google.protobuf.IAny[]|null);
- }
-
- /** Represents a Status. */
- class Status implements IStatus {
-
- /**
- * Constructs a new Status.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.rpc.IStatus);
-
- /** Status code. */
- public code: number;
-
- /** Status message. */
- public message: string;
-
- /** Status details. */
- public details: google.protobuf.IAny[];
-
- /**
- * Creates a new Status instance using the specified properties.
- * @param [properties] Properties to set
- * @returns Status instance
- */
- public static create(properties?: google.rpc.IStatus): google.rpc.Status;
-
- /**
- * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
- * @param message Status message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
- * @param message Status message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a Status message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns Status
- * @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.rpc.Status;
-
- /**
- * Decodes a Status message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns Status
- * @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.rpc.Status;
-
- /**
- * Verifies a Status 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 Status message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns Status
- */
- public static fromObject(object: { [k: string]: any }): google.rpc.Status;
-
- /**
- * Creates a plain object from a Status message. Also converts values to other types if specified.
- * @param message Status
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this Status to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
- }
- }
-
/** Namespace longrunning. */
namespace longrunning {
@@ -29489,4 +29383,110 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
}
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @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.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @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.rpc.Status;
+
+ /**
+ * Verifies a Status 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 Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+ }
}
diff --git a/protos/protos.js b/protos/protos.js
index 3743f4ee..c3647cb5 100644
--- a/protos/protos.js
+++ b/protos/protos.js
@@ -69684,272 +69684,6 @@
return protobuf;
})();
- google.rpc = (function() {
-
- /**
- * Namespace rpc.
- * @memberof google
- * @namespace
- */
- var rpc = {};
-
- rpc.Status = (function() {
-
- /**
- * Properties of a Status.
- * @memberof google.rpc
- * @interface IStatus
- * @property {number|null} [code] Status code
- * @property {string|null} [message] Status message
- * @property {Array.|null} [details] Status details
- */
-
- /**
- * Constructs a new Status.
- * @memberof google.rpc
- * @classdesc Represents a Status.
- * @implements IStatus
- * @constructor
- * @param {google.rpc.IStatus=} [properties] Properties to set
- */
- function Status(properties) {
- this.details = [];
- 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]];
- }
-
- /**
- * Status code.
- * @member {number} code
- * @memberof google.rpc.Status
- * @instance
- */
- Status.prototype.code = 0;
-
- /**
- * Status message.
- * @member {string} message
- * @memberof google.rpc.Status
- * @instance
- */
- Status.prototype.message = "";
-
- /**
- * Status details.
- * @member {Array.} details
- * @memberof google.rpc.Status
- * @instance
- */
- Status.prototype.details = $util.emptyArray;
-
- /**
- * Creates a new Status instance using the specified properties.
- * @function create
- * @memberof google.rpc.Status
- * @static
- * @param {google.rpc.IStatus=} [properties] Properties to set
- * @returns {google.rpc.Status} Status instance
- */
- Status.create = function create(properties) {
- return new Status(properties);
- };
-
- /**
- * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
- * @function encode
- * @memberof google.rpc.Status
- * @static
- * @param {google.rpc.IStatus} message Status message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Status.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.code != null && Object.hasOwnProperty.call(message, "code"))
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
- if (message.message != null && Object.hasOwnProperty.call(message, "message"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
- if (message.details != null && message.details.length)
- for (var i = 0; i < message.details.length; ++i)
- $root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
-
- /**
- * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
- * @function encodeDelimited
- * @memberof google.rpc.Status
- * @static
- * @param {google.rpc.IStatus} message Status message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Status.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a Status message from the specified reader or buffer.
- * @function decode
- * @memberof google.rpc.Status
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {google.rpc.Status} Status
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Status.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.rpc.Status();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.code = reader.int32();
- break;
- case 2:
- message.message = reader.string();
- break;
- case 3:
- if (!(message.details && message.details.length))
- message.details = [];
- message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a Status message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof google.rpc.Status
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.rpc.Status} Status
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Status.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a Status message.
- * @function verify
- * @memberof google.rpc.Status
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- Status.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.code != null && message.hasOwnProperty("code"))
- if (!$util.isInteger(message.code))
- return "code: integer expected";
- if (message.message != null && message.hasOwnProperty("message"))
- if (!$util.isString(message.message))
- return "message: string expected";
- if (message.details != null && message.hasOwnProperty("details")) {
- if (!Array.isArray(message.details))
- return "details: array expected";
- for (var i = 0; i < message.details.length; ++i) {
- var error = $root.google.protobuf.Any.verify(message.details[i]);
- if (error)
- return "details." + error;
- }
- }
- return null;
- };
-
- /**
- * Creates a Status message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.rpc.Status
- * @static
- * @param {Object.} object Plain object
- * @returns {google.rpc.Status} Status
- */
- Status.fromObject = function fromObject(object) {
- if (object instanceof $root.google.rpc.Status)
- return object;
- var message = new $root.google.rpc.Status();
- if (object.code != null)
- message.code = object.code | 0;
- if (object.message != null)
- message.message = String(object.message);
- if (object.details) {
- if (!Array.isArray(object.details))
- throw TypeError(".google.rpc.Status.details: array expected");
- message.details = [];
- for (var i = 0; i < object.details.length; ++i) {
- if (typeof object.details[i] !== "object")
- throw TypeError(".google.rpc.Status.details: object expected");
- message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]);
- }
- }
- return message;
- };
-
- /**
- * Creates a plain object from a Status message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.rpc.Status
- * @static
- * @param {google.rpc.Status} message Status
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- Status.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.details = [];
- if (options.defaults) {
- object.code = 0;
- object.message = "";
- }
- if (message.code != null && message.hasOwnProperty("code"))
- object.code = message.code;
- if (message.message != null && message.hasOwnProperty("message"))
- object.message = message.message;
- if (message.details && message.details.length) {
- object.details = [];
- for (var j = 0; j < message.details.length; ++j)
- object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options);
- }
- return object;
- };
-
- /**
- * Converts this Status to JSON.
- * @function toJSON
- * @memberof google.rpc.Status
- * @instance
- * @returns {Object.} JSON object
- */
- Status.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- return Status;
- })();
-
- return rpc;
- })();
-
google.longrunning = (function() {
/**
@@ -71701,62 +71435,286 @@
};
/**
- * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.longrunning.WaitOperationRequest
+ * @static
+ * @param {google.longrunning.WaitOperationRequest} message WaitOperationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WaitOperationRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.timeout = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.timeout != null && message.hasOwnProperty("timeout"))
+ object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options);
+ return object;
+ };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @function toJSON
+ * @memberof google.longrunning.WaitOperationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WaitOperationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return WaitOperationRequest;
+ })();
+
+ longrunning.OperationInfo = (function() {
+
+ /**
+ * Properties of an OperationInfo.
+ * @memberof google.longrunning
+ * @interface IOperationInfo
+ * @property {string|null} [responseType] OperationInfo responseType
+ * @property {string|null} [metadataType] OperationInfo metadataType
+ */
+
+ /**
+ * Constructs a new OperationInfo.
+ * @memberof google.longrunning
+ * @classdesc Represents an OperationInfo.
+ * @implements IOperationInfo
+ * @constructor
+ * @param {google.longrunning.IOperationInfo=} [properties] Properties to set
+ */
+ function OperationInfo(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]];
+ }
+
+ /**
+ * OperationInfo responseType.
+ * @member {string} responseType
+ * @memberof google.longrunning.OperationInfo
+ * @instance
+ */
+ OperationInfo.prototype.responseType = "";
+
+ /**
+ * OperationInfo metadataType.
+ * @member {string} metadataType
+ * @memberof google.longrunning.OperationInfo
+ * @instance
+ */
+ OperationInfo.prototype.metadataType = "";
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @function create
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {google.longrunning.IOperationInfo=} [properties] Properties to set
+ * @returns {google.longrunning.OperationInfo} OperationInfo instance
+ */
+ OperationInfo.create = function create(properties) {
+ return new OperationInfo(properties);
+ };
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseType);
+ if (message.metadataType != null && Object.hasOwnProperty.call(message, "metadataType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.longrunning.OperationInfo} OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationInfo.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.longrunning.OperationInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.responseType = reader.string();
+ break;
+ case 2:
+ message.metadataType = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.longrunning.OperationInfo} OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationInfo message.
+ * @function verify
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.responseType != null && message.hasOwnProperty("responseType"))
+ if (!$util.isString(message.responseType))
+ return "responseType: string expected";
+ if (message.metadataType != null && message.hasOwnProperty("metadataType"))
+ if (!$util.isString(message.metadataType))
+ return "metadataType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.longrunning.OperationInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.longrunning.OperationInfo} OperationInfo
+ */
+ OperationInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.longrunning.OperationInfo)
+ return object;
+ var message = new $root.google.longrunning.OperationInfo();
+ if (object.responseType != null)
+ message.responseType = String(object.responseType);
+ if (object.metadataType != null)
+ message.metadataType = String(object.metadataType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.longrunning.WaitOperationRequest
+ * @memberof google.longrunning.OperationInfo
* @static
- * @param {google.longrunning.WaitOperationRequest} message WaitOperationRequest
+ * @param {google.longrunning.OperationInfo} message OperationInfo
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- WaitOperationRequest.toObject = function toObject(message, options) {
+ OperationInfo.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
- object.name = "";
- object.timeout = null;
+ object.responseType = "";
+ object.metadataType = "";
}
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.timeout != null && message.hasOwnProperty("timeout"))
- object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options);
+ if (message.responseType != null && message.hasOwnProperty("responseType"))
+ object.responseType = message.responseType;
+ if (message.metadataType != null && message.hasOwnProperty("metadataType"))
+ object.metadataType = message.metadataType;
return object;
};
/**
- * Converts this WaitOperationRequest to JSON.
+ * Converts this OperationInfo to JSON.
* @function toJSON
- * @memberof google.longrunning.WaitOperationRequest
+ * @memberof google.longrunning.OperationInfo
* @instance
* @returns {Object.} JSON object
*/
- WaitOperationRequest.prototype.toJSON = function toJSON() {
+ OperationInfo.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return WaitOperationRequest;
+ return OperationInfo;
})();
- longrunning.OperationInfo = (function() {
+ return longrunning;
+ })();
+
+ google.rpc = (function() {
+
+ /**
+ * Namespace rpc.
+ * @memberof google
+ * @namespace
+ */
+ var rpc = {};
+
+ rpc.Status = (function() {
/**
- * Properties of an OperationInfo.
- * @memberof google.longrunning
- * @interface IOperationInfo
- * @property {string|null} [responseType] OperationInfo responseType
- * @property {string|null} [metadataType] OperationInfo metadataType
+ * Properties of a Status.
+ * @memberof google.rpc
+ * @interface IStatus
+ * @property {number|null} [code] Status code
+ * @property {string|null} [message] Status message
+ * @property {Array.|null} [details] Status details
*/
/**
- * Constructs a new OperationInfo.
- * @memberof google.longrunning
- * @classdesc Represents an OperationInfo.
- * @implements IOperationInfo
+ * Constructs a new Status.
+ * @memberof google.rpc
+ * @classdesc Represents a Status.
+ * @implements IStatus
* @constructor
- * @param {google.longrunning.IOperationInfo=} [properties] Properties to set
+ * @param {google.rpc.IStatus=} [properties] Properties to set
*/
- function OperationInfo(properties) {
+ function Status(properties) {
+ this.details = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -71764,88 +71722,104 @@
}
/**
- * OperationInfo responseType.
- * @member {string} responseType
- * @memberof google.longrunning.OperationInfo
+ * Status code.
+ * @member {number} code
+ * @memberof google.rpc.Status
* @instance
*/
- OperationInfo.prototype.responseType = "";
+ Status.prototype.code = 0;
/**
- * OperationInfo metadataType.
- * @member {string} metadataType
- * @memberof google.longrunning.OperationInfo
+ * Status message.
+ * @member {string} message
+ * @memberof google.rpc.Status
* @instance
*/
- OperationInfo.prototype.metadataType = "";
+ Status.prototype.message = "";
/**
- * Creates a new OperationInfo instance using the specified properties.
+ * Status details.
+ * @member {Array.} details
+ * @memberof google.rpc.Status
+ * @instance
+ */
+ Status.prototype.details = $util.emptyArray;
+
+ /**
+ * Creates a new Status instance using the specified properties.
* @function create
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
- * @param {google.longrunning.IOperationInfo=} [properties] Properties to set
- * @returns {google.longrunning.OperationInfo} OperationInfo instance
+ * @param {google.rpc.IStatus=} [properties] Properties to set
+ * @returns {google.rpc.Status} Status instance
*/
- OperationInfo.create = function create(properties) {
- return new OperationInfo(properties);
+ Status.create = function create(properties) {
+ return new Status(properties);
};
/**
- * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
* @function encode
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
- * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode
+ * @param {google.rpc.IStatus} message Status message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- OperationInfo.encode = function encode(message, writer) {
+ Status.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseType);
- if (message.metadataType != null && Object.hasOwnProperty.call(message, "metadataType"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataType);
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
+ if (message.details != null && message.details.length)
+ for (var i = 0; i < message.details.length; ++i)
+ $root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
return writer;
};
/**
- * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
- * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode
+ * @param {google.rpc.IStatus} message Status message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- OperationInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ Status.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an OperationInfo message from the specified reader or buffer.
+ * Decodes a Status message from the specified reader or buffer.
* @function decode
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.longrunning.OperationInfo} OperationInfo
+ * @returns {google.rpc.Status} Status
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- OperationInfo.decode = function decode(reader, length) {
+ Status.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.longrunning.OperationInfo();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.Status();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.responseType = reader.string();
+ message.code = reader.int32();
break;
case 2:
- message.metadataType = reader.string();
+ message.message = reader.string();
+ break;
+ case 3:
+ if (!(message.details && message.details.length))
+ message.details = [];
+ message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
@@ -71856,99 +71830,125 @@
};
/**
- * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * Decodes a Status message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.longrunning.OperationInfo} OperationInfo
+ * @returns {google.rpc.Status} Status
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- OperationInfo.decodeDelimited = function decodeDelimited(reader) {
+ Status.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an OperationInfo message.
+ * Verifies a Status message.
* @function verify
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- OperationInfo.verify = function verify(message) {
+ Status.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.responseType != null && message.hasOwnProperty("responseType"))
- if (!$util.isString(message.responseType))
- return "responseType: string expected";
- if (message.metadataType != null && message.hasOwnProperty("metadataType"))
- if (!$util.isString(message.metadataType))
- return "metadataType: string expected";
+ if (message.code != null && message.hasOwnProperty("code"))
+ if (!$util.isInteger(message.code))
+ return "code: integer expected";
+ if (message.message != null && message.hasOwnProperty("message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ if (message.details != null && message.hasOwnProperty("details")) {
+ if (!Array.isArray(message.details))
+ return "details: array expected";
+ for (var i = 0; i < message.details.length; ++i) {
+ var error = $root.google.protobuf.Any.verify(message.details[i]);
+ if (error)
+ return "details." + error;
+ }
+ }
return null;
};
/**
- * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
* @param {Object.} object Plain object
- * @returns {google.longrunning.OperationInfo} OperationInfo
+ * @returns {google.rpc.Status} Status
*/
- OperationInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.google.longrunning.OperationInfo)
+ Status.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.rpc.Status)
return object;
- var message = new $root.google.longrunning.OperationInfo();
- if (object.responseType != null)
- message.responseType = String(object.responseType);
- if (object.metadataType != null)
- message.metadataType = String(object.metadataType);
+ var message = new $root.google.rpc.Status();
+ if (object.code != null)
+ message.code = object.code | 0;
+ if (object.message != null)
+ message.message = String(object.message);
+ if (object.details) {
+ if (!Array.isArray(object.details))
+ throw TypeError(".google.rpc.Status.details: array expected");
+ message.details = [];
+ for (var i = 0; i < object.details.length; ++i) {
+ if (typeof object.details[i] !== "object")
+ throw TypeError(".google.rpc.Status.details: object expected");
+ message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]);
+ }
+ }
return message;
};
/**
- * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @static
- * @param {google.longrunning.OperationInfo} message OperationInfo
+ * @param {google.rpc.Status} message Status
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- OperationInfo.toObject = function toObject(message, options) {
+ Status.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
+ if (options.arrays || options.defaults)
+ object.details = [];
if (options.defaults) {
- object.responseType = "";
- object.metadataType = "";
+ object.code = 0;
+ object.message = "";
+ }
+ if (message.code != null && message.hasOwnProperty("code"))
+ object.code = message.code;
+ if (message.message != null && message.hasOwnProperty("message"))
+ object.message = message.message;
+ if (message.details && message.details.length) {
+ object.details = [];
+ for (var j = 0; j < message.details.length; ++j)
+ object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options);
}
- if (message.responseType != null && message.hasOwnProperty("responseType"))
- object.responseType = message.responseType;
- if (message.metadataType != null && message.hasOwnProperty("metadataType"))
- object.metadataType = message.metadataType;
return object;
};
/**
- * Converts this OperationInfo to JSON.
+ * Converts this Status to JSON.
* @function toJSON
- * @memberof google.longrunning.OperationInfo
+ * @memberof google.rpc.Status
* @instance
* @returns {Object.} JSON object
*/
- OperationInfo.prototype.toJSON = function toJSON() {
+ Status.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return OperationInfo;
+ return Status;
})();
- return longrunning;
+ return rpc;
})();
return google;
diff --git a/protos/protos.json b/protos/protos.json
index 3bd751a5..2e5eeb24 100644
--- a/protos/protos.json
+++ b/protos/protos.json
@@ -832,7 +832,10 @@
"fields": {
"classificationType": {
"type": "ClassificationType",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "REQUIRED"
+ }
}
}
},
@@ -843,31 +846,52 @@
"fields": {
"baseModelId": {
"type": "string",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
},
"trainBudgetMilliNodeHours": {
"type": "int64",
- "id": 16
+ "id": 16,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
},
"trainCostMilliNodeHours": {
"type": "int64",
- "id": 17
+ "id": 17,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
},
"stopReason": {
"type": "string",
- "id": 5
+ "id": 5,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
},
"modelType": {
"type": "string",
- "id": 7
+ "id": 7,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
},
"nodeQps": {
"type": "double",
- "id": 13
+ "id": 13,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
},
"nodeCount": {
"type": "int64",
- "id": 14
+ "id": 14,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
}
}
},
@@ -875,27 +899,45 @@
"fields": {
"modelType": {
"type": "string",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
},
"nodeCount": {
"type": "int64",
- "id": 3
+ "id": 3,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
},
"nodeQps": {
"type": "double",
- "id": 4
+ "id": 4,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
},
"stopReason": {
"type": "string",
- "id": 5
+ "id": 5,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
},
"trainBudgetMilliNodeHours": {
"type": "int64",
- "id": 6
+ "id": 6,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
},
"trainCostMilliNodeHours": {
"type": "int64",
- "id": 7
+ "id": 7,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
}
}
},
@@ -903,7 +945,10 @@
"fields": {
"nodeCount": {
"type": "int64",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "INPUT_ONLY"
+ }
}
}
},
@@ -911,7 +956,10 @@
"fields": {
"nodeCount": {
"type": "int64",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "INPUT_ONLY"
+ }
}
}
},
@@ -6542,35 +6590,6 @@
}
}
},
- "rpc": {
- "options": {
- "cc_enable_arenas": true,
- "go_package": "google.golang.org/genproto/googleapis/rpc/status;status",
- "java_multiple_files": true,
- "java_outer_classname": "StatusProto",
- "java_package": "com.google.rpc",
- "objc_class_prefix": "RPC"
- },
- "nested": {
- "Status": {
- "fields": {
- "code": {
- "type": "int32",
- "id": 1
- },
- "message": {
- "type": "string",
- "id": 2
- },
- "details": {
- "rule": "repeated",
- "type": "google.protobuf.Any",
- "id": 3
- }
- }
- }
- }
- },
"longrunning": {
"options": {
"cc_enable_arenas": true,
@@ -6786,6 +6805,35 @@
}
}
}
+ },
+ "rpc": {
+ "options": {
+ "cc_enable_arenas": true,
+ "go_package": "google.golang.org/genproto/googleapis/rpc/status;status",
+ "java_multiple_files": true,
+ "java_outer_classname": "StatusProto",
+ "java_package": "com.google.rpc",
+ "objc_class_prefix": "RPC"
+ },
+ "nested": {
+ "Status": {
+ "fields": {
+ "code": {
+ "type": "int32",
+ "id": 1
+ },
+ "message": {
+ "type": "string",
+ "id": 2
+ },
+ "details": {
+ "rule": "repeated",
+ "type": "google.protobuf.Any",
+ "id": 3
+ }
+ }
+ }
+ }
}
}
}
diff --git a/samples/generated/v1/auto_ml.create_dataset.js b/samples/generated/v1/auto_ml.create_dataset.js
index 67a1efeb..4f4550ef 100644
--- a/samples/generated/v1/auto_ml.create_dataset.js
+++ b/samples/generated/v1/auto_ml.create_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent, dataset) {
diff --git a/samples/generated/v1/auto_ml.create_model.js b/samples/generated/v1/auto_ml.create_model.js
index ea0c482a..b1174214 100644
--- a/samples/generated/v1/auto_ml.create_model.js
+++ b/samples/generated/v1/auto_ml.create_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent, model) {
diff --git a/samples/generated/v1/auto_ml.delete_dataset.js b/samples/generated/v1/auto_ml.delete_dataset.js
index ef409472..d4949449 100644
--- a/samples/generated/v1/auto_ml.delete_dataset.js
+++ b/samples/generated/v1/auto_ml.delete_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.delete_model.js b/samples/generated/v1/auto_ml.delete_model.js
index 19ed2fb6..890404ea 100644
--- a/samples/generated/v1/auto_ml.delete_model.js
+++ b/samples/generated/v1/auto_ml.delete_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.deploy_model.js b/samples/generated/v1/auto_ml.deploy_model.js
index 9ec5630f..296a55f6 100644
--- a/samples/generated/v1/auto_ml.deploy_model.js
+++ b/samples/generated/v1/auto_ml.deploy_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.export_data.js b/samples/generated/v1/auto_ml.export_data.js
index f156e5d3..8c186ab3 100644
--- a/samples/generated/v1/auto_ml.export_data.js
+++ b/samples/generated/v1/auto_ml.export_data.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, outputConfig) {
diff --git a/samples/generated/v1/auto_ml.export_model.js b/samples/generated/v1/auto_ml.export_model.js
index 1572dd15..d5046d04 100644
--- a/samples/generated/v1/auto_ml.export_model.js
+++ b/samples/generated/v1/auto_ml.export_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, outputConfig) {
diff --git a/samples/generated/v1/auto_ml.get_annotation_spec.js b/samples/generated/v1/auto_ml.get_annotation_spec.js
index 25525cf2..fa8792de 100644
--- a/samples/generated/v1/auto_ml.get_annotation_spec.js
+++ b/samples/generated/v1/auto_ml.get_annotation_spec.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.get_dataset.js b/samples/generated/v1/auto_ml.get_dataset.js
index b3ec723b..db01d66d 100644
--- a/samples/generated/v1/auto_ml.get_dataset.js
+++ b/samples/generated/v1/auto_ml.get_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.get_model.js b/samples/generated/v1/auto_ml.get_model.js
index 27615ba7..f09ff911 100644
--- a/samples/generated/v1/auto_ml.get_model.js
+++ b/samples/generated/v1/auto_ml.get_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.get_model_evaluation.js b/samples/generated/v1/auto_ml.get_model_evaluation.js
index d711a68a..cec067fa 100644
--- a/samples/generated/v1/auto_ml.get_model_evaluation.js
+++ b/samples/generated/v1/auto_ml.get_model_evaluation.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.import_data.js b/samples/generated/v1/auto_ml.import_data.js
index 0233c2b4..cd7557af 100644
--- a/samples/generated/v1/auto_ml.import_data.js
+++ b/samples/generated/v1/auto_ml.import_data.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, inputConfig) {
diff --git a/samples/generated/v1/auto_ml.list_datasets.js b/samples/generated/v1/auto_ml.list_datasets.js
index f8f460f7..b7144476 100644
--- a/samples/generated/v1/auto_ml.list_datasets.js
+++ b/samples/generated/v1/auto_ml.list_datasets.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -26,8 +27,7 @@ function main(parent) {
/**
* An expression for filtering the results of the request.
* * `dataset_metadata` - for existence of the case (e.g.
- * `image_classification_dataset_metadata:*`). Some examples of
- * using the filter are:
+ * `image_classification_dataset_metadata:*`). Some examples of using the filter are:
* * `translation_dataset_metadata:*` --> The dataset has
* `translation_dataset_metadata`.
*/
@@ -60,7 +60,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listDatasetsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1/auto_ml.list_model_evaluations.js b/samples/generated/v1/auto_ml.list_model_evaluations.js
index 506a77f2..ddc1e648 100644
--- a/samples/generated/v1/auto_ml.list_model_evaluations.js
+++ b/samples/generated/v1/auto_ml.list_model_evaluations.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent, filter) {
@@ -64,7 +65,7 @@ function main(parent, filter) {
// Run request
const iterable = await automlClient.listModelEvaluationsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1/auto_ml.list_models.js b/samples/generated/v1/auto_ml.list_models.js
index 436da2e9..5c8fd2b4 100644
--- a/samples/generated/v1/auto_ml.list_models.js
+++ b/samples/generated/v1/auto_ml.list_models.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -60,7 +61,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listModelsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1/auto_ml.undeploy_model.js b/samples/generated/v1/auto_ml.undeploy_model.js
index 23fc22eb..c2103550 100644
--- a/samples/generated/v1/auto_ml.undeploy_model.js
+++ b/samples/generated/v1/auto_ml.undeploy_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1/auto_ml.update_dataset.js b/samples/generated/v1/auto_ml.update_dataset.js
index 9ab8957a..8093f958 100644
--- a/samples/generated/v1/auto_ml.update_dataset.js
+++ b/samples/generated/v1/auto_ml.update_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(dataset, updateMask) {
diff --git a/samples/generated/v1/auto_ml.update_model.js b/samples/generated/v1/auto_ml.update_model.js
index 22c845a5..6f3e0380 100644
--- a/samples/generated/v1/auto_ml.update_model.js
+++ b/samples/generated/v1/auto_ml.update_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(model, updateMask) {
diff --git a/samples/generated/v1/prediction_service.batch_predict.js b/samples/generated/v1/prediction_service.batch_predict.js
index 78e2f65a..26174b39 100644
--- a/samples/generated/v1/prediction_service.batch_predict.js
+++ b/samples/generated/v1/prediction_service.batch_predict.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, inputConfig, outputConfig) {
diff --git a/samples/generated/v1/prediction_service.predict.js b/samples/generated/v1/prediction_service.predict.js
index f5b24743..86cd3d1a 100644
--- a/samples/generated/v1/prediction_service.predict.js
+++ b/samples/generated/v1/prediction_service.predict.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, payload) {
@@ -48,9 +49,9 @@ function main(name, payload) {
* AutoML Tables
* `feature_importance`
* : (boolean) Whether
- * feature_importance google.cloud.automl.v1.TablesModelColumnInfo.feature_importance
+ * feature_importance google.cloud.automl.v1.TablesModelColumnInfo.feature_importance
* is populated in the returned list of
- * TablesAnnotation google.cloud.automl.v1.TablesAnnotation
+ * TablesAnnotation google.cloud.automl.v1.TablesAnnotation
* objects. The default is false.
*/
// const params = 1234
diff --git a/samples/generated/v1beta1/auto_ml.create_dataset.js b/samples/generated/v1beta1/auto_ml.create_dataset.js
index f030439c..5dd2e5e6 100644
--- a/samples/generated/v1beta1/auto_ml.create_dataset.js
+++ b/samples/generated/v1beta1/auto_ml.create_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent, dataset) {
diff --git a/samples/generated/v1beta1/auto_ml.create_model.js b/samples/generated/v1beta1/auto_ml.create_model.js
index 13d5cb6f..40da931a 100644
--- a/samples/generated/v1beta1/auto_ml.create_model.js
+++ b/samples/generated/v1beta1/auto_ml.create_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent, model) {
diff --git a/samples/generated/v1beta1/auto_ml.delete_dataset.js b/samples/generated/v1beta1/auto_ml.delete_dataset.js
index c0d72478..591fb325 100644
--- a/samples/generated/v1beta1/auto_ml.delete_dataset.js
+++ b/samples/generated/v1beta1/auto_ml.delete_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.delete_model.js b/samples/generated/v1beta1/auto_ml.delete_model.js
index c9607797..c1277f9a 100644
--- a/samples/generated/v1beta1/auto_ml.delete_model.js
+++ b/samples/generated/v1beta1/auto_ml.delete_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.deploy_model.js b/samples/generated/v1beta1/auto_ml.deploy_model.js
index 922c608a..b7ef8c16 100644
--- a/samples/generated/v1beta1/auto_ml.deploy_model.js
+++ b/samples/generated/v1beta1/auto_ml.deploy_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.export_data.js b/samples/generated/v1beta1/auto_ml.export_data.js
index 56d6f528..0b4c52d3 100644
--- a/samples/generated/v1beta1/auto_ml.export_data.js
+++ b/samples/generated/v1beta1/auto_ml.export_data.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, outputConfig) {
diff --git a/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js b/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js
index b8c1791f..d278e168 100644
--- a/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js
+++ b/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, outputConfig) {
diff --git a/samples/generated/v1beta1/auto_ml.export_model.js b/samples/generated/v1beta1/auto_ml.export_model.js
index 7a9602d8..0b9e7e07 100644
--- a/samples/generated/v1beta1/auto_ml.export_model.js
+++ b/samples/generated/v1beta1/auto_ml.export_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, outputConfig) {
diff --git a/samples/generated/v1beta1/auto_ml.get_annotation_spec.js b/samples/generated/v1beta1/auto_ml.get_annotation_spec.js
index c193283b..934678c8 100644
--- a/samples/generated/v1beta1/auto_ml.get_annotation_spec.js
+++ b/samples/generated/v1beta1/auto_ml.get_annotation_spec.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.get_column_spec.js b/samples/generated/v1beta1/auto_ml.get_column_spec.js
index e602cdd6..19862779 100644
--- a/samples/generated/v1beta1/auto_ml.get_column_spec.js
+++ b/samples/generated/v1beta1/auto_ml.get_column_spec.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.get_dataset.js b/samples/generated/v1beta1/auto_ml.get_dataset.js
index 9de9c1bf..9a8bc0a8 100644
--- a/samples/generated/v1beta1/auto_ml.get_dataset.js
+++ b/samples/generated/v1beta1/auto_ml.get_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.get_model.js b/samples/generated/v1beta1/auto_ml.get_model.js
index c900f21a..2438da48 100644
--- a/samples/generated/v1beta1/auto_ml.get_model.js
+++ b/samples/generated/v1beta1/auto_ml.get_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.get_model_evaluation.js b/samples/generated/v1beta1/auto_ml.get_model_evaluation.js
index 56794c63..58df2f9e 100644
--- a/samples/generated/v1beta1/auto_ml.get_model_evaluation.js
+++ b/samples/generated/v1beta1/auto_ml.get_model_evaluation.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.get_table_spec.js b/samples/generated/v1beta1/auto_ml.get_table_spec.js
index 32fee0eb..05a8a776 100644
--- a/samples/generated/v1beta1/auto_ml.get_table_spec.js
+++ b/samples/generated/v1beta1/auto_ml.get_table_spec.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.import_data.js b/samples/generated/v1beta1/auto_ml.import_data.js
index 6c7504e7..e14ddf4d 100644
--- a/samples/generated/v1beta1/auto_ml.import_data.js
+++ b/samples/generated/v1beta1/auto_ml.import_data.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, inputConfig) {
diff --git a/samples/generated/v1beta1/auto_ml.list_column_specs.js b/samples/generated/v1beta1/auto_ml.list_column_specs.js
index 859f2cf9..0069ab07 100644
--- a/samples/generated/v1beta1/auto_ml.list_column_specs.js
+++ b/samples/generated/v1beta1/auto_ml.list_column_specs.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -59,7 +60,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listColumnSpecsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1beta1/auto_ml.list_datasets.js b/samples/generated/v1beta1/auto_ml.list_datasets.js
index 7260e13d..a6b3c137 100644
--- a/samples/generated/v1beta1/auto_ml.list_datasets.js
+++ b/samples/generated/v1beta1/auto_ml.list_datasets.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -60,7 +61,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listDatasetsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1beta1/auto_ml.list_model_evaluations.js b/samples/generated/v1beta1/auto_ml.list_model_evaluations.js
index 6e14c799..327bc814 100644
--- a/samples/generated/v1beta1/auto_ml.list_model_evaluations.js
+++ b/samples/generated/v1beta1/auto_ml.list_model_evaluations.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -63,7 +64,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listModelEvaluationsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1beta1/auto_ml.list_models.js b/samples/generated/v1beta1/auto_ml.list_models.js
index cb4f0040..dcf25daf 100644
--- a/samples/generated/v1beta1/auto_ml.list_models.js
+++ b/samples/generated/v1beta1/auto_ml.list_models.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -60,7 +61,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listModelsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1beta1/auto_ml.list_table_specs.js b/samples/generated/v1beta1/auto_ml.list_table_specs.js
index ac3d7d34..79bba97b 100644
--- a/samples/generated/v1beta1/auto_ml.list_table_specs.js
+++ b/samples/generated/v1beta1/auto_ml.list_table_specs.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(parent) {
@@ -59,7 +60,7 @@ function main(parent) {
// Run request
const iterable = await automlClient.listTableSpecsAsync(request);
for await (const response of iterable) {
- console.log(response);
+ console.log(response);
}
}
diff --git a/samples/generated/v1beta1/auto_ml.undeploy_model.js b/samples/generated/v1beta1/auto_ml.undeploy_model.js
index ebc29591..12571fb7 100644
--- a/samples/generated/v1beta1/auto_ml.undeploy_model.js
+++ b/samples/generated/v1beta1/auto_ml.undeploy_model.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name) {
diff --git a/samples/generated/v1beta1/auto_ml.update_column_spec.js b/samples/generated/v1beta1/auto_ml.update_column_spec.js
index 6b6523f7..e22cbed4 100644
--- a/samples/generated/v1beta1/auto_ml.update_column_spec.js
+++ b/samples/generated/v1beta1/auto_ml.update_column_spec.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(columnSpec) {
diff --git a/samples/generated/v1beta1/auto_ml.update_dataset.js b/samples/generated/v1beta1/auto_ml.update_dataset.js
index f626a32c..805033d1 100644
--- a/samples/generated/v1beta1/auto_ml.update_dataset.js
+++ b/samples/generated/v1beta1/auto_ml.update_dataset.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(dataset) {
diff --git a/samples/generated/v1beta1/auto_ml.update_table_spec.js b/samples/generated/v1beta1/auto_ml.update_table_spec.js
index 41e5d9cf..bf25c5b3 100644
--- a/samples/generated/v1beta1/auto_ml.update_table_spec.js
+++ b/samples/generated/v1beta1/auto_ml.update_table_spec.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(tableSpec) {
diff --git a/samples/generated/v1beta1/prediction_service.batch_predict.js b/samples/generated/v1beta1/prediction_service.batch_predict.js
index b6eb036e..f36d6488 100644
--- a/samples/generated/v1beta1/prediction_service.batch_predict.js
+++ b/samples/generated/v1beta1/prediction_service.batch_predict.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, inputConfig, outputConfig, params) {
diff --git a/samples/generated/v1beta1/prediction_service.predict.js b/samples/generated/v1beta1/prediction_service.predict.js
index 4aa8c187..3f529c1c 100644
--- a/samples/generated/v1beta1/prediction_service.predict.js
+++ b/samples/generated/v1beta1/prediction_service.predict.js
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+
'use strict';
function main(name, payload) {
diff --git a/src/v1/auto_ml_client.ts b/src/v1/auto_ml_client.ts
index 8a6d5cc4..9e180fe9 100644
--- a/src/v1/auto_ml_client.ts
+++ b/src/v1/auto_ml_client.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -55,7 +55,7 @@ const version = require('../../../package.json').version;
* Currently the only supported `location_id` is "us-central1".
*
* On any input that is documented to expect a string parameter in
- * snake_case or kebab-case, either of those cases is accepted.
+ * snake_case or dash-case, either of those cases is accepted.
* @class
* @memberof v1
*/
@@ -1864,7 +1864,6 @@ export class AutoMlClient {
* Deploys a model. If a model is already deployed, deploying it with the
* same parameters has no effect. Deploying with different parametrs
* (as e.g. changing
- *
* {@link google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number|node_number})
* will reset the deployment state without pausing the model's availability.
*
@@ -2311,8 +2310,7 @@ export class AutoMlClient {
* An expression for filtering the results of the request.
*
* * `dataset_metadata` - for existence of the case (e.g.
- * `image_classification_dataset_metadata:*`). Some examples of
- * using the filter are:
+ * `image_classification_dataset_metadata:*`). Some examples of using the filter are:
*
* * `translation_dataset_metadata:*` --> The dataset has
* `translation_dataset_metadata`.
@@ -2416,8 +2414,7 @@ export class AutoMlClient {
* An expression for filtering the results of the request.
*
* * `dataset_metadata` - for existence of the case (e.g.
- * `image_classification_dataset_metadata:*`). Some examples of
- * using the filter are:
+ * `image_classification_dataset_metadata:*`). Some examples of using the filter are:
*
* * `translation_dataset_metadata:*` --> The dataset has
* `translation_dataset_metadata`.
@@ -2475,8 +2472,7 @@ export class AutoMlClient {
* An expression for filtering the results of the request.
*
* * `dataset_metadata` - for existence of the case (e.g.
- * `image_classification_dataset_metadata:*`). Some examples of
- * using the filter are:
+ * `image_classification_dataset_metadata:*`). Some examples of using the filter are:
*
* * `translation_dataset_metadata:*` --> The dataset has
* `translation_dataset_metadata`.
diff --git a/src/v1/index.ts b/src/v1/index.ts
index d3b514cf..41f5700b 100644
--- a/src/v1/index.ts
+++ b/src/v1/index.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/src/v1/prediction_service_client.ts b/src/v1/prediction_service_client.ts
index a53b06c1..cab60b66 100644
--- a/src/v1/prediction_service_client.ts
+++ b/src/v1/prediction_service_client.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@ const version = require('../../../package.json').version;
* AutoML Prediction API.
*
* On any input that is documented to expect a string parameter in
- * snake_case or kebab-case, either of those cases is accepted.
+ * snake_case or dash-case, either of those cases is accepted.
* @class
* @memberof v1
*/
@@ -409,7 +409,6 @@ export class PredictionServiceClient {
*
* `feature_importance`
* : (boolean) Whether
- *
* {@link google.cloud.automl.v1.TablesModelColumnInfo.feature_importance|feature_importance}
* is populated in the returned list of
* {@link google.cloud.automl.v1.TablesAnnotation|TablesAnnotation}
diff --git a/system-test/fixtures/sample/src/index.js b/system-test/fixtures/sample/src/index.js
index 7631da5a..682e547d 100644
--- a/system-test/fixtures/sample/src/index.js
+++ b/system-test/fixtures/sample/src/index.js
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/system-test/fixtures/sample/src/index.ts b/system-test/fixtures/sample/src/index.ts
index 294f5405..b7ccd07d 100644
--- a/system-test/fixtures/sample/src/index.ts
+++ b/system-test/fixtures/sample/src/index.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/system-test/install.ts b/system-test/install.ts
index d2d61c03..6dd1eaad 100644
--- a/system-test/install.ts
+++ b/system-test/install.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/test/gapic_auto_ml_v1.ts b/test/gapic_auto_ml_v1.ts
index 7303c9cd..12600297 100644
--- a/test/gapic_auto_ml_v1.ts
+++ b/test/gapic_auto_ml_v1.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/test/gapic_prediction_service_v1.ts b/test/gapic_prediction_service_v1.ts
index 3d00a051..c66234d2 100644
--- a/test/gapic_prediction_service_v1.ts
+++ b/test/gapic_prediction_service_v1.ts
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.