labels = 39;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/detection.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/detection.proto
new file mode 100644
index 00000000000..a76c3538d81
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/detection.proto
@@ -0,0 +1,85 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/cloud/automl/v1/geometry.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Annotation details for image object detection.
+message ImageObjectDetectionAnnotation {
+ // Output only. The rectangle representing the object location.
+ BoundingPoly bounding_box = 1;
+
+ // Output only. The confidence that this annotation is positive for the parent example,
+ // value in [0, 1], higher means higher positivity confidence.
+ float score = 2;
+}
+
+// Bounding box matching model metrics for a single intersection-over-union
+// threshold and multiple label match confidence thresholds.
+message BoundingBoxMetricsEntry {
+ // Metrics for a single confidence threshold.
+ message ConfidenceMetricsEntry {
+ // Output only. The confidence threshold value used to compute the metrics.
+ float confidence_threshold = 1;
+
+ // Output only. Recall under the given confidence threshold.
+ float recall = 2;
+
+ // Output only. Precision under the given confidence threshold.
+ float precision = 3;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 4;
+ }
+
+ // Output only. The intersection-over-union threshold value used to compute
+ // this metrics entry.
+ float iou_threshold = 1;
+
+ // Output only. The mean average precision, most often close to au_prc.
+ float mean_average_precision = 2;
+
+ // Output only. Metrics for each label-match confidence_threshold from
+ // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+ // derived from them.
+ repeated ConfidenceMetricsEntry confidence_metrics_entries = 3;
+}
+
+// Model evaluation metrics for image object detection problems.
+// Evaluates prediction quality of labeled bounding boxes.
+message ImageObjectDetectionEvaluationMetrics {
+ // Output only. The total number of bounding boxes (i.e. summed over all
+ // images) the ground truth used to create this evaluation had.
+ int32 evaluated_bounding_box_count = 1;
+
+ // Output only. The bounding boxes match metrics for each
+ // Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+ // and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+ // pair.
+ repeated BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
+
+ // Output only. The single metric for bounding boxes evaluation:
+ // the mean_average_precision averaged over all bounding_box_metrics_entries.
+ float bounding_box_mean_average_precision = 3;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/geometry.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/geometry.proto
new file mode 100644
index 00000000000..a4261d5eb09
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/geometry.proto
@@ -0,0 +1,45 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// A vertex represents a 2D point in the image.
+// The normalized vertex coordinates are between 0 to 1 fractions relative to
+// the original plane (image, video). E.g. if the plane (e.g. whole image) would
+// have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
+// be at the position (1, 6) on that plane.
+message NormalizedVertex {
+ // Required. Horizontal coordinate.
+ float x = 1;
+
+ // Required. Vertical coordinate.
+ float y = 2;
+}
+
+// A bounding polygon of a detected object on a plane.
+// On output both vertices and normalized_vertices are provided.
+// The polygon is formed by connecting vertices in the order they are listed.
+message BoundingPoly {
+ // Output only . The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/image.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/image.proto
new file mode 100644
index 00000000000..5fdc101bc7f
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/image.proto
@@ -0,0 +1,201 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/automl/v1/classification.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "ImageProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+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 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Dataset metadata specific to image object detection.
+message ImageObjectDetectionDatasetMetadata {
+
+}
+
+// Model metadata for image classification.
+message ImageClassificationModelMetadata {
+ // Optional. The ID of the `base` model. If it is specified, the new model
+ // will be created based on the `base` model. Otherwise, the new model will be
+ // 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 [(google.api.field_behavior) = OPTIONAL];
+
+ // 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
+ // full budget and the stop_reason will be `MODEL_CONVERGED`.
+ // Note, node_hour = actual_hour * number_of_nodes_invovled.
+ // For model type `cloud`(default), the train budget must be between 8,000
+ // and 800,000 milli node hours, inclusive. The default value is 192, 000
+ // which represents one day in wall time. For model type
+ // `mobile-low-latency-1`, `mobile-versatile-1`, `mobile-high-accuracy-1`,
+ // `mobile-core-ml-low-latency-1`, `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 = 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 [(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 [(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.
+ // This is the default value.
+ // * `mobile-low-latency-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have low latency, but
+ // may have lower prediction quality than other models.
+ // * `mobile-versatile-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards.
+ // * `mobile-high-accuracy-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have a higher
+ // latency, but should also have a higher prediction quality
+ // than other models.
+ // * `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core
+ // ML afterwards. Expected to have low latency, but may have
+ // lower prediction quality than other models.
+ // * `mobile-core-ml-versatile-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core
+ // ML afterwards.
+ // * `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+ // providing prediction via AutoML API, can also be exported
+ // (see [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with
+ // Core ML afterwards. Expected to have a higher latency, but
+ // should also have a higher prediction quality than other
+ // models.
+ 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 [(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 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Model metadata specific to image object detection.
+message ImageObjectDetectionModelMetadata {
+ // Optional. Type of the model. The available values are:
+ // * `cloud-high-accuracy-1` - (default) A model to be used via prediction
+ // calls to AutoML API. Expected to have a higher latency, but
+ // should also have a higher prediction quality than other
+ // models.
+ // * `cloud-low-latency-1` - A model to be used via prediction
+ // calls to AutoML API. Expected to have low latency, but may
+ // have lower prediction quality than other models.
+ // * `mobile-low-latency-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have low latency, but
+ // may have lower prediction quality than other models.
+ // * `mobile-versatile-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards.
+ // * `mobile-high-accuracy-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have a higher
+ // latency, but should also have a higher prediction quality
+ // than other models.
+ 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 [(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 [(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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // 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
+ // full budget and the stop_reason will be `MODEL_CONVERGED`.
+ // Note, node_hour = actual_hour * number_of_nodes_invovled.
+ // For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`,
+ // the train budget must be between 20,000 and 900,000 milli node hours,
+ // inclusive. The default value is 216, 000 which represents one day in
+ // wall time.
+ // For model type `mobile-low-latency-1`, `mobile-versatile-1`,
+ // `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`,
+ // `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 [(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 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Model deployment metadata specific to Image Classification.
+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 [(google.api.field_behavior) = INPUT_ONLY];
+}
+
+// Model deployment metadata specific to Image Object Detection.
+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 [(google.api.field_behavior) = INPUT_ONLY];
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/io.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/io.proto
new file mode 100644
index 00000000000..9c32cf8651e
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/io.proto
@@ -0,0 +1,1331 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/api/field_behavior.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
+//
+// The format of input depends on dataset_metadata the Dataset into which
+// the import is happening has. As input source the
+// [gcs_source][google.cloud.automl.v1.InputConfig.gcs_source]
+// is expected, unless specified otherwise. Additionally any input .CSV file
+// by itself must be 100MB or smaller, unless specified otherwise.
+// If an "example" file (that is, image, video etc.) with identical content
+// (even if it had different `GCS_FILE_PATH`) is mentioned multiple times, then
+// its label, bounding boxes etc. are appended. The same file should be always
+// provided with the same `ML_USE` and `GCS_FILE_PATH`, if it is not, then
+// these values are nondeterministically selected from the given ones.
+//
+// The formats are represented in EBNF with commas being literal and with
+// non-terminal symbols defined near the end of this comment. The formats are:
+//
+// AutoML Vision
+//
+//
+// Classification
+//
+// See [Preparing your training
+// data](https://cloud.google.com/vision/automl/docs/prepare) for more
+// information.
+//
+// CSV file(s) with each line in format:
+//
+// ML_USE,GCS_FILE_PATH,LABEL,LABEL,...
+//
+// * `ML_USE` - Identifies the data set that the current row (file) applies
+// to.
+// This value can be one of the following:
+// * `TRAIN` - Rows in this file are used to train the model.
+// * `TEST` - Rows in this file are used to test the model during training.
+// * `UNASSIGNED` - Rows in this file are not categorized. They are
+// Automatically divided into train and test data. 80% for training and
+// 20% for testing.
+//
+// * `GCS_FILE_PATH` - The Google Cloud Storage location of an image of up to
+// 30MB in size. Supported extensions: .JPEG, .GIF, .PNG, .WEBP, .BMP,
+// .TIFF, .ICO.
+//
+// * `LABEL` - A label that identifies the object in the image.
+//
+// For the `MULTICLASS` classification type, at most one `LABEL` is allowed
+// per image. If an image has not yet been labeled, then it should be
+// mentioned just once with no `LABEL`.
+//
+// Some sample rows:
+//
+// TRAIN,gs://folder/image1.jpg,daisy
+// TEST,gs://folder/image2.jpg,dandelion,tulip,rose
+// UNASSIGNED,gs://folder/image3.jpg,daisy
+// UNASSIGNED,gs://folder/image4.jpg
+//
+//
+// Object Detection
+// See [Preparing your training
+// data](https://cloud.google.com/vision/automl/object-detection/docs/prepare)
+// for more information.
+//
+// A CSV file(s) with each line in format:
+//
+// ML_USE,GCS_FILE_PATH,[LABEL],(BOUNDING_BOX | ,,,,,,,)
+//
+// * `ML_USE` - Identifies the data set that the current row (file) applies
+// to.
+// This value can be one of the following:
+// * `TRAIN` - Rows in this file are used to train the model.
+// * `TEST` - Rows in this file are used to test the model during training.
+// * `UNASSIGNED` - Rows in this file are not categorized. They are
+// Automatically divided into train and test data. 80% for training and
+// 20% for testing.
+//
+// * `GCS_FILE_PATH` - The Google Cloud Storage location of an image of up to
+// 30MB in size. Supported extensions: .JPEG, .GIF, .PNG. Each image
+// is assumed to be exhaustively labeled.
+//
+// * `LABEL` - A label that identifies the object in the image specified by the
+// `BOUNDING_BOX`.
+//
+// * `BOUNDING BOX` - The vertices of an object in the example image.
+// The minimum allowed `BOUNDING_BOX` edge length is 0.01, and no more than
+// 500 `BOUNDING_BOX` instances per image are allowed (one `BOUNDING_BOX`
+// per line). If an image has no looked for objects then it should be
+// mentioned just once with no LABEL and the ",,,,,,," in place of the
+// `BOUNDING_BOX`.
+//
+// **Four sample rows:**
+//
+// TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,,
+// TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,,
+// UNASSIGNED,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3
+// TEST,gs://folder/im3.png,,,,,,,,,
+//
+//
+//
+//
+// AutoML Video Intelligence
+//
+//
+// Classification
+//
+// See [Preparing your training
+// data](https://cloud.google.com/video-intelligence/automl/docs/prepare) for
+// more information.
+//
+// CSV file(s) with each line in format:
+//
+// ML_USE,GCS_FILE_PATH
+//
+// For `ML_USE`, do not use `VALIDATE`.
+//
+// `GCS_FILE_PATH` is the path to another .csv file that describes training
+// example for a given `ML_USE`, using the following row format:
+//
+// GCS_FILE_PATH,(LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END | ,,)
+//
+// Here `GCS_FILE_PATH` leads to a video of up to 50GB in size and up
+// to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+//
+// `TIME_SEGMENT_START` and `TIME_SEGMENT_END` must be within the
+// length of the video, and the end time must be after the start time. Any
+// segment of a video which has one or more labels on it, is considered a
+// hard negative for all other labels. Any segment with no labels on
+// it is considered to be unknown. If a whole video is unknown, then
+// it should be mentioned just once with ",," in place of `LABEL,
+// TIME_SEGMENT_START,TIME_SEGMENT_END`.
+//
+// Sample top level CSV file:
+//
+// TRAIN,gs://folder/train_videos.csv
+// TEST,gs://folder/test_videos.csv
+// UNASSIGNED,gs://folder/other_videos.csv
+//
+// Sample rows of a CSV file for a particular ML_USE:
+//
+// gs://folder/video1.avi,car,120,180.000021
+// gs://folder/video1.avi,bike,150,180.000021
+// gs://folder/vid2.avi,car,0,60.5
+// gs://folder/vid3.avi,,,
+//
+//
+//
+// Object Tracking
+//
+// See [Preparing your training
+// data](/video-intelligence/automl/object-tracking/docs/prepare) for more
+// information.
+//
+// CSV file(s) with each line in format:
+//
+// ML_USE,GCS_FILE_PATH
+//
+// For `ML_USE`, do not use `VALIDATE`.
+//
+// `GCS_FILE_PATH` is the path to another .csv file that describes training
+// example for a given `ML_USE`, using the following row format:
+//
+// GCS_FILE_PATH,LABEL,[INSTANCE_ID],TIMESTAMP,BOUNDING_BOX
+//
+// or
+//
+// GCS_FILE_PATH,,,,,,,,,,
+//
+// Here `GCS_FILE_PATH` leads to a video of up to 50GB in size and up
+// to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+// Providing `INSTANCE_ID`s can help to obtain a better model. When
+// a specific labeled entity leaves the video frame, and shows up
+// afterwards it is not required, albeit preferable, that the same
+// `INSTANCE_ID` is given to it.
+//
+// `TIMESTAMP` must be within the length of the video, the
+// `BOUNDING_BOX` is assumed to be drawn on the closest video's frame
+// to the `TIMESTAMP`. Any mentioned by the `TIMESTAMP` frame is expected
+// to be exhaustively labeled and no more than 500 `BOUNDING_BOX`-es per
+// frame are allowed. If a whole video is unknown, then it should be
+// mentioned just once with ",,,,,,,,,," in place of `LABEL,
+// [INSTANCE_ID],TIMESTAMP,BOUNDING_BOX`.
+//
+// Sample top level CSV file:
+//
+// TRAIN,gs://folder/train_videos.csv
+// TEST,gs://folder/test_videos.csv
+// UNASSIGNED,gs://folder/other_videos.csv
+//
+// Seven sample rows of a CSV file for a particular ML_USE:
+//
+// gs://folder/video1.avi,car,1,12.10,0.8,0.8,0.9,0.8,0.9,0.9,0.8,0.9
+// gs://folder/video1.avi,car,1,12.90,0.4,0.8,0.5,0.8,0.5,0.9,0.4,0.9
+// gs://folder/video1.avi,car,2,12.10,.4,.2,.5,.2,.5,.3,.4,.3
+// gs://folder/video1.avi,car,2,12.90,.8,.2,,,.9,.3,,
+// gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,,
+// gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,,
+// gs://folder/video2.avi,,,,,,,,,,,
+//
+//
+//
+//
+// AutoML Natural Language
+//
+//
+// Entity Extraction
+//
+// See [Preparing your training
+// data](/natural-language/automl/entity-analysis/docs/prepare) for more
+// information.
+//
+// One or more CSV file(s) with each line in the following format:
+//
+// ML_USE,GCS_FILE_PATH
+//
+// * `ML_USE` - Identifies the data set that the current row (file) applies
+// to.
+// This value can be one of the following:
+// * `TRAIN` - Rows in this file are used to train the model.
+// * `TEST` - Rows in this file are used to test the model during training.
+// * `UNASSIGNED` - Rows in this file are not categorized. They are
+// Automatically divided into train and test data. 80% for training and
+// 20% for testing..
+//
+// * `GCS_FILE_PATH` - a Identifies JSON Lines (.JSONL) file stored in
+// Google Cloud Storage that contains in-line text in-line as documents
+// for model training.
+//
+// After the training data set has been determined from the `TRAIN` and
+// `UNASSIGNED` CSV files, the training data is divided into train and
+// validation data sets. 70% for training and 30% for validation.
+//
+// For example:
+//
+// TRAIN,gs://folder/file1.jsonl
+// VALIDATE,gs://folder/file2.jsonl
+// TEST,gs://folder/file3.jsonl
+//
+// **In-line JSONL files**
+//
+// In-line .JSONL files contain, per line, a JSON document that wraps a
+// [`text_snippet`][google.cloud.automl.v1.TextSnippet] field followed by
+// one or more [`annotations`][google.cloud.automl.v1.AnnotationPayload]
+// fields, which have `display_name` and `text_extraction` fields to describe
+// the entity from the text snippet. Multiple JSON documents can be separated
+// using line breaks (\n).
+//
+// The supplied text must be annotated exhaustively. For example, if you
+// include the text "horse", but do not label it as "animal",
+// then "horse" is assumed to not be an "animal".
+//
+// Any given text snippet content must have 30,000 characters or
+// less, and also be UTF-8 NFC encoded. ASCII is accepted as it is
+// UTF-8 NFC encoded.
+//
+// For example:
+//
+// {
+// "text_snippet": {
+// "content": "dog car cat"
+// },
+// "annotations": [
+// {
+// "display_name": "animal",
+// "text_extraction": {
+// "text_segment": {"start_offset": 0, "end_offset": 2}
+// }
+// },
+// {
+// "display_name": "vehicle",
+// "text_extraction": {
+// "text_segment": {"start_offset": 4, "end_offset": 6}
+// }
+// },
+// {
+// "display_name": "animal",
+// "text_extraction": {
+// "text_segment": {"start_offset": 8, "end_offset": 10}
+// }
+// }
+// ]
+// }\n
+// {
+// "text_snippet": {
+// "content": "This dog is good."
+// },
+// "annotations": [
+// {
+// "display_name": "animal",
+// "text_extraction": {
+// "text_segment": {"start_offset": 5, "end_offset": 7}
+// }
+// }
+// ]
+// }
+//
+// **JSONL files that reference documents**
+//
+// .JSONL files contain, per line, a JSON document that wraps a
+// `input_config` that contains the path to a source document.
+// Multiple JSON documents can be separated using line breaks (\n).
+//
+// Supported document extensions: .PDF, .TIF, .TIFF
+//
+// For example:
+//
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+// }
+// }
+// }
+// }\n
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document2.tif" ]
+// }
+// }
+// }
+// }
+//
+// **In-line JSONL files with document layout information**
+//
+// **Note:** You can only annotate documents using the UI. The format described
+// below applies to annotated documents exported using the UI or `exportData`.
+//
+// In-line .JSONL files for documents contain, per line, a JSON document
+// that wraps a `document` field that provides the textual content of the
+// document and the layout information.
+//
+// For example:
+//
+// {
+// "document": {
+// "document_text": {
+// "content": "dog car cat"
+// }
+// "layout": [
+// {
+// "text_segment": {
+// "start_offset": 0,
+// "end_offset": 11,
+// },
+// "page_number": 1,
+// "bounding_poly": {
+// "normalized_vertices": [
+// {"x": 0.1, "y": 0.1},
+// {"x": 0.1, "y": 0.3},
+// {"x": 0.3, "y": 0.3},
+// {"x": 0.3, "y": 0.1},
+// ],
+// },
+// "text_segment_type": TOKEN,
+// }
+// ],
+// "document_dimensions": {
+// "width": 8.27,
+// "height": 11.69,
+// "unit": INCH,
+// }
+// "page_count": 3,
+// },
+// "annotations": [
+// {
+// "display_name": "animal",
+// "text_extraction": {
+// "text_segment": {"start_offset": 0, "end_offset": 3}
+// }
+// },
+// {
+// "display_name": "vehicle",
+// "text_extraction": {
+// "text_segment": {"start_offset": 4, "end_offset": 7}
+// }
+// },
+// {
+// "display_name": "animal",
+// "text_extraction": {
+// "text_segment": {"start_offset": 8, "end_offset": 11}
+// }
+// },
+// ],
+//
+//
+//
+//
+// Classification
+//
+// See [Preparing your training
+// data](https://cloud.google.com/natural-language/automl/docs/prepare) for more
+// information.
+//
+// One or more CSV file(s) with each line in the following format:
+//
+// ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),LABEL,LABEL,...
+//
+// * `ML_USE` - Identifies the data set that the current row (file) applies
+// to.
+// This value can be one of the following:
+// * `TRAIN` - Rows in this file are used to train the model.
+// * `TEST` - Rows in this file are used to test the model during training.
+// * `UNASSIGNED` - Rows in this file are not categorized. They are
+// Automatically divided into train and test data. 80% for training and
+// 20% for testing.
+//
+// * `TEXT_SNIPPET` and `GCS_FILE_PATH` are distinguished by a pattern. If
+// the column content is a valid Google Cloud Storage file path, that is,
+// prefixed by "gs://", it is treated as a `GCS_FILE_PATH`. Otherwise, if
+// the content is enclosed in double quotes (""), it is treated as a
+// `TEXT_SNIPPET`. For `GCS_FILE_PATH`, the path must lead to a
+// file with supported extension and UTF-8 encoding, for example,
+// "gs://folder/content.txt" AutoML imports the file content
+// as a text snippet. For `TEXT_SNIPPET`, AutoML imports the column content
+// excluding quotes. In both cases, size of the content must be 10MB or
+// less in size. For zip files, the size of each file inside the zip must be
+// 10MB or less in size.
+//
+// For the `MULTICLASS` classification type, at most one `LABEL` is allowed.
+//
+// The `ML_USE` and `LABEL` columns are optional.
+// Supported file extensions: .TXT, .PDF, .TIF, .TIFF, .ZIP
+//
+// A maximum of 100 unique labels are allowed per CSV row.
+//
+// Sample rows:
+//
+// TRAIN,"They have bad food and very rude",RudeService,BadFood
+// gs://folder/content.txt,SlowService
+// TEST,gs://folder/document.pdf
+// VALIDATE,gs://folder/text_files.zip,BadFood
+//
+//
+//
+// Sentiment Analysis
+//
+// See [Preparing your training
+// data](https://cloud.google.com/natural-language/automl/docs/prepare) for more
+// information.
+//
+// CSV file(s) with each line in format:
+//
+// ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),SENTIMENT
+//
+// * `ML_USE` - Identifies the data set that the current row (file) applies
+// to.
+// This value can be one of the following:
+// * `TRAIN` - Rows in this file are used to train the model.
+// * `TEST` - Rows in this file are used to test the model during training.
+// * `UNASSIGNED` - Rows in this file are not categorized. They are
+// Automatically divided into train and test data. 80% for training and
+// 20% for testing.
+//
+// * `TEXT_SNIPPET` and `GCS_FILE_PATH` are distinguished by a pattern. If
+// the column content is a valid Google Cloud Storage file path, that is,
+// prefixed by "gs://", it is treated as a `GCS_FILE_PATH`. Otherwise, if
+// the content is enclosed in double quotes (""), it is treated as a
+// `TEXT_SNIPPET`. For `GCS_FILE_PATH`, the path must lead to a
+// file with supported extension and UTF-8 encoding, for example,
+// "gs://folder/content.txt" AutoML imports the file content
+// as a text snippet. For `TEXT_SNIPPET`, AutoML imports the column content
+// excluding quotes. In both cases, size of the content must be 128kB or
+// less in size. For zip files, the size of each file inside the zip must be
+// 128kB or less in size.
+//
+// The `ML_USE` and `SENTIMENT` columns are optional.
+// Supported file extensions: .TXT, .PDF, .TIF, .TIFF, .ZIP
+//
+// * `SENTIMENT` - An integer between 0 and
+// Dataset.text_sentiment_dataset_metadata.sentiment_max
+// (inclusive). Describes the ordinal of the sentiment - higher
+// value means a more positive sentiment. All the values are
+// completely relative, i.e. neither 0 needs to mean a negative or
+// neutral sentiment nor sentiment_max needs to mean a positive one -
+// it is just required that 0 is the least positive sentiment
+// in the data, and sentiment_max is the most positive one.
+// The SENTIMENT shouldn't be confused with "score" or "magnitude"
+// from the previous Natural Language Sentiment Analysis API.
+// All SENTIMENT values between 0 and sentiment_max must be
+// represented in the imported data. On prediction the same 0 to
+// sentiment_max range will be used. The difference between
+// neighboring sentiment values needs not to be uniform, e.g. 1 and
+// 2 may be similar whereas the difference between 2 and 3 may be
+// large.
+//
+// Sample rows:
+//
+// TRAIN,"@freewrytin this is way too good for your product",2
+// gs://folder/content.txt,3
+// TEST,gs://folder/document.pdf
+// VALIDATE,gs://folder/text_files.zip,2
+//
+//
+//
+//
+//
+// AutoML Tables
+//
+// See [Preparing your training
+// data](https://cloud.google.com/automl-tables/docs/prepare) for more
+// information.
+//
+// You can use either
+// [gcs_source][google.cloud.automl.v1.InputConfig.gcs_source] or
+// [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:**
+//
+// CSV file(s), where the first row of the first file is the header,
+// containing unique column names. If the first row of a subsequent
+// file is the same as the header, then it is also treated as a
+// header. All other rows contain values for the corresponding
+// columns.
+//
+// Each .CSV file by itself must be 10GB or smaller, and their total
+// size must be 100GB or smaller.
+//
+// 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:**
+//
+// An URI of a BigQuery table. The user data size of the BigQuery
+// table must be 100GB or smaller.
+//
+// An imported table must have between 2 and 1,000 columns, inclusive,
+// and between 1000 and 100,000,000 rows, inclusive. There are at most 5
+// import data running in parallel.
+//
+//
+//
+//
+//
+// **Input field definitions:**
+//
+// `ML_USE`
+// : ("TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED")
+// Describes how the given example (file) should be used for model
+// training. "UNASSIGNED" can be used when user has no preference.
+//
+// `GCS_FILE_PATH`
+// : The path to a file on Google Cloud Storage. For example,
+// "gs://folder/image1.png".
+//
+// `LABEL`
+// : A display name of an object on an image, video etc., e.g. "dog".
+// Must be up to 32 characters long and can consist only of ASCII
+// Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9.
+// For each label an AnnotationSpec is created which display_name
+// becomes the label; AnnotationSpecs are given back in predictions.
+//
+// `INSTANCE_ID`
+// : A positive integer that identifies a specific instance of a
+// labeled entity on an example. Used e.g. to track two cars on
+// a video while being able to tell apart which one is which.
+//
+// `BOUNDING_BOX`
+// : (`VERTEX,VERTEX,VERTEX,VERTEX` | `VERTEX,,,VERTEX,,`)
+// A rectangle parallel to the frame of the example (image,
+// video). If 4 vertices are given they are connected by edges
+// in the order provided, if 2 are given they are recognized
+// as diagonally opposite vertices of the rectangle.
+//
+// `VERTEX`
+// : (`COORDINATE,COORDINATE`)
+// First coordinate is horizontal (x), the second is vertical (y).
+//
+// `COORDINATE`
+// : A float in 0 to 1 range, relative to total length of
+// image or video in given dimension. For fractions the
+// leading non-decimal 0 can be omitted (i.e. 0.3 = .3).
+// Point 0,0 is in top left.
+//
+// `TIME_SEGMENT_START`
+// : (`TIME_OFFSET`)
+// Expresses a beginning, inclusive, of a time segment
+// within an example that has a time dimension
+// (e.g. video).
+//
+// `TIME_SEGMENT_END`
+// : (`TIME_OFFSET`)
+// Expresses an end, exclusive, of a time segment within
+// n example that has a time dimension (e.g. video).
+//
+// `TIME_OFFSET`
+// : A number of seconds as measured from the start of an
+// example (e.g. video). Fractions are allowed, up to a
+// microsecond precision. "inf" is allowed, and it means the end
+// of the example.
+//
+// `TEXT_SNIPPET`
+// : The content of a text snippet, UTF-8 encoded, enclosed within
+// double quotes ("").
+//
+// `DOCUMENT`
+// : A field that provides the textual content with document and the layout
+// information.
+//
+//
+// **Errors:**
+//
+// If any of the provided CSV files can't be parsed or if more than certain
+// percent of CSV rows cannot be processed then the operation fails and
+// nothing is imported. Regardless of overall success or failure the per-row
+// failures, up to a certain count cap, is listed in
+// Operation.metadata.partial_failures.
+//
+message InputConfig {
+ // The source of the input.
+ oneof source {
+ // The Google Cloud Storage location for the input content.
+ // For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
+ // a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
+ GcsSource gcs_source = 1;
+ }
+
+ // Additional domain-specific parameters describing the semantic of the
+ // imported data, any string must be up to 25000
+ // characters long.
+ //
+ // AutoML Tables
+ //
+ // `schema_inference_version`
+ // : (integer) This value must be supplied.
+ // The version of the
+ // algorithm to use for the initial inference of the
+ // column data types of the imported table. Allowed values: "1".
+ map params = 2;
+}
+
+// Input configuration for BatchPredict Action.
+//
+// The format of input depends on the ML problem of the model used for
+// prediction. As input source the
+// [gcs_source][google.cloud.automl.v1.InputConfig.gcs_source]
+// is expected, unless specified otherwise.
+//
+// The formats are represented in EBNF with commas being literal and with
+// non-terminal symbols defined near the end of this comment. The formats
+// are:
+//
+// AutoML Vision
+// Classification
+//
+// One or more CSV files where each line is a single column:
+//
+// GCS_FILE_PATH
+//
+// The Google Cloud Storage location of an image of up to
+// 30MB in size. Supported extensions: .JPEG, .GIF, .PNG.
+// This path is treated as the ID in the batch predict output.
+//
+// Sample rows:
+//
+// gs://folder/image1.jpeg
+// gs://folder/image2.gif
+// gs://folder/image3.png
+//
+// Object Detection
+//
+// One or more CSV files where each line is a single column:
+//
+// GCS_FILE_PATH
+//
+// The Google Cloud Storage location of an image of up to
+// 30MB in size. Supported extensions: .JPEG, .GIF, .PNG.
+// This path is treated as the ID in the batch predict output.
+//
+// Sample rows:
+//
+// gs://folder/image1.jpeg
+// gs://folder/image2.gif
+// gs://folder/image3.png
+//
+//
+//
+// AutoML Video Intelligence
+// Classification
+//
+// One or more CSV files where each line is a single column:
+//
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END
+//
+// `GCS_FILE_PATH` is the Google Cloud Storage location of video up to 50GB in
+// size and up to 3h in duration duration.
+// Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+//
+// `TIME_SEGMENT_START` and `TIME_SEGMENT_END` must be within the
+// length of the video, and the end time must be after the start time.
+//
+// Sample rows:
+//
+// gs://folder/video1.mp4,10,40
+// gs://folder/video1.mp4,20,60
+// gs://folder/vid2.mov,0,inf
+//
+// Object Tracking
+//
+// One or more CSV files where each line is a single column:
+//
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END
+//
+// `GCS_FILE_PATH` is the Google Cloud Storage location of video up to 50GB in
+// size and up to 3h in duration duration.
+// Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+//
+// `TIME_SEGMENT_START` and `TIME_SEGMENT_END` must be within the
+// length of the video, and the end time must be after the start time.
+//
+// Sample rows:
+//
+// gs://folder/video1.mp4,10,40
+// gs://folder/video1.mp4,20,60
+// gs://folder/vid2.mov,0,inf
+//
+//
+//
+// AutoML Natural Language
+// Classification
+//
+// One or more CSV files where each line is a single column:
+//
+// GCS_FILE_PATH
+//
+// `GCS_FILE_PATH` is the Google Cloud Storage location of a text file.
+// Supported file extensions: .TXT, .PDF, .TIF, .TIFF
+//
+// Text files can be no larger than 10MB in size.
+//
+// Sample rows:
+//
+// gs://folder/text1.txt
+// gs://folder/text2.pdf
+// gs://folder/text3.tif
+//
+// Sentiment Analysis
+// One or more CSV files where each line is a single column:
+//
+// GCS_FILE_PATH
+//
+// `GCS_FILE_PATH` is the Google Cloud Storage location of a text file.
+// Supported file extensions: .TXT, .PDF, .TIF, .TIFF
+//
+// Text files can be no larger than 128kB in size.
+//
+// Sample rows:
+//
+// gs://folder/text1.txt
+// gs://folder/text2.pdf
+// gs://folder/text3.tif
+//
+// Entity Extraction
+//
+// One or more JSONL (JSON Lines) files that either provide inline text or
+// documents. You can only use one format, either inline text or documents,
+// for a single call to [AutoMl.BatchPredict].
+//
+// Each JSONL file contains a per line a proto that
+// wraps a temporary user-assigned TextSnippet ID (string up to 2000
+// characters long) called "id", a TextSnippet proto (in
+// JSON representation) and zero or more TextFeature protos. Any given
+// text snippet content must have 30,000 characters or less, and also
+// be UTF-8 NFC encoded (ASCII already is). The IDs provided should be
+// unique.
+//
+// Each document JSONL file contains, per line, a proto that wraps a Document
+// proto with `input_config` set. Each document cannot exceed 2MB in size.
+//
+// Supported document extensions: .PDF, .TIF, .TIFF
+//
+// Each JSONL file must not exceed 100MB in size, and no more than 20
+// JSONL files may be passed.
+//
+// Sample inline JSONL file (Shown with artificial line
+// breaks. Actual line breaks are denoted by "\n".):
+//
+// {
+// "id": "my_first_id",
+// "text_snippet": { "content": "dog car cat"},
+// "text_features": [
+// {
+// "text_segment": {"start_offset": 4, "end_offset": 6},
+// "structural_type": PARAGRAPH,
+// "bounding_poly": {
+// "normalized_vertices": [
+// {"x": 0.1, "y": 0.1},
+// {"x": 0.1, "y": 0.3},
+// {"x": 0.3, "y": 0.3},
+// {"x": 0.3, "y": 0.1},
+// ]
+// },
+// }
+// ],
+// }\n
+// {
+// "id": "2",
+// "text_snippet": {
+// "content": "Extended sample content",
+// "mime_type": "text/plain"
+// }
+// }
+//
+// Sample document JSONL file (Shown with artificial line
+// breaks. Actual line breaks are denoted by "\n".):
+//
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+// }
+// }
+// }
+// }\n
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document2.tif" ]
+// }
+// }
+// }
+// }
+//
+//
+//
+// AutoML Tables
+//
+// See [Preparing your training
+// data](https://cloud.google.com/automl-tables/docs/predict-batch) for more
+// information.
+//
+// You can use either
+// [gcs_source][google.cloud.automl.v1.BatchPredictInputConfig.gcs_source]
+// or
+// [bigquery_source][BatchPredictInputConfig.bigquery_source].
+//
+// **For gcs_source:**
+//
+// CSV file(s), each by itself 10GB or smaller and total size must be
+// 100GB or smaller, where first file must have a header containing
+// column names. If the first row of a subsequent file is the same as
+// the header, then it is also treated as a header. All other rows
+// 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
+// input feature column specs must contain values compatible with the
+// column spec's data types. Prediction on all the rows, i.e. the CSV
+// lines, will be attempted.
+//
+//
+// 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:**
+//
+// The URI of a BigQuery table. The user data size of the BigQuery
+// 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
+// input feature column specs must contain values compatible with the
+// column spec's data types. Prediction on all the rows of the table
+// will be attempted.
+//
+//
+//
+// **Input field definitions:**
+//
+// `GCS_FILE_PATH`
+// : The path to a file on Google Cloud Storage. For example,
+// "gs://folder/video.avi".
+//
+// `TIME_SEGMENT_START`
+// : (`TIME_OFFSET`)
+// Expresses a beginning, inclusive, of a time segment
+// within an example that has a time dimension
+// (e.g. video).
+//
+// `TIME_SEGMENT_END`
+// : (`TIME_OFFSET`)
+// Expresses an end, exclusive, of a time segment within
+// n example that has a time dimension (e.g. video).
+//
+// `TIME_OFFSET`
+// : A number of seconds as measured from the start of an
+// example (e.g. video). Fractions are allowed, up to a
+// microsecond precision. "inf" is allowed, and it means the end
+// of the example.
+//
+// **Errors:**
+//
+// If any of the provided CSV files can't be parsed or if more than certain
+// percent of CSV rows cannot be processed then the operation fails and
+// prediction does not happen. Regardless of overall success or failure the
+// per-row failures, up to a certain count cap, will be listed in
+// Operation.metadata.partial_failures.
+message BatchPredictInputConfig {
+ // The source of the input.
+ oneof source {
+ // Required. The Google Cloud Storage location for the input content.
+ GcsSource gcs_source = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+}
+
+// Input configuration of a [Document][google.cloud.automl.v1.Document].
+message DocumentInputConfig {
+ // The Google Cloud Storage location of the document file. Only a single path
+ // should be given.
+ //
+ // Max supported size: 512MB.
+ //
+ // Supported extensions: .PDF.
+ GcsSource gcs_source = 1;
+}
+
+// * For Translation:
+// CSV file `translation.csv`, with each line in format:
+// ML_USE,GCS_FILE_PATH
+// GCS_FILE_PATH leads to a .TSV file which describes examples that have
+// given ML_USE, using the following row format per line:
+// TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target
+// language)
+//
+// * For Tables:
+// 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]
+// 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]
+// pointing to a BigQuery project must be set. In the given project a
+// new dataset will be created with name
+// `export_data__`
+// where will be made
+// BigQuery-dataset-name compatible (e.g. most special characters will
+// become underscores), and timestamp will be in
+// YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that
+// dataset a new table called `primary_table` will be created, and
+// filled with precisely the same data as this obtained on import.
+message OutputConfig {
+ // The destination of the output.
+ oneof destination {
+ // Required. The Google Cloud Storage location where the output is to be written to.
+ // For Image Object Detection, Text Extraction, Video Classification and
+ // Tables, in the given directory a new directory will be created with name:
+ // export_data-- where
+ // timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
+ // output will be written into that directory.
+ GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+}
+
+// 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
+// will be
+// "prediction--",
+// where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents
+// of it depends on the ML problem the predictions are made for.
+//
+// * For Image Classification:
+// In the created directory files `image_classification_1.jsonl`,
+// `image_classification_2.jsonl`,...,`image_classification_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of the successfully predicted images and annotations.
+// A single image will be listed only once with all its annotations,
+// and its annotations will never be split across files.
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps image's "ID" : "" followed by a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have classification detail populated.
+// If prediction for any image failed (partially or completely), then an
+// additional `errors_1.jsonl`, `errors_2.jsonl`,..., `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 the same "ID" : "" but here followed by
+// exactly one
+// [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// containing only `code` and `message`fields.
+//
+// * For Image Object Detection:
+// In the created directory files `image_object_detection_1.jsonl`,
+// `image_object_detection_2.jsonl`,...,`image_object_detection_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of the successfully predicted images and annotations.
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps image's "ID" : "" followed by a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have image_object_detection detail populated. A single image will
+// be listed only once with all its annotations, and its annotations
+// will never be split across files.
+// If prediction for any image failed (partially or completely), then
+// additional `errors_1.jsonl`, `errors_2.jsonl`,..., `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 the same "ID" : "" but here followed by
+// exactly one
+// [`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
+// file per each video classification requested in the input (i.e. each
+// 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
+// where:
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1
+// the prediction input lines (i.e. video_classification.csv has
+// precisely the same number of lines as the prediction input had.)
+// JSON_FILE_NAME = Name of .JSON file in the output directory, which
+// contains prediction responses for the video time segment.
+// STATUS = "OK" if prediction completed successfully, or an error code
+// with message otherwise. If STATUS is not "OK" then the .JSON file
+// for that line may not exist or be empty.
+//
+// Each .JSON file, assuming STATUS is "OK", will contain a list of
+// AnnotationPayload protos in JSON format, which are the predictions
+// for the video time segment the file is assigned to in the
+// video_classification.csv. All AnnotationPayload protos will have
+// video_classification field set, and will be sorted by
+// video_classification.type field (note that the returned types are
+// governed by `classifaction_types` parameter in
+// [PredictService.BatchPredictRequest.params][]).
+//
+// * For Video Object Tracking:
+// In the created directory a video_object_tracking.csv file will be
+// created, and multiple files video_object_trackinng_1.json,
+// video_object_trackinng_2.json,..., video_object_trackinng_N.json,
+// where N is the number of requests in the input (i.e. the number of
+// 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
+// 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
+// precisely the same number of lines as the prediction input had.)
+// JSON_FILE_NAME = Name of .JSON file in the output directory, which
+// contains prediction responses for the video time segment.
+// STATUS = "OK" if prediction completed successfully, or an error
+// code with message otherwise. If STATUS is not "OK" then the .JSON
+// file for that line may not exist or be empty.
+//
+// Each .JSON file, assuming STATUS is "OK", will contain a list of
+// AnnotationPayload protos in JSON format, which are the predictions
+// for each frame of the video time segment the file is assigned to in
+// video_object_tracking.csv. All AnnotationPayload protos will have
+// video_object_tracking field set.
+// * For Text Classification:
+// In the created directory files `text_classification_1.jsonl`,
+// `text_classification_2.jsonl`,...,`text_classification_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of inputs and annotations found.
+//
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps input text file (or document) in
+// the text snippet (or document) proto and a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have classification detail populated. A single text file (or
+// document) will be listed only once with all its annotations, and its
+// annotations will never be split across files.
+//
+// If prediction for any input file (or document) failed (partially or
+// completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+// `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)
+// containing only `code` and `message`.
+//
+// * For Text Sentiment:
+// In the created directory files `text_sentiment_1.jsonl`,
+// `text_sentiment_2.jsonl`,...,`text_sentiment_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of inputs and annotations found.
+//
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps input text file (or document) in
+// the text snippet (or document) proto and a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have text_sentiment detail populated. A single text file (or
+// document) will be listed only once with all its annotations, and its
+// annotations will never be split across files.
+//
+// If prediction for any input file (or document) failed (partially or
+// completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+// `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)
+// containing only `code` and `message`.
+//
+// * For Text Extraction:
+// In the created directory files `text_extraction_1.jsonl`,
+// `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of inputs and annotations found.
+// The contents of these .JSONL file(s) depend on whether the input
+// used inline text, or documents.
+// If input was inline, then each .JSONL file will contain, per line,
+// a JSON representation of a proto that wraps given in request text
+// snippet's "id" (if specified), followed by input text snippet,
+// and a list of zero or more
+// AnnotationPayload protos (called annotations), which have
+// text_extraction detail populated. A single text snippet will be
+// listed only once with all its annotations, and its annotations will
+// never be split across files.
+// If input used documents, then each .JSONL file will contain, per
+// line, a JSON representation of a proto that wraps given in request
+// document proto, followed by its OCR-ed representation in the form
+// of a text snippet, finally followed by a list of zero or more
+// AnnotationPayload protos (called annotations), which have
+// text_extraction detail populated and refer, via their indices, to
+// the OCR-ed text snippet. A single document (and its text snippet)
+// will be listed only once with all its annotations, and its
+// annotations will never be split across files.
+// If prediction for any text snippet failed (partially or completely),
+// then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+// `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 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)
+// containing only `code` and `message`.
+//
+// * For Tables:
+// Output depends on whether
+// [gcs_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.gcs_destination]
+// or
+// [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]:
+// Each .csv file will contain a header, listing all columns'
+// [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
+// respective values of successfully predicted rows, with the last,
+// 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]:
+// 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]>"
+// Subsequent lines will contain the respective values of
+// successfully predicted rows, with the last, i.e. the target,
+// column having the predicted target value.
+// If prediction for any rows failed, then an additional
+// `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be
+// 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)
+// represented as a JSON string, and containing only `code` and
+// `message`.
+// BigQuery case:
+// [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__`
+// where will be made
+// BigQuery-dataset-name compatible (e.g. most special characters will
+// become underscores), and timestamp will be in
+// 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]
+// 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]>"
+// 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],
+// 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]>",
+// and as a value has
+// [`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.
+ oneof destination {
+ // Required. The Google Cloud Storage location of the directory where the output is to
+ // be written to.
+ GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+}
+
+// Output configuration for ModelExport Action.
+message ModelExportOutputConfig {
+ // The destination of the output.
+ oneof destination {
+ // Required. The Google Cloud Storage location where the model is to be written to.
+ // This location may only be set for the following model formats:
+ // "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
+ //
+ // Under the directory given as the destination a new one with name
+ // "model-export--",
+ // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+ // will be created. Inside the model and any of its supporting files
+ // will be written.
+ GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // The format in which the model must be exported. The available, and default,
+ // formats depend on the problem and model type (if given problem and type
+ // combination doesn't have a format listed, it means its models are not
+ // exportable):
+ //
+ // * For Image Classification mobile-low-latency-1, mobile-versatile-1,
+ // mobile-high-accuracy-1:
+ // "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js",
+ // "docker".
+ //
+ // * For Image Classification mobile-core-ml-low-latency-1,
+ // mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+ // "core_ml" (default).
+ //
+ // * For Image Object Detection mobile-low-latency-1, mobile-versatile-1,
+ // mobile-high-accuracy-1:
+ // "tflite", "tf_saved_model", "tf_js".
+ // Formats description:
+ //
+ // * tflite - Used for Android mobile devices.
+ // * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+ // devices.
+ // * tf_saved_model - A tensorflow model in SavedModel format.
+ // * tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can
+ // be used in the browser and in Node.js using JavaScript.
+ // * docker - Used for Docker containers. Use the params field to customize
+ // 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)
+ // * core_ml - Used for iOS mobile devices.
+ string model_format = 4;
+
+ // Additional model-type and format specific parameters describing the
+ // requirements for the to be exported model files, any string must be up to
+ // 25000 characters long.
+ //
+ // * For `docker` format:
+ // `cpu_architecture` - (string) "x86_64" (default).
+ // `gpu_architecture` - (string) "none" (default), "nvidia".
+ map params = 2;
+}
+
+// The Google Cloud Storage location for the input content.
+message GcsSource {
+ // Required. Google Cloud Storage URIs to input files, up to 2000
+ // characters long. Accepted forms:
+ // * Full object path, e.g. gs://bucket/directory/object.csv
+ repeated string input_uris = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The Google Cloud Storage location where the output is to be written to.
+message GcsDestination {
+ // Required. Google Cloud Storage URI to output directory, up to 2000
+ // characters long.
+ // Accepted forms:
+ // * Prefix path: gs://bucket/directory
+ // The requesting user must have write permission to the bucket.
+ // The directory is created if it doesn't exist.
+ string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/model.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/model.proto
new file mode 100644
index 00000000000..3543f3d6a4e
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/model.proto
@@ -0,0 +1,111 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+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";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// API proto representing a trained machine learning model.
+message Model {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/Model"
+ pattern: "projects/{project}/locations/{location}/models/{model}"
+ };
+
+ // Deployment state of the model.
+ enum DeploymentState {
+ // Should not be used, an un-set enum has this value by default.
+ DEPLOYMENT_STATE_UNSPECIFIED = 0;
+
+ // Model is deployed.
+ DEPLOYED = 1;
+
+ // Model is not deployed.
+ UNDEPLOYED = 2;
+ }
+
+ // Required.
+ // The model metadata that is specific to the problem type.
+ // Must match the metadata type of the dataset used to train the model.
+ oneof model_metadata {
+ // Metadata for translation models.
+ TranslationModelMetadata translation_model_metadata = 15;
+
+ // Metadata for image classification models.
+ ImageClassificationModelMetadata image_classification_model_metadata = 13;
+
+ // Metadata for text classification models.
+ TextClassificationModelMetadata text_classification_model_metadata = 14;
+
+ // Metadata for image object detection models.
+ ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
+
+ // Metadata for text extraction models.
+ TextExtractionModelMetadata text_extraction_model_metadata = 19;
+
+ // Metadata for text sentiment models.
+ TextSentimentModelMetadata text_sentiment_model_metadata = 22;
+ }
+
+ // Output only. Resource name of the model.
+ // Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
+ string name = 1;
+
+ // Required. The name of the model to show in the interface. The name can be
+ // up to 32 characters long and can consist only of ASCII Latin letters A-Z
+ // and a-z, underscores
+ // (_), and ASCII digits 0-9. It must start with a letter.
+ string display_name = 2;
+
+ // Required. The resource ID of the dataset used to create the model. The dataset must
+ // come from the same ancestor project and location.
+ string dataset_id = 3;
+
+ // Output only. Timestamp when the model training finished and can be used for prediction.
+ google.protobuf.Timestamp create_time = 7;
+
+ // Output only. Timestamp when this model was last updated.
+ google.protobuf.Timestamp update_time = 11;
+
+ // Output only. Deployment state of the model. A model can only serve
+ // prediction requests after it gets deployed.
+ DeploymentState deployment_state = 8;
+
+ // Used to perform a consistent read-modify-write updates. If not set, a blind
+ // "overwrite" update happens.
+ string etag = 10;
+
+ // Optional. The labels with user-defined metadata to organize your model.
+ //
+ // Label keys and values can be no longer than 64 characters
+ // (Unicode codepoints), can only contain lowercase letters, numeric
+ // characters, underscores and dashes. International characters are allowed.
+ // Label values are optional. Label keys must start with a letter.
+ //
+ // See https://goo.gl/xmQnxf for more information on and examples of labels.
+ map labels = 34;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/model_evaluation.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/model_evaluation.proto
new file mode 100644
index 00000000000..5bedf4050c6
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/model_evaluation.proto
@@ -0,0 +1,101 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/api/resource.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/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Evaluation results of a model.
+message ModelEvaluation {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/ModelEvaluation"
+ pattern: "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}"
+ };
+
+ // Output only. Problem type specific evaluation metrics.
+ oneof metrics {
+ // Model evaluation metrics for image, text, video and tables
+ // classification.
+ // Tables problem is considered a classification when the target column
+ // is CATEGORY DataType.
+ ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
+
+ // Model evaluation metrics for translation.
+ TranslationEvaluationMetrics translation_evaluation_metrics = 9;
+
+ // Model evaluation metrics for image object detection.
+ ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
+
+ // Evaluation metrics for text sentiment models.
+ TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
+
+ // Evaluation metrics for text extraction models.
+ TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
+ }
+
+ // 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;
+
+ // Output only. The ID of the annotation spec that the model evaluation applies to. The
+ // 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]
+ // field is used.
+ string annotation_spec_id = 2;
+
+ // Output only. The value of
+ // [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
+ // at the moment when the model was trained. Because this field returns a
+ // 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.
+ // The display_name is empty for the overall model evaluation.
+ string display_name = 15;
+
+ // Output only. Timestamp when this model evaluation was created.
+ google.protobuf.Timestamp create_time = 5;
+
+ // Output only. The number of examples used for model evaluation, i.e. for
+ // which ground truth from time of model creation is compared against the
+ // predicted annotations created by the model.
+ // For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+ // 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/packages/google-cloud-automl/protos/google/cloud/automl/v1/operations.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/operations.proto
new file mode 100644
index 00000000000..21801093f37
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/operations.proto
@@ -0,0 +1,164 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/cloud/automl/v1/io.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Metadata used across all long running operations returned by AutoML API.
+message OperationMetadata {
+ // Ouptut only. Details of specific operation. Even if this field is empty,
+ // the presence allows to distinguish different types of operations.
+ oneof details {
+ // Details of a Delete operation.
+ DeleteOperationMetadata delete_details = 8;
+
+ // Details of a DeployModel operation.
+ DeployModelOperationMetadata deploy_model_details = 24;
+
+ // Details of an UndeployModel operation.
+ UndeployModelOperationMetadata undeploy_model_details = 25;
+
+ // Details of CreateModel operation.
+ CreateModelOperationMetadata create_model_details = 10;
+
+ // Details of CreateDataset operation.
+ CreateDatasetOperationMetadata create_dataset_details = 30;
+
+ // Details of ImportData operation.
+ ImportDataOperationMetadata import_data_details = 15;
+
+ // Details of BatchPredict operation.
+ BatchPredictOperationMetadata batch_predict_details = 16;
+
+ // Details of ExportData operation.
+ ExportDataOperationMetadata export_data_details = 21;
+
+ // Details of ExportModel operation.
+ ExportModelOperationMetadata export_model_details = 22;
+ }
+
+ // Output only. Progress of operation. Range: [0, 100].
+ // Not used currently.
+ int32 progress_percent = 13;
+
+ // Output only. Partial failures encountered.
+ // E.g. single files that couldn't be read.
+ // This field should never exceed 20 entries.
+ // Status details field will contain standard GCP error details.
+ repeated google.rpc.Status partial_failures = 2;
+
+ // Output only. Time when the operation was created.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Output only. Time when the operation was updated for the last time.
+ google.protobuf.Timestamp update_time = 4;
+}
+
+// Details of operations that perform deletes of any entities.
+message DeleteOperationMetadata {
+
+}
+
+// Details of DeployModel operation.
+message DeployModelOperationMetadata {
+
+}
+
+// Details of UndeployModel operation.
+message UndeployModelOperationMetadata {
+
+}
+
+// Details of CreateDataset operation.
+message CreateDatasetOperationMetadata {
+
+}
+
+// Details of CreateModel operation.
+message CreateModelOperationMetadata {
+
+}
+
+// Details of ImportData operation.
+message ImportDataOperationMetadata {
+
+}
+
+// Details of ExportData operation.
+message ExportDataOperationMetadata {
+ // Further describes this export data's output.
+ // Supplements
+ // [OutputConfig][google.cloud.automl.v1.OutputConfig].
+ message ExportDataOutputInfo {
+ // The output location to which the exported data is written.
+ oneof output_location {
+ // The full path of the Google Cloud Storage directory created, into which
+ // the exported data is written.
+ string gcs_output_directory = 1;
+ }
+ }
+
+ // Output only. Information further describing this export data's output.
+ ExportDataOutputInfo output_info = 1;
+}
+
+// Details of BatchPredict operation.
+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.
+ oneof output_location {
+ // The full path of the Google Cloud Storage directory created, into which
+ // the prediction output is written.
+ string gcs_output_directory = 1;
+ }
+ }
+
+ // Output only. The input config that was given upon starting this
+ // batch predict operation.
+ BatchPredictInputConfig input_config = 1;
+
+ // Output only. Information further describing this batch predict's output.
+ BatchPredictOutputInfo output_info = 2;
+}
+
+// Details of ExportModel operation.
+message ExportModelOperationMetadata {
+ // Further describes the output of model export.
+ // Supplements
+ // [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
+ message ExportModelOutputInfo {
+ // The full path of the Google Cloud Storage directory created, into which
+ // the model will be exported.
+ string gcs_output_directory = 1;
+ }
+
+ // Output only. Information further describing the output of this model
+ // export.
+ ExportModelOutputInfo output_info = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/prediction_service.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/prediction_service.proto
new file mode 100644
index 00000000000..5d1d80c48cf
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/prediction_service.proto
@@ -0,0 +1,321 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/automl/v1/annotation_payload.proto";
+import "google/cloud/automl/v1/data_items.proto";
+import "google/cloud/automl/v1/io.proto";
+import "google/longrunning/operations.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "PredictionServiceProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+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 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";
+
+ // Perform an online prediction. The prediction result is directly
+ // returned in the response.
+ // Available for following ML scenarios, and their expected request payloads:
+ //
+ // AutoML Vision Classification
+ //
+ // * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB.
+ //
+ // AutoML Vision Object Detection
+ //
+ // * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB.
+ //
+ // AutoML Natural Language Classification
+ //
+ // * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in
+ // .PDF, .TIF or .TIFF format with size upto 2MB.
+ //
+ // AutoML Natural Language Entity Extraction
+ //
+ // * A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document
+ // in .PDF, .TIF or .TIFF format with size upto 20MB.
+ //
+ // AutoML Natural Language Sentiment Analysis
+ //
+ // * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in
+ // .PDF, .TIF or .TIFF format with size upto 2MB.
+ //
+ // AutoML Translation
+ //
+ // * A TextSnippet up to 25,000 characters, UTF-8 encoded.
+ //
+ // AutoML Tables
+ //
+ // * A row with column values matching
+ // the columns of the model, up to 5MB. Not available for FORECASTING
+ // `prediction_type`.
+ rpc Predict(PredictRequest) returns (PredictResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/models/*}:predict"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,payload,params";
+ }
+
+ // Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
+ // prediction result won't be immediately available in the response. Instead,
+ // a long running operation object is returned. User can poll the operation
+ // result via [GetOperation][google.longrunning.Operations.GetOperation]
+ // method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned in
+ // the [response][google.longrunning.Operation.response] field.
+ // Available for following ML scenarios:
+ //
+ // * AutoML Vision Classification
+ // * AutoML Vision Object Detection
+ // * AutoML Video Intelligence Classification
+ // * AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification
+ // * AutoML Natural Language Entity Extraction
+ // * AutoML Natural Language Sentiment Analysis
+ // * AutoML Tables
+ rpc BatchPredict(BatchPredictRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/models/*}:batchPredict"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,input_config,output_config,params";
+ option (google.longrunning.operation_info) = {
+ response_type: "BatchPredictResult"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
+message PredictRequest {
+ // Required. Name of the model requested to serve the prediction.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. Payload to perform a prediction on. The payload must match the
+ // problem type that the model was trained to solve.
+ ExamplePayload payload = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Additional domain-specific parameters, any string must be up to 25000
+ // characters long.
+ //
+ // AutoML Vision Classification
+ //
+ // `score_threshold`
+ // : (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for an image, it will only produce results that have
+ // at least this confidence score. The default is 0.5.
+ //
+ // AutoML Vision Object Detection
+ //
+ // `score_threshold`
+ // : (float) When Model detects objects on the image,
+ // it will only produce bounding boxes which have at least this
+ // confidence score. Value in 0 to 1 range, default is 0.5.
+ //
+ // `max_bounding_box_count`
+ // : (int64) The maximum number of bounding
+ // boxes returned. The default is 100. The
+ // number of returned bounding boxes might be limited by the server.
+ //
+ // AutoML Tables
+ //
+ // `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]
+ // objects. The default is false.
+ map params = 3;
+}
+
+// Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
+message PredictResponse {
+ // Prediction result.
+ // AutoML Translation and AutoML Natural Language Sentiment Analysis
+ // return precisely one payload.
+ repeated AnnotationPayload payload = 1;
+
+ // The preprocessed example that AutoML actually makes prediction on.
+ // Empty if AutoML does not preprocess the input example.
+ //
+ // For AutoML Natural Language (Classification, Entity Extraction, and
+ // Sentiment Analysis), if the input is a document, the recognized text is
+ // returned in the
+ // [document_text][google.cloud.automl.v1.Document.document_text]
+ // property.
+ ExamplePayload preprocessed_input = 3;
+
+ // Additional domain-specific prediction response metadata.
+ //
+ // AutoML Vision Object Detection
+ //
+ // `max_bounding_box_count`
+ // : (int64) The maximum number of bounding boxes to return per image.
+ //
+ // AutoML Natural Language Sentiment Analysis
+ //
+ // `sentiment_score`
+ // : (float, deprecated) A value between -1 and 1,
+ // -1 maps to least positive sentiment, while 1 maps to the most positive
+ // one and the higher the score, the more positive the sentiment in the
+ // document is. Yet these values are relative to the training data, so
+ // e.g. if all data was positive then -1 is also positive (though
+ // the least).
+ // `sentiment_score` is not the same as "score" and "magnitude"
+ // from Sentiment Analysis in the Natural Language API.
+ map metadata = 2;
+}
+
+// Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
+message BatchPredictRequest {
+ // Required. Name of the model requested to serve the batch prediction.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. The input configuration for batch prediction.
+ BatchPredictInputConfig input_config = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Configuration specifying where output predictions should
+ // be written.
+ BatchPredictOutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Additional domain-specific parameters for the predictions, any string must
+ // be up to 25000 characters long.
+ //
+ // AutoML Natural Language Classification
+ //
+ // `score_threshold`
+ // : (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for a text snippet, it will only produce results
+ // that have at least this confidence score. The default is 0.5.
+ //
+ //
+ // AutoML Vision Classification
+ //
+ // `score_threshold`
+ // : (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for an image, it will only produce results that
+ // have at least this confidence score. The default is 0.5.
+ //
+ // AutoML Vision Object Detection
+ //
+ // `score_threshold`
+ // : (float) When Model detects objects on the image,
+ // it will only produce bounding boxes which have at least this
+ // confidence score. Value in 0 to 1 range, default is 0.5.
+ //
+ // `max_bounding_box_count`
+ // : (int64) The maximum number of bounding
+ // boxes returned per image. The default is 100, the
+ // number of bounding boxes returned might be limited by the server.
+ // AutoML Video Intelligence Classification
+ //
+ // `score_threshold`
+ // : (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for a video, it will only produce results that
+ // have at least this confidence score. The default is 0.5.
+ //
+ // `segment_classification`
+ // : (boolean) Set to true to request
+ // segment-level classification. AutoML Video Intelligence returns
+ // labels and their confidence scores for the entire segment of the
+ // video that user specified in the request configuration.
+ // The default is true.
+ //
+ // `shot_classification`
+ // : (boolean) Set to true to request shot-level
+ // classification. AutoML Video Intelligence determines the boundaries
+ // for each camera shot in the entire segment of the video that user
+ // specified in the request configuration. AutoML Video Intelligence
+ // then returns labels and their confidence scores for each detected
+ // shot, along with the start and end time of the shot.
+ // The default is false.
+ //
+ // WARNING: Model evaluation is not done for this classification type,
+ // the quality of it depends on training data, but there are no metrics
+ // provided to describe that quality.
+ //
+ // `1s_interval_classification`
+ // : (boolean) Set to true to request
+ // classification for a video at one-second intervals. AutoML Video
+ // Intelligence returns labels and their confidence scores for each
+ // second of the entire segment of the video that user specified in the
+ // request configuration. The default is false.
+ //
+ // WARNING: Model evaluation is not done for this classification
+ // type, the quality of it depends on training data, but there are no
+ // metrics provided to describe that quality.
+ //
+ // AutoML Video Intelligence Object Tracking
+ //
+ // `score_threshold`
+ // : (float) When Model detects objects on video frames,
+ // it will only produce bounding boxes which have at least this
+ // confidence score. Value in 0 to 1 range, default is 0.5.
+ //
+ // `max_bounding_box_count`
+ // : (int64) The maximum number of bounding
+ // boxes returned per image. The default is 100, the
+ // number of bounding boxes returned might be limited by the server.
+ //
+ // `min_bounding_box_size`
+ // : (float) Only bounding boxes with shortest edge
+ // at least that long as a relative value of video frame size are
+ // returned. Value in 0 to 1 range. Default is 0.
+ //
+ map params = 5;
+}
+
+// Result of the Batch Predict. This message is returned in
+// [response][google.longrunning.Operation.response] of the operation returned
+// by the [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
+message BatchPredictResult {
+ // Additional domain-specific prediction response metadata.
+ //
+ // AutoML Vision Object Detection
+ //
+ // `max_bounding_box_count`
+ // : (int64) The maximum number of bounding boxes returned per image.
+ //
+ // AutoML Video Intelligence Object Tracking
+ //
+ // `max_bounding_box_count`
+ // : (int64) The maximum number of bounding boxes returned per frame.
+ map metadata = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/service.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/service.proto
new file mode 100644
index 00000000000..ea5dc36fbbc
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/service.proto
@@ -0,0 +1,607 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/automl/v1/annotation_payload.proto";
+import "google/cloud/automl/v1/annotation_spec.proto";
+import "google/cloud/automl/v1/dataset.proto";
+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/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "AutoMlProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// AutoML Server API.
+//
+// The resource names are assigned by the server.
+// The server never reuses names that it has created after the resources with
+// those names are deleted.
+//
+// An ID of a resource is the last element of the item's resource name. For
+// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
+// the id for the item is `{dataset_id}`.
+//
+// Currently the only supported `location_id` is "us-central1".
+//
+// On any input that is documented to expect a string parameter in
+// 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";
+
+ // Creates a dataset.
+ rpc CreateDataset(CreateDatasetRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/datasets"
+ body: "dataset"
+ };
+ option (google.api.method_signature) = "parent,dataset";
+ option (google.longrunning.operation_info) = {
+ response_type: "Dataset"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets a dataset.
+ rpc GetDataset(GetDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/datasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists datasets in a project.
+ rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/datasets"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a dataset.
+ rpc UpdateDataset(UpdateDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ patch: "/v1/{dataset.name=projects/*/locations/*/datasets/*}"
+ body: "dataset"
+ };
+ option (google.api.method_signature) = "dataset,update_mask";
+ }
+
+ // Deletes a dataset and all of its contents.
+ // Returns empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes,
+ // and `delete_details` in the
+ // [metadata][google.longrunning.Operation.metadata] field.
+ rpc DeleteDataset(DeleteDatasetRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/datasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Imports data into a dataset.
+ // For Tables this method can only be called on an empty Dataset.
+ //
+ // For Tables:
+ // * A
+ // [schema_inference_version][google.cloud.automl.v1.InputConfig.params]
+ // parameter must be explicitly set.
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/datasets/*}:importData"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,input_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports dataset's data to the provided output location.
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/datasets/*}:exportData"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,output_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets an annotation spec.
+ rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a model.
+ // Returns a Model in the [response][google.longrunning.Operation.response]
+ // field when it completes.
+ // When you create a model, several model evaluations are created for it:
+ // a global evaluation, and one evaluation for each annotation spec.
+ rpc CreateModel(CreateModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/models"
+ body: "model"
+ };
+ option (google.api.method_signature) = "parent,model";
+ option (google.longrunning.operation_info) = {
+ response_type: "Model"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets a model.
+ rpc GetModel(GetModelRequest) returns (Model) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/models/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists models.
+ rpc ListModels(ListModelsRequest) returns (ListModelsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/models"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes a model.
+ // Returns `google.protobuf.Empty` in the
+ // [response][google.longrunning.Operation.response] field when it completes,
+ // and `delete_details` in the
+ // [metadata][google.longrunning.Operation.metadata] field.
+ rpc DeleteModel(DeleteModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/models/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates a model.
+ rpc UpdateModel(UpdateModelRequest) returns (Model) {
+ option (google.api.http) = {
+ patch: "/v1/{model.name=projects/*/locations/*/models/*}"
+ body: "model"
+ };
+ option (google.api.method_signature) = "model,update_mask";
+ }
+
+ // 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.
+ //
+ // Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+ // deployment automatically.
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc DeployModel(DeployModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/models/*}:deploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Undeploys a model. If the model is not deployed this method has no effect.
+ //
+ // Only applicable for Text Classification, Image Object Detection and Tables;
+ // all other domains manage deployment automatically.
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc UndeployModel(UndeployModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/models/*}:undeploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports a trained, "export-able", model to a user specified Google Cloud
+ // Storage location. A model is considered export-able if and only if it has
+ // an export format defined for it in
+ // [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ExportModel(ExportModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/models/*}:export"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,output_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets a model evaluation.
+ rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/models/*/modelEvaluations/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists model evaluations.
+ rpc ListModelEvaluations(ListModelEvaluationsRequest) returns (ListModelEvaluationsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/models/*}/modelEvaluations"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+}
+
+// Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
+message CreateDatasetRequest {
+ // Required. The resource name of the project to create the dataset for.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The dataset to create.
+ Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
+message GetDatasetRequest {
+ // Required. The resource name of the dataset to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
+message ListDatasetsRequest {
+ // Required. The resource name of the project from which to list datasets.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // 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:
+ //
+ // * `translation_dataset_metadata:*` --> The dataset has
+ // `translation_dataset_metadata`.
+ string filter = 3;
+
+ // Requested page size. Server may return fewer results than requested.
+ // If unspecified, server will pick a default size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return
+ // Typically obtained via
+ // [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token] of the previous
+ // [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
+message ListDatasetsResponse {
+ // The datasets read.
+ repeated Dataset datasets = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page.
+ string next_page_token = 2;
+}
+
+// Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
+message UpdateDatasetRequest {
+ // Required. The dataset which replaces the resource on the server.
+ Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The update mask applies to the resource.
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
+message DeleteDatasetRequest {
+ // Required. The resource name of the dataset to delete.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
+message ImportDataRequest {
+ // Required. Dataset name. Dataset must already exist. All imported
+ // annotations and examples will be added.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. The desired input location and its domain specific semantics,
+ // if any.
+ InputConfig input_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
+message ExportDataRequest {
+ // Required. The resource name of the dataset.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. The desired output location.
+ OutputConfig output_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec].
+message GetAnnotationSpecRequest {
+ // Required. The resource name of the annotation spec to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/AnnotationSpec"
+ }
+ ];
+}
+
+// Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
+message CreateModelRequest {
+ // Required. Resource name of the parent project where the model is being created.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The model to create.
+ Model model = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
+message GetModelRequest {
+ // Required. Resource name of the model.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
+message ListModelsRequest {
+ // Required. Resource name of the project, from which to list the models.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // An expression for filtering the results of the request.
+ //
+ // * `model_metadata` - for existence of the case (e.g.
+ // `video_classification_model_metadata:*`).
+ // * `dataset_id` - for = or !=. Some examples of using the filter are:
+ //
+ // * `image_classification_model_metadata:*` --> The model has
+ // `image_classification_model_metadata`.
+ // * `dataset_id=5` --> The model was created from a dataset with ID 5.
+ string filter = 3;
+
+ // Requested page size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return
+ // Typically obtained via
+ // [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token] of the previous
+ // [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
+message ListModelsResponse {
+ // List of models in the requested page.
+ repeated Model model = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
+ string next_page_token = 2;
+}
+
+// Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
+message DeleteModelRequest {
+ // Required. Resource name of the model being deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
+message UpdateModelRequest {
+ // Required. The model which replaces the resource on the server.
+ Model model = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The update mask applies to the resource.
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].
+message DeployModelRequest {
+ // The per-domain specific deployment parameters.
+ oneof model_deployment_metadata {
+ // Model deployment metadata specific to Image Object Detection.
+ ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2;
+
+ // Model deployment metadata specific to Image Classification.
+ ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4;
+ }
+
+ // Required. Resource name of the model to deploy.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].
+message UndeployModelRequest {
+ // Required. Resource name of the model to undeploy.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].
+// Models need to be enabled for exporting, otherwise an error code will be
+// returned.
+message ExportModelRequest {
+ // Required. The resource name of the model to export.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. The desired output location and configuration.
+ ModelExportOutputConfig output_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
+message GetModelEvaluationRequest {
+ // Required. Resource name for the model evaluation.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/ModelEvaluation"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
+message ListModelEvaluationsRequest {
+ // Required. Resource name of the model to list the model evaluations for.
+ // If modelId is set as "-", this will list model evaluations from across all
+ // models of the parent location.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. An expression for filtering the results of the request.
+ //
+ // * `annotation_spec_id` - for =, != or existence. See example below for
+ // the last.
+ //
+ // Some examples of using the filter are:
+ //
+ // * `annotation_spec_id!=4` --> The model evaluation was done for
+ // annotation spec with ID different than 4.
+ // * `NOT annotation_spec_id:*` --> The model evaluation was done for
+ // aggregate of all annotation specs.
+ string filter = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Requested page size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return.
+ // Typically obtained via
+ // [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token] of the previous
+ // [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
+message ListModelEvaluationsResponse {
+ // List of model evaluations in the requested page.
+ repeated ModelEvaluation model_evaluation = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
+ // [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] request to obtain that page.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/text.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text.proto
new file mode 100644
index 00000000000..e227347f931
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text.proto
@@ -0,0 +1,65 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/cloud/automl/v1/classification.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TextProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Dataset metadata for classification.
+message TextClassificationDatasetMetadata {
+ // Required. Type of the classification problem.
+ ClassificationType classification_type = 1;
+}
+
+// Model metadata that is specific to text classification.
+message TextClassificationModelMetadata {
+ // Output only. Classification type of the dataset used to train this model.
+ ClassificationType classification_type = 3;
+}
+
+// Dataset metadata that is specific to text extraction
+message TextExtractionDatasetMetadata {
+
+}
+
+// Model metadata that is specific to text extraction.
+message TextExtractionModelMetadata {
+
+}
+
+// Dataset metadata for text sentiment.
+message TextSentimentDatasetMetadata {
+ // Required. A sentiment is expressed as an integer ordinal, where higher value
+ // means a more positive sentiment. The range of sentiments that will be used
+ // is between 0 and sentiment_max (inclusive on both ends), and all the values
+ // in the range must be represented in the dataset before a model can be
+ // created.
+ // sentiment_max value must be between 1 and 10 (inclusive).
+ int32 sentiment_max = 1;
+}
+
+// Model metadata that is specific to text sentiment.
+message TextSentimentModelMetadata {
+
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_extraction.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_extraction.proto
new file mode 100644
index 00000000000..239299e8859
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_extraction.proto
@@ -0,0 +1,68 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/cloud/automl/v1/text_segment.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Annotation for identifying spans of text.
+message TextExtractionAnnotation {
+ // Required. Text extraction annotations can either be a text segment or a
+ // text relation.
+ oneof annotation {
+ // An entity annotation will set this, which is the part of the original
+ // text to which the annotation pertains.
+ TextSegment text_segment = 3;
+ }
+
+ // Output only. A confidence estimate between 0.0 and 1.0. A higher value
+ // means greater confidence in correctness of the annotation.
+ float score = 1;
+}
+
+// Model evaluation metrics for text extraction problems.
+message TextExtractionEvaluationMetrics {
+ // Metrics for a single confidence threshold.
+ message ConfidenceMetricsEntry {
+ // Output only. The confidence threshold value used to compute the metrics.
+ // Only annotations with score of at least this threshold are considered to
+ // be ones the model would return.
+ float confidence_threshold = 1;
+
+ // Output only. Recall under the given confidence threshold.
+ float recall = 3;
+
+ // Output only. Precision under the given confidence threshold.
+ float precision = 4;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 5;
+ }
+
+ // Output only. The Area under precision recall curve metric.
+ float au_prc = 1;
+
+ // Output only. Metrics that have confidence thresholds.
+ // Precision-recall curve can be derived from it.
+ repeated ConfidenceMetricsEntry confidence_metrics_entries = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_segment.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_segment.proto
new file mode 100644
index 00000000000..36bf4f34341
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_segment.proto
@@ -0,0 +1,40 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TextSegmentProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
+message TextSegment {
+ // Output only. The content of the TextSegment.
+ string content = 3;
+
+ // Required. Zero-based character index of the first character of the text
+ // segment (counting characters from the beginning of the text).
+ int64 start_offset = 1;
+
+ // Required. Zero-based character index of the first character past the end of
+ // the text segment (counting character from the beginning of the text).
+ // The character at the end_offset is NOT included in the text segment.
+ int64 end_offset = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_sentiment.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_sentiment.proto
new file mode 100644
index 00000000000..865459ea67c
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/text_sentiment.proto
@@ -0,0 +1,77 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/cloud/automl/v1/classification.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TextSentimentProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Contains annotation details specific to text sentiment.
+message TextSentimentAnnotation {
+ // Output only. The sentiment with the semantic, as given to the
+ // [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
+ // for the prediction had been trained.
+ // The sentiment values are between 0 and
+ // Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+ // with higher value meaning more positive sentiment. They are completely
+ // relative, i.e. 0 means least positive sentiment and sentiment_max means
+ // the most positive from the sentiments present in the train data. Therefore
+ // e.g. if train data had only negative sentiment, then sentiment_max, would
+ // be still negative (although least negative).
+ // The sentiment shouldn't be confused with "score" or "magnitude"
+ // from the previous Natural Language Sentiment Analysis API.
+ int32 sentiment = 1;
+}
+
+// Model evaluation metrics for text sentiment problems.
+message TextSentimentEvaluationMetrics {
+ // Output only. Precision.
+ float precision = 1;
+
+ // Output only. Recall.
+ float recall = 2;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 3;
+
+ // Output only. Mean absolute error. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float mean_absolute_error = 4;
+
+ // Output only. Mean squared error. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float mean_squared_error = 5;
+
+ // Output only. Linear weighted kappa. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float linear_kappa = 6;
+
+ // Output only. Quadratic weighted kappa. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float quadratic_kappa = 7;
+
+ // Output only. Confusion matrix of the evaluation.
+ // Only set for the overall model evaluation, not for evaluation of a single
+ // annotation spec.
+ ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1/translation.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1/translation.proto
new file mode 100644
index 00000000000..05b37d62707
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1/translation.proto
@@ -0,0 +1,69 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/automl/v1/data_items.proto";
+
+option csharp_namespace = "Google.Cloud.AutoML.V1";
+option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TranslationProto";
+option java_package = "com.google.cloud.automl.v1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1";
+option ruby_package = "Google::Cloud::AutoML::V1";
+
+// Dataset metadata that is specific to translation.
+message TranslationDatasetMetadata {
+ // Required. The BCP-47 language code of the source language.
+ string source_language_code = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The BCP-47 language code of the target language.
+ string target_language_code = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Evaluation metrics for the dataset.
+message TranslationEvaluationMetrics {
+ // Output only. BLEU score.
+ double bleu_score = 1;
+
+ // Output only. BLEU score for base model.
+ double base_bleu_score = 2;
+}
+
+// Model metadata that is specific to translation.
+message TranslationModelMetadata {
+ // The resource name of the model to use as a baseline to train the custom
+ // model. If unset, we use the default base model provided by Google
+ // Translate. Format:
+ // `projects/{project_id}/locations/{location_id}/models/{model_id}`
+ string base_model = 1;
+
+ // Output only. Inferred from the dataset.
+ // The source language (The BCP-47 language code) that is used for training.
+ string source_language_code = 2;
+
+ // Output only. The target language (The BCP-47 language code) that is used
+ // for training.
+ string target_language_code = 3;
+}
+
+// Annotation details specific to translation.
+message TranslationAnnotation {
+ // Output only . The translated content.
+ TextSnippet translated_content = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/annotation_payload.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/annotation_payload.proto
new file mode 100644
index 00000000000..5794c2391de
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/annotation_payload.proto
@@ -0,0 +1,75 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/classification.proto";
+import "google/cloud/automl/v1beta1/detection.proto";
+import "google/cloud/automl/v1beta1/tables.proto";
+import "google/cloud/automl/v1beta1/text_extraction.proto";
+import "google/cloud/automl/v1beta1/text_sentiment.proto";
+import "google/cloud/automl/v1beta1/translation.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Contains annotation information that is relevant to AutoML.
+message AnnotationPayload {
+ // Output only . Additional information about the annotation
+ // specific to the AutoML domain.
+ oneof detail {
+ // Annotation details for translation.
+ TranslationAnnotation translation = 2;
+
+ // Annotation details for content or image classification.
+ ClassificationAnnotation classification = 3;
+
+ // Annotation details for image object detection.
+ ImageObjectDetectionAnnotation image_object_detection = 4;
+
+ // Annotation details for video classification.
+ // Returned for Video Classification predictions.
+ VideoClassificationAnnotation video_classification = 9;
+
+ // Annotation details for video object tracking.
+ VideoObjectTrackingAnnotation video_object_tracking = 8;
+
+ // Annotation details for text extraction.
+ TextExtractionAnnotation text_extraction = 6;
+
+ // Annotation details for text sentiment.
+ TextSentimentAnnotation text_sentiment = 7;
+
+ // Annotation details for Tables.
+ TablesAnnotation tables = 10;
+ }
+
+ // Output only . The resource ID of the annotation spec that
+ // this annotation pertains to. The annotation spec comes from either an
+ // ancestor dataset, or the dataset that was used to train the model in use.
+ string annotation_spec_id = 1;
+
+ // Output only. The value of
+ // [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
+ // when the model was trained. Because this field returns a value at model
+ // training time, for different models trained using the same dataset, the
+ // returned value could be different as model owner could update the
+ // `display_name` between any two model training.
+ string display_name = 5;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/annotation_spec.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/annotation_spec.proto
new file mode 100644
index 00000000000..4072ddde458
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/annotation_spec.proto
@@ -0,0 +1,47 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/resource.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A definition of an annotation spec.
+message AnnotationSpec {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/AnnotationSpec"
+ pattern: "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}"
+ };
+
+ // 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;
+
+ // Required. The name of the annotation spec to show in the interface. The name can be
+ // up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
+ string display_name = 2;
+
+ // Output only. The number of examples in the parent dataset
+ // labeled by the annotation spec.
+ int32 example_count = 9;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/classification.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/classification.proto
new file mode 100644
index 00000000000..7a1b83a286c
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/classification.proto
@@ -0,0 +1,215 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/temporal.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_outer_classname = "ClassificationProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Type of the classification problem.
+enum ClassificationType {
+ // An un-set value of this enum.
+ CLASSIFICATION_TYPE_UNSPECIFIED = 0;
+
+ // At most one label is allowed per example.
+ MULTICLASS = 1;
+
+ // Multiple labels are allowed for one example.
+ MULTILABEL = 2;
+}
+
+// Contains annotation details specific to classification.
+message ClassificationAnnotation {
+ // Output only. A confidence estimate between 0.0 and 1.0. A higher value
+ // means greater confidence that the annotation is positive. If a user
+ // approves an annotation as negative or positive, the score value remains
+ // unchanged. If a user creates an annotation, the score is 0 for negative or
+ // 1 for positive.
+ float score = 1;
+}
+
+// Contains annotation details specific to video classification.
+message VideoClassificationAnnotation {
+ // Output only. Expresses the type of video classification. Possible values:
+ //
+ // * `segment` - Classification done on a specified by user
+ // time segment of a video. AnnotationSpec is answered to be present
+ // in that time segment, if it is present in any part of it. The video
+ // ML model evaluations are done only for this type of classification.
+ //
+ // * `shot`- Shot-level classification.
+ // AutoML Video Intelligence determines the boundaries
+ // for each camera shot in the entire segment of the video that user
+ // specified in the request configuration. AutoML Video Intelligence
+ // then returns labels and their confidence scores for each detected
+ // shot, along with the start and end time of the shot.
+ // WARNING: Model evaluation is not done for this classification type,
+ // the quality of it depends on training data, but there are no
+ // metrics provided to describe that quality.
+ //
+ // * `1s_interval` - AutoML Video Intelligence returns labels and their
+ // confidence scores for each second of the entire segment of the video
+ // that user specified in the request configuration.
+ // WARNING: Model evaluation is not done for this classification type,
+ // the quality of it depends on training data, but there are no
+ // metrics provided to describe that quality.
+ string type = 1;
+
+ // Output only . The classification details of this annotation.
+ ClassificationAnnotation classification_annotation = 2;
+
+ // Output only . The time segment of the video to which the
+ // annotation applies.
+ TimeSegment time_segment = 3;
+}
+
+// Model evaluation metrics for classification problems.
+// Note: For Video Classification this metrics only describe quality of the
+// Video Classification predictions of "segment_classification" type.
+message ClassificationEvaluationMetrics {
+ // Metrics for a single confidence threshold.
+ message ConfidenceMetricsEntry {
+ // Output only. Metrics are computed with an assumption that the model
+ // never returns predictions with score lower than this value.
+ float confidence_threshold = 1;
+
+ // Output only. Metrics are computed with an assumption that the model
+ // always returns at most this many predictions (ordered by their score,
+ // descendingly), but they all still need to meet the confidence_threshold.
+ int32 position_threshold = 14;
+
+ // Output only. Recall (True Positive Rate) for the given confidence
+ // threshold.
+ float recall = 2;
+
+ // Output only. Precision for the given confidence threshold.
+ float precision = 3;
+
+ // Output only. False Positive Rate for the given confidence threshold.
+ float false_positive_rate = 8;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 4;
+
+ // Output only. The Recall (True Positive Rate) when only considering the
+ // label that has the highest prediction score and not below the confidence
+ // threshold for each example.
+ float recall_at1 = 5;
+
+ // Output only. The precision when only considering the label that has the
+ // highest prediction score and not below the confidence threshold for each
+ // example.
+ float precision_at1 = 6;
+
+ // Output only. The False Positive Rate when only considering the label that
+ // has the highest prediction score and not below the confidence threshold
+ // for each example.
+ float false_positive_rate_at1 = 9;
+
+ // Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
+ float f1_score_at1 = 7;
+
+ // Output only. The number of model created labels that match a ground truth
+ // label.
+ int64 true_positive_count = 10;
+
+ // Output only. The number of model created labels that do not match a
+ // ground truth label.
+ int64 false_positive_count = 11;
+
+ // Output only. The number of ground truth labels that are not matched
+ // by a model created label.
+ int64 false_negative_count = 12;
+
+ // Output only. The number of labels that were not created by the model,
+ // but if they would, they would not match a ground truth label.
+ int64 true_negative_count = 13;
+ }
+
+ // Confusion matrix of the model running the classification.
+ message ConfusionMatrix {
+ // Output only. A row in the confusion matrix.
+ message Row {
+ // Output only. Value of the specific cell in the confusion matrix.
+ // The number of values each row has (i.e. the length of the row) is equal
+ // to the length of the `annotation_spec_id` field or, if that one is not
+ // populated, length of the [display_name][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
+ repeated int32 example_count = 1;
+ }
+
+ // Output only. IDs of the annotation specs used in the confusion matrix.
+ // For Tables CLASSIFICATION
+ //
+ // [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]
+ // only list of [annotation_spec_display_name-s][] is populated.
+ repeated string annotation_spec_id = 1;
+
+ // 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.v1beta1.TablesModelMetadata.prediction_type],
+ // distinct values of the target column at the moment of the model
+ // evaluation are populated here.
+ repeated string display_name = 3;
+
+ // Output only. Rows in the confusion matrix. The number of rows is equal to
+ // the size of `annotation_spec_id`.
+ // `row[i].example_count[j]` is the number of examples that have ground
+ // truth of the `annotation_spec_id[i]` and are predicted as
+ // `annotation_spec_id[j]` by the model being evaluated.
+ repeated Row row = 2;
+ }
+
+ // Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
+ // for the overall evaluation.
+ float au_prc = 1;
+
+ // Output only. The Area Under Precision-Recall Curve metric based on priors.
+ // Micro-averaged for the overall evaluation.
+ // Deprecated.
+ float base_au_prc = 2 [deprecated = true];
+
+ // Output only. The Area Under Receiver Operating Characteristic curve metric.
+ // Micro-averaged for the overall evaluation.
+ float au_roc = 6;
+
+ // Output only. The Log Loss metric.
+ float log_loss = 7;
+
+ // Output only. Metrics for each confidence_threshold in
+ // 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+ // position_threshold = INT32_MAX_VALUE.
+ // ROC and precision-recall curves, and other aggregated metrics are derived
+ // from them. The confidence metrics entries may also be supplied for
+ // additional values of position_threshold, but from these no aggregated
+ // metrics are computed.
+ repeated ConfidenceMetricsEntry confidence_metrics_entry = 3;
+
+ // Output only. Confusion matrix of the evaluation.
+ // Only set for MULTICLASS classification problems where number
+ // of labels is no more than 10.
+ // Only set for model level evaluation, not for evaluation per label.
+ ConfusionMatrix confusion_matrix = 4;
+
+ // Output only. The annotation spec ids used for this evaluation.
+ repeated string annotation_spec_id = 5;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/column_spec.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/column_spec.proto
new file mode 100644
index 00000000000..3d15fb51f84
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/column_spec.proto
@@ -0,0 +1,77 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/data_stats.proto";
+import "google/cloud/automl/v1beta1/data_types.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were
+// given on import .
+// Used by:
+// * Tables
+message ColumnSpec {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/ColumnSpec"
+ pattern: "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}"
+ };
+
+ // Identifies the table's column, and its correlation with the column this
+ // ColumnSpec describes.
+ message CorrelatedColumn {
+ // The column_spec_id of the correlated column, which belongs to the same
+ // table as the in-context column.
+ string column_spec_id = 1;
+
+ // Correlation between this and the in-context column.
+ CorrelationStats correlation_stats = 2;
+ }
+
+ // Output only. The resource name of the column specs.
+ // Form:
+ //
+ // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+ string name = 1;
+
+ // The data type of elements stored in the column.
+ DataType data_type = 2;
+
+ // Output only. The name of the column to show in the interface. The name can
+ // be up to 100 characters long and can consist only of ASCII Latin letters
+ // A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+ // must start with a letter or a digit.
+ string display_name = 3;
+
+ // Output only. Stats of the series of values in the column.
+ // This field may be stale, see the ancestor's
+ // Dataset.tables_dataset_metadata.stats_update_time field
+ // for the timestamp at which these stats were last updated.
+ DataStats data_stats = 4;
+
+ // Deprecated.
+ repeated CorrelatedColumn top_correlated_columns = 5;
+
+ // Used to perform consistent read-modify-write updates. If not set, a blind
+ // "overwrite" update happens.
+ string etag = 6;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_items.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_items.proto
new file mode 100644
index 00000000000..2eb45f2d5ff
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_items.proto
@@ -0,0 +1,218 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/geometry.proto";
+import "google/cloud/automl/v1beta1/io.proto";
+import "google/cloud/automl/v1beta1/temporal.proto";
+import "google/cloud/automl/v1beta1/text_segment.proto";
+import "google/protobuf/struct.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A representation of an image.
+// Only images up to 30MB in size are supported.
+message Image {
+ // Input only. The data representing the image.
+ // For Predict calls [image_bytes][google.cloud.automl.v1beta1.Image.image_bytes] must be set, as other options are not
+ // currently supported by prediction API. You can read the contents of an
+ // uploaded image by using the [content_uri][google.cloud.automl.v1beta1.Image.content_uri] field.
+ oneof data {
+ // Image content represented as a stream of bytes.
+ // Note: As with all `bytes` fields, protobuffers use a pure binary
+ // representation, whereas JSON representations use base64.
+ bytes image_bytes = 1;
+
+ // An input config specifying the content of the image.
+ InputConfig input_config = 6;
+ }
+
+ // Output only. HTTP URI to the thumbnail image.
+ string thumbnail_uri = 4;
+}
+
+// A representation of a text snippet.
+message TextSnippet {
+ // Required. The content of the text snippet as a string. Up to 250000
+ // characters long.
+ string content = 1;
+
+ // Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
+ // values are "text/html" and "text/plain". If left blank, the format is
+ // automatically determined from the type of the uploaded [content][google.cloud.automl.v1beta1.TextSnippet.content].
+ string mime_type = 2;
+
+ // Output only. HTTP URI where you can download the content.
+ string content_uri = 4;
+}
+
+// Message that describes dimension of a document.
+message DocumentDimensions {
+ // Unit of the document dimension.
+ enum DocumentDimensionUnit {
+ // Should not be used.
+ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0;
+
+ // Document dimension is measured in inches.
+ INCH = 1;
+
+ // Document dimension is measured in centimeters.
+ CENTIMETER = 2;
+
+ // Document dimension is measured in points. 72 points = 1 inch.
+ POINT = 3;
+ }
+
+ // Unit of the dimension.
+ DocumentDimensionUnit unit = 1;
+
+ // Width value of the document, works together with the unit.
+ float width = 2;
+
+ // Height value of the document, works together with the unit.
+ float height = 3;
+}
+
+// A structured text document e.g. a PDF.
+message Document {
+ // Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.
+ message Layout {
+ // The type of TextSegment in the context of the original document.
+ enum TextSegmentType {
+ // Should not be used.
+ TEXT_SEGMENT_TYPE_UNSPECIFIED = 0;
+
+ // The text segment is a token. e.g. word.
+ TOKEN = 1;
+
+ // The text segment is a paragraph.
+ PARAGRAPH = 2;
+
+ // The text segment is a form field.
+ FORM_FIELD = 3;
+
+ // The text segment is the name part of a form field. It will be treated
+ // as child of another FORM_FIELD TextSegment if its span is subspan of
+ // another TextSegment with type FORM_FIELD.
+ FORM_FIELD_NAME = 4;
+
+ // The text segment is the text content part of a form field. It will be
+ // treated as child of another FORM_FIELD TextSegment if its span is
+ // subspan of another TextSegment with type FORM_FIELD.
+ FORM_FIELD_CONTENTS = 5;
+
+ // The text segment is a whole table, including headers, and all rows.
+ TABLE = 6;
+
+ // The text segment is a table's headers. It will be treated as child of
+ // another TABLE TextSegment if its span is subspan of another TextSegment
+ // with type TABLE.
+ TABLE_HEADER = 7;
+
+ // The text segment is a row in table. It will be treated as child of
+ // another TABLE TextSegment if its span is subspan of another TextSegment
+ // with type TABLE.
+ TABLE_ROW = 8;
+
+ // The text segment is a cell in table. It will be treated as child of
+ // another TABLE_ROW TextSegment if its span is subspan of another
+ // TextSegment with type TABLE_ROW.
+ TABLE_CELL = 9;
+ }
+
+ // Text Segment that represents a segment in
+ // [document_text][google.cloud.automl.v1beta1.Document.document_text].
+ TextSegment text_segment = 1;
+
+ // Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
+ // from 1.
+ int32 page_number = 2;
+
+ // The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
+ // Contains exactly 4
+ //
+ // [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices]
+ // and they are connected by edges in the order provided, which will
+ // represent a rectangle parallel to the frame. The
+ // [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are
+ // relative to the page.
+ // Coordinates are based on top-left as point (0,0).
+ BoundingPoly bounding_poly = 3;
+
+ // The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
+ TextSegmentType text_segment_type = 4;
+ }
+
+ // An input config specifying the content of the document.
+ DocumentInputConfig input_config = 1;
+
+ // The plain text version of this document.
+ TextSnippet document_text = 2;
+
+ // Describes the layout of the document.
+ // Sorted by [page_number][].
+ repeated Layout layout = 3;
+
+ // The dimensions of the page in the document.
+ DocumentDimensions document_dimensions = 4;
+
+ // Number of pages in the document.
+ int32 page_count = 5;
+}
+
+// A representation of a row in a relational table.
+message Row {
+ // The resource IDs of the column specs describing the columns of the row.
+ // If set must contain, but possibly in a different order, all input
+ // feature
+ //
+ // [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ // of the Model this row is being passed to.
+ // Note: The below `values` field must match order of this field, if this
+ // field is set.
+ repeated string column_spec_ids = 2;
+
+ // Required. The values of the row cells, given in the same order as the
+ // column_spec_ids, or, if not set, then in the same order as input
+ // feature
+ //
+ // [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ // of the Model this row is being passed to.
+ repeated google.protobuf.Value values = 3;
+}
+
+// Example data used for training or prediction.
+message ExamplePayload {
+ // Required. Input only. The example data.
+ oneof payload {
+ // Example image.
+ Image image = 1;
+
+ // Example text.
+ TextSnippet text_snippet = 2;
+
+ // Example document.
+ Document document = 4;
+
+ // Example relational table row.
+ Row row = 3;
+ }
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_stats.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_stats.proto
new file mode 100644
index 00000000000..8c2c2fe2a22
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_stats.proto
@@ -0,0 +1,165 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// The data statistics of a series of values that share the same DataType.
+message DataStats {
+ // The data statistics specific to a DataType.
+ oneof stats {
+ // The statistics for FLOAT64 DataType.
+ Float64Stats float64_stats = 3;
+
+ // The statistics for STRING DataType.
+ StringStats string_stats = 4;
+
+ // The statistics for TIMESTAMP DataType.
+ TimestampStats timestamp_stats = 5;
+
+ // The statistics for ARRAY DataType.
+ ArrayStats array_stats = 6;
+
+ // The statistics for STRUCT DataType.
+ StructStats struct_stats = 7;
+
+ // The statistics for CATEGORY DataType.
+ CategoryStats category_stats = 8;
+ }
+
+ // The number of distinct values.
+ int64 distinct_value_count = 1;
+
+ // The number of values that are null.
+ int64 null_value_count = 2;
+
+ // The number of values that are valid.
+ int64 valid_value_count = 9;
+}
+
+// The data statistics of a series of FLOAT64 values.
+message Float64Stats {
+ // A bucket of a histogram.
+ message HistogramBucket {
+ // The minimum value of the bucket, inclusive.
+ double min = 1;
+
+ // The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
+ // which case it's inclusive.
+ double max = 2;
+
+ // The number of data values that are in the bucket, i.e. are between
+ // min and max values.
+ int64 count = 3;
+ }
+
+ // The mean of the series.
+ double mean = 1;
+
+ // The standard deviation of the series.
+ double standard_deviation = 2;
+
+ // Ordered from 0 to k k-quantile values of the data series of n values.
+ // The value at index i is, approximately, the i*n/k-th smallest value in the
+ // series; for i = 0 and i = k these are, respectively, the min and max
+ // values.
+ repeated double quantiles = 3;
+
+ // Histogram buckets of the data series. Sorted by the min value of the
+ // bucket, ascendingly, and the number of the buckets is dynamically
+ // generated. The buckets are non-overlapping and completely cover whole
+ // FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+ // the last one being `"Infinity"`.
+ repeated HistogramBucket histogram_buckets = 4;
+}
+
+// The data statistics of a series of STRING values.
+message StringStats {
+ // The statistics of a unigram.
+ message UnigramStats {
+ // The unigram.
+ string value = 1;
+
+ // The number of occurrences of this unigram in the series.
+ int64 count = 2;
+ }
+
+ // The statistics of the top 20 unigrams, ordered by
+ // [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+ repeated UnigramStats top_unigram_stats = 1;
+}
+
+// The data statistics of a series of TIMESTAMP values.
+message TimestampStats {
+ // Stats split by a defined in context granularity.
+ message GranularStats {
+ // A map from granularity key to example count for that key.
+ // E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+ map buckets = 1;
+ }
+
+ // The string key is the pre-defined granularity. Currently supported:
+ // hour_of_day, day_of_week, month_of_year.
+ // Granularities finer that the granularity of timestamp data are not
+ // populated (e.g. if timestamps are at day granularity, then hour_of_day
+ // is not populated).
+ map granular_stats = 1;
+}
+
+// The data statistics of a series of ARRAY values.
+message ArrayStats {
+ // Stats of all the values of all arrays, as if they were a single long
+ // series of data. The type depends on the element type of the array.
+ DataStats member_stats = 2;
+}
+
+// The data statistics of a series of STRUCT values.
+message StructStats {
+ // Map from a field name of the struct to data stats aggregated over series
+ // of all data in that field across all the structs.
+ map field_stats = 1;
+}
+
+// The data statistics of a series of CATEGORY values.
+message CategoryStats {
+ // The statistics of a single CATEGORY value.
+ message SingleCategoryStats {
+ // The CATEGORY value.
+ string value = 1;
+
+ // The number of occurrences of this value in the series.
+ int64 count = 2;
+ }
+
+ // The statistics of the top 20 CATEGORY values, ordered by
+ //
+ // [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+ repeated SingleCategoryStats top_category_stats = 1;
+}
+
+// A correlation statistics between two series of DataType values. The series
+// may have differing DataType-s, but within a single series the DataType must
+// be the same.
+message CorrelationStats {
+ // The correlation value using the Cramer's V measure.
+ double cramers_v = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_types.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_types.proto
new file mode 100644
index 00000000000..72ac65dd340
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/data_types.proto
@@ -0,0 +1,104 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// `TypeCode` is used as a part of
+// [DataType][google.cloud.automl.v1beta1.DataType].
+enum TypeCode {
+ // Not specified. Should not be used.
+ TYPE_CODE_UNSPECIFIED = 0;
+
+ // Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
+ // `"-Infinity"`.
+ FLOAT64 = 3;
+
+ // Must be between 0AD and 9999AD. Encoded as `string` according to
+ // [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
+ // that format is not set, then in RFC 3339 `date-time` format, where
+ // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
+ TIMESTAMP = 4;
+
+ // Encoded as `string`.
+ STRING = 6;
+
+ // Encoded as `list`, where the list elements are represented according to
+ //
+ // [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
+ ARRAY = 8;
+
+ // Encoded as `struct`, where field values are represented according to
+ // [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
+ STRUCT = 9;
+
+ // Values of this type are not further understood by AutoML,
+ // e.g. AutoML is unable to tell the order of values (as it could with
+ // FLOAT64), or is unable to say if one value contains another (as it
+ // could with STRING).
+ // Encoded as `string` (bytes should be base64-encoded, as described in RFC
+ // 4648, section 4).
+ CATEGORY = 10;
+}
+
+// Indicated the type of data that can be stored in a structured data entity
+// (e.g. a table).
+message DataType {
+ // Details of DataType-s that need additional specification.
+ oneof details {
+ // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+ // then `list_element_type` is the type of the elements.
+ DataType list_element_type = 2;
+
+ // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+ // provides type information for the struct's fields.
+ StructType struct_type = 3;
+
+ // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+ // then `time_format` provides the format in which that time field is
+ // expressed. The time_format must either be one of:
+ // * `UNIX_SECONDS`
+ // * `UNIX_MILLISECONDS`
+ // * `UNIX_MICROSECONDS`
+ // * `UNIX_NANOSECONDS`
+ // (for respectively number of seconds, milliseconds, microseconds and
+ // nanoseconds since start of the Unix epoch);
+ // or be written in `strftime` syntax. If time_format is not set, then the
+ // default format as described on the type_code is used.
+ string time_format = 5;
+ }
+
+ // Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+ TypeCode type_code = 1;
+
+ // If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
+ // expressed as an empty string.
+ bool nullable = 4;
+}
+
+// `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type.
+message StructType {
+ // Unordered map of struct field names to their data types.
+ // Fields cannot be added or removed via Update. Their names and
+ // data types are still mutable.
+ map fields = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/dataset.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/dataset.proto
new file mode 100644
index 00000000000..22d7f9a6adc
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/dataset.proto
@@ -0,0 +1,95 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/image.proto";
+import "google/cloud/automl/v1beta1/tables.proto";
+import "google/cloud/automl/v1beta1/text.proto";
+import "google/cloud/automl/v1beta1/translation.proto";
+import "google/cloud/automl/v1beta1/video.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A workspace for solving a single, particular machine learning (ML) problem.
+// A workspace contains examples that may be annotated.
+message Dataset {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/Dataset"
+ pattern: "projects/{project}/locations/{location}/datasets/{dataset}"
+ };
+
+ // Required.
+ // The dataset metadata that is specific to the problem type.
+ oneof dataset_metadata {
+ // Metadata for a dataset used for translation.
+ TranslationDatasetMetadata translation_dataset_metadata = 23;
+
+ // Metadata for a dataset used for image classification.
+ ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
+
+ // Metadata for a dataset used for text classification.
+ TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
+
+ // Metadata for a dataset used for image object detection.
+ ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
+
+ // Metadata for a dataset used for video classification.
+ VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31;
+
+ // Metadata for a dataset used for video object tracking.
+ VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29;
+
+ // Metadata for a dataset used for text extraction.
+ TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
+
+ // Metadata for a dataset used for text sentiment.
+ TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
+
+ // Metadata for a dataset used for Tables.
+ TablesDatasetMetadata tables_dataset_metadata = 33;
+ }
+
+ // Output only. The resource name of the dataset.
+ // Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
+ string name = 1;
+
+ // Required. The name of the dataset to show in the interface. The name can be
+ // up to 32 characters long and can consist only of ASCII Latin letters A-Z
+ // and a-z, underscores
+ // (_), and ASCII digits 0-9.
+ string display_name = 2;
+
+ // User-provided description of the dataset. The description can be up to
+ // 25000 characters long.
+ string description = 3;
+
+ // Output only. The number of examples in the dataset.
+ int32 example_count = 21;
+
+ // Output only. Timestamp when this dataset was created.
+ google.protobuf.Timestamp create_time = 14;
+
+ // Used to perform consistent read-modify-write updates. If not set, a blind
+ // "overwrite" update happens.
+ string etag = 17;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/detection.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/detection.proto
new file mode 100644
index 00000000000..38240dd6e92
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/detection.proto
@@ -0,0 +1,134 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/geometry.proto";
+import "google/protobuf/duration.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Annotation details for image object detection.
+message ImageObjectDetectionAnnotation {
+ // Output only. The rectangle representing the object location.
+ BoundingPoly bounding_box = 1;
+
+ // Output only. The confidence that this annotation is positive for the parent example,
+ // value in [0, 1], higher means higher positivity confidence.
+ float score = 2;
+}
+
+// Annotation details for video object tracking.
+message VideoObjectTrackingAnnotation {
+ // Optional. The instance of the object, expressed as a positive integer. Used to tell
+ // apart objects of the same type (i.e. AnnotationSpec) when multiple are
+ // present on a single example.
+ // NOTE: Instance ID prediction quality is not a part of model evaluation and
+ // is done as best effort. Especially in cases when an entity goes
+ // off-screen for a longer time (minutes), when it comes back it may be given
+ // a new instance ID.
+ string instance_id = 1;
+
+ // Required. A time (frame) of a video to which this annotation pertains.
+ // Represented as the duration since the video's start.
+ google.protobuf.Duration time_offset = 2;
+
+ // Required. The rectangle representing the object location on the frame (i.e.
+ // at the time_offset of the video).
+ BoundingPoly bounding_box = 3;
+
+ // Output only. The confidence that this annotation is positive for the video at
+ // the time_offset, value in [0, 1], higher means higher positivity
+ // confidence. For annotations created by the user the score is 1. When
+ // user approves an annotation, the original float score is kept (and not
+ // changed to 1).
+ float score = 4;
+}
+
+// Bounding box matching model metrics for a single intersection-over-union
+// threshold and multiple label match confidence thresholds.
+message BoundingBoxMetricsEntry {
+ // Metrics for a single confidence threshold.
+ message ConfidenceMetricsEntry {
+ // Output only. The confidence threshold value used to compute the metrics.
+ float confidence_threshold = 1;
+
+ // Output only. Recall under the given confidence threshold.
+ float recall = 2;
+
+ // Output only. Precision under the given confidence threshold.
+ float precision = 3;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 4;
+ }
+
+ // Output only. The intersection-over-union threshold value used to compute
+ // this metrics entry.
+ float iou_threshold = 1;
+
+ // Output only. The mean average precision, most often close to au_prc.
+ float mean_average_precision = 2;
+
+ // Output only. Metrics for each label-match confidence_threshold from
+ // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+ // derived from them.
+ repeated ConfidenceMetricsEntry confidence_metrics_entries = 3;
+}
+
+// Model evaluation metrics for image object detection problems.
+// Evaluates prediction quality of labeled bounding boxes.
+message ImageObjectDetectionEvaluationMetrics {
+ // Output only. The total number of bounding boxes (i.e. summed over all
+ // images) the ground truth used to create this evaluation had.
+ int32 evaluated_bounding_box_count = 1;
+
+ // Output only. The bounding boxes match metrics for each
+ // Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+ // and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+ // pair.
+ repeated BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
+
+ // Output only. The single metric for bounding boxes evaluation:
+ // the mean_average_precision averaged over all bounding_box_metrics_entries.
+ float bounding_box_mean_average_precision = 3;
+}
+
+// Model evaluation metrics for video object tracking problems.
+// Evaluates prediction quality of both labeled bounding boxes and labeled
+// tracks (i.e. series of bounding boxes sharing same label and instance ID).
+message VideoObjectTrackingEvaluationMetrics {
+ // Output only. The number of video frames used to create this evaluation.
+ int32 evaluated_frame_count = 1;
+
+ // Output only. The total number of bounding boxes (i.e. summed over all
+ // frames) the ground truth used to create this evaluation had.
+ int32 evaluated_bounding_box_count = 2;
+
+ // Output only. The bounding boxes match metrics for each
+ // Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+ // and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+ // pair.
+ repeated BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
+
+ // Output only. The single metric for bounding boxes evaluation:
+ // the mean_average_precision averaged over all bounding_box_metrics_entries.
+ float bounding_box_mean_average_precision = 6;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/geometry.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/geometry.proto
new file mode 100644
index 00000000000..067ac00aaad
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/geometry.proto
@@ -0,0 +1,45 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A vertex represents a 2D point in the image.
+// The normalized vertex coordinates are between 0 to 1 fractions relative to
+// the original plane (image, video). E.g. if the plane (e.g. whole image) would
+// have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
+// be at the position (1, 6) on that plane.
+message NormalizedVertex {
+ // Required. Horizontal coordinate.
+ float x = 1;
+
+ // Required. Vertical coordinate.
+ float y = 2;
+}
+
+// A bounding polygon of a detected object on a plane.
+// On output both vertices and normalized_vertices are provided.
+// The polygon is formed by connecting vertices in the order they are listed.
+message BoundingPoly {
+ // Output only . The bounding polygon normalized vertices.
+ repeated NormalizedVertex normalized_vertices = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/image.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/image.proto
new file mode 100644
index 00000000000..56401228e85
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/image.proto
@@ -0,0 +1,190 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/annotation_spec.proto";
+import "google/cloud/automl/v1beta1/classification.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "ImageProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Dataset metadata that is specific to image classification.
+message ImageClassificationDatasetMetadata {
+ // Required. Type of the classification problem.
+ ClassificationType classification_type = 1;
+}
+
+// Dataset metadata specific to image object detection.
+message ImageObjectDetectionDatasetMetadata {
+
+}
+
+// Model metadata for image classification.
+message ImageClassificationModelMetadata {
+ // Optional. The ID of the `base` model. If it is specified, the new model
+ // will be created based on the `base` model. Otherwise, the new model will be
+ // 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;
+
+ // Required. The train budget of creating this model, expressed in hours. The
+ // actual `train_cost` will be equal or less than this value.
+ int64 train_budget = 2;
+
+ // Output only. The actual train cost of creating this model, expressed in
+ // hours. If this model is created from a `base` model, the train cost used
+ // to create the `base` model are not included.
+ int64 train_cost = 3;
+
+ // Output only. The reason that this create model operation stopped,
+ // e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
+ string stop_reason = 5;
+
+ // Optional. Type of the model. The available values are:
+ // * `cloud` - Model to be used via prediction calls to AutoML API.
+ // This is the default value.
+ // * `mobile-low-latency-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have low latency, but
+ // may have lower prediction quality than other models.
+ // * `mobile-versatile-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards.
+ // * `mobile-high-accuracy-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have a higher
+ // latency, but should also have a higher prediction quality
+ // than other models.
+ // * `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+ // ML afterwards. Expected to have low latency, but may have
+ // lower prediction quality than other models.
+ // * `mobile-core-ml-versatile-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+ // ML afterwards.
+ // * `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+ // providing prediction via AutoML API, can also be exported
+ // (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+ // Core ML afterwards. Expected to have a higher latency, but
+ // should also have a higher prediction quality than other
+ // models.
+ string model_type = 7;
+
+ // 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;
+
+ // 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;
+}
+
+// Model metadata specific to image object detection.
+message ImageObjectDetectionModelMetadata {
+ // Optional. Type of the model. The available values are:
+ // * `cloud-high-accuracy-1` - (default) A model to be used via prediction
+ // calls to AutoML API. Expected to have a higher latency, but
+ // should also have a higher prediction quality than other
+ // models.
+ // * `cloud-low-latency-1` - A model to be used via prediction
+ // calls to AutoML API. Expected to have low latency, but may
+ // have lower prediction quality than other models.
+ // * `mobile-low-latency-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have low latency, but
+ // may have lower prediction quality than other models.
+ // * `mobile-versatile-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards.
+ // * `mobile-high-accuracy-1` - A model that, in addition to providing
+ // prediction via AutoML API, can also be exported (see
+ // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+ // with TensorFlow afterwards. Expected to have a higher
+ // latency, but should also have a higher prediction quality
+ // than other models.
+ string model_type = 1;
+
+ // 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;
+
+ // 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;
+
+ // Output only. The reason that this create model operation stopped,
+ // e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
+ string stop_reason = 5;
+
+ // 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
+ // full budget and the stop_reason will be `MODEL_CONVERGED`.
+ // Note, node_hour = actual_hour * number_of_nodes_invovled.
+ // For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`,
+ // the train budget must be between 20,000 and 900,000 milli node hours,
+ // inclusive. The default value is 216, 000 which represents one day in
+ // wall time.
+ // For model type `mobile-low-latency-1`, `mobile-versatile-1`,
+ // `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`,
+ // `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;
+
+ // 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;
+}
+
+// Model deployment metadata specific to Image Classification.
+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.v1beta1.ImageClassificationModelMetadata.node_qps].
+ // Must be between 1 and 100, inclusive on both ends.
+ int64 node_count = 1;
+}
+
+// Model deployment metadata specific to Image Object Detection.
+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.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
+ // Must be between 1 and 100, inclusive on both ends.
+ int64 node_count = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/io.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/io.proto
new file mode 100644
index 00000000000..04808d74acb
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/io.proto
@@ -0,0 +1,1157 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Input configuration for ImportData Action.
+//
+// The format of input depends on dataset_metadata the Dataset into which
+// the import is happening has. As input source the
+// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source]
+// is expected, unless specified otherwise. Additionally any input .CSV file
+// by itself must be 100MB or smaller, unless specified otherwise.
+// If an "example" file (that is, image, video etc.) with identical content
+// (even if it had different GCS_FILE_PATH) is mentioned multiple times, then
+// its label, bounding boxes etc. are appended. The same file should be always
+// provided with the same ML_USE and GCS_FILE_PATH, if it is not, then
+// these values are nondeterministically selected from the given ones.
+//
+// The formats are represented in EBNF with commas being literal and with
+// non-terminal symbols defined near the end of this comment. The formats are:
+//
+// * For Image Classification:
+// CSV file(s) with each line in format:
+// ML_USE,GCS_FILE_PATH,LABEL,LABEL,...
+// GCS_FILE_PATH leads to image of up to 30MB in size. Supported
+// extensions: .JPEG, .GIF, .PNG, .WEBP, .BMP, .TIFF, .ICO
+// For MULTICLASS classification type, at most one LABEL is allowed
+// per image. If an image has not yet been labeled, then it should be
+// mentioned just once with no LABEL.
+// Some sample rows:
+// TRAIN,gs://folder/image1.jpg,daisy
+// TEST,gs://folder/image2.jpg,dandelion,tulip,rose
+// UNASSIGNED,gs://folder/image3.jpg,daisy
+// UNASSIGNED,gs://folder/image4.jpg
+//
+// * For Image Object Detection:
+// CSV file(s) with each line in format:
+// ML_USE,GCS_FILE_PATH,(LABEL,BOUNDING_BOX | ,,,,,,,)
+// GCS_FILE_PATH leads to image of up to 30MB in size. Supported
+// extensions: .JPEG, .GIF, .PNG.
+// Each image is assumed to be exhaustively labeled. The minimum
+// allowed BOUNDING_BOX edge length is 0.01, and no more than 500
+// BOUNDING_BOX-es per image are allowed (one BOUNDING_BOX is defined
+// per line). If an image has not yet been labeled, then it should be
+// mentioned just once with no LABEL and the ",,,,,,," in place of the
+// BOUNDING_BOX. For images which are known to not contain any
+// bounding boxes, they should be labelled explictly as
+// "NEGATIVE_IMAGE", followed by ",,,,,,," in place of the
+// BOUNDING_BOX.
+// Sample rows:
+// TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,,
+// TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,,
+// UNASSIGNED,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3
+// TEST,gs://folder/im3.png,,,,,,,,,
+// TRAIN,gs://folder/im4.png,NEGATIVE_IMAGE,,,,,,,,,
+//
+// * For Video Classification:
+// CSV file(s) with each line in format:
+// ML_USE,GCS_FILE_PATH
+// where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH
+// should lead to another .csv file which describes examples that have
+// given ML_USE, using the following row format:
+// GCS_FILE_PATH,(LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END | ,,)
+// Here GCS_FILE_PATH leads to a video of up to 50GB in size and up
+// to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+// TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+// length of the video, and end has to be after the start. Any segment
+// of a video which has one or more labels on it, is considered a
+// hard negative for all other labels. Any segment with no labels on
+// it is considered to be unknown. If a whole video is unknown, then
+// it shuold be mentioned just once with ",," in place of LABEL,
+// TIME_SEGMENT_START,TIME_SEGMENT_END.
+// Sample top level CSV file:
+// TRAIN,gs://folder/train_videos.csv
+// TEST,gs://folder/test_videos.csv
+// UNASSIGNED,gs://folder/other_videos.csv
+// Sample rows of a CSV file for a particular ML_USE:
+// gs://folder/video1.avi,car,120,180.000021
+// gs://folder/video1.avi,bike,150,180.000021
+// gs://folder/vid2.avi,car,0,60.5
+// gs://folder/vid3.avi,,,
+//
+// * For Video Object Tracking:
+// CSV file(s) with each line in format:
+// ML_USE,GCS_FILE_PATH
+// where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH
+// should lead to another .csv file which describes examples that have
+// given ML_USE, using one of the following row format:
+// GCS_FILE_PATH,LABEL,[INSTANCE_ID],TIMESTAMP,BOUNDING_BOX
+// or
+// GCS_FILE_PATH,,,,,,,,,,
+// Here GCS_FILE_PATH leads to a video of up to 50GB in size and up
+// to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+// Providing INSTANCE_IDs can help to obtain a better model. When
+// a specific labeled entity leaves the video frame, and shows up
+// afterwards it is not required, albeit preferable, that the same
+// INSTANCE_ID is given to it.
+// TIMESTAMP must be within the length of the video, the
+// BOUNDING_BOX is assumed to be drawn on the closest video's frame
+// to the TIMESTAMP. Any mentioned by the TIMESTAMP frame is expected
+// to be exhaustively labeled and no more than 500 BOUNDING_BOX-es per
+// frame are allowed. If a whole video is unknown, then it should be
+// mentioned just once with ",,,,,,,,,," in place of LABEL,
+// [INSTANCE_ID],TIMESTAMP,BOUNDING_BOX.
+// Sample top level CSV file:
+// TRAIN,gs://folder/train_videos.csv
+// TEST,gs://folder/test_videos.csv
+// UNASSIGNED,gs://folder/other_videos.csv
+// Seven sample rows of a CSV file for a particular ML_USE:
+// gs://folder/video1.avi,car,1,12.10,0.8,0.8,0.9,0.8,0.9,0.9,0.8,0.9
+// gs://folder/video1.avi,car,1,12.90,0.4,0.8,0.5,0.8,0.5,0.9,0.4,0.9
+// gs://folder/video1.avi,car,2,12.10,.4,.2,.5,.2,.5,.3,.4,.3
+// gs://folder/video1.avi,car,2,12.90,.8,.2,,,.9,.3,,
+// gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,,
+// gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,,
+// gs://folder/video2.avi,,,,,,,,,,,
+// * For Text Extraction:
+// CSV file(s) with each line in format:
+// ML_USE,GCS_FILE_PATH
+// GCS_FILE_PATH leads to a .JSONL (that is, JSON Lines) file which
+// either imports text in-line or as documents. Any given
+// .JSONL file must be 100MB or smaller.
+// The in-line .JSONL file contains, per line, a proto that wraps a
+// TextSnippet proto (in json representation) followed by one or more
+// AnnotationPayload protos (called annotations), which have
+// display_name and text_extraction detail populated. The given text
+// is expected to be annotated exhaustively, for example, if you look
+// for animals and text contains "dolphin" that is not labeled, then
+// "dolphin" is assumed to not be an animal. Any given text snippet
+// content must be 10KB or smaller, and also be UTF-8 NFC encoded
+// (ASCII already is).
+// The document .JSONL file contains, per line, a proto that wraps a
+// Document proto. The Document proto must have either document_text
+// or input_config set. In document_text case, the Document proto may
+// also contain the spatial information of the document, including
+// layout, document dimension and page number. In input_config case,
+// only PDF documents are supported now, and each document may be up
+// to 2MB large. Currently, annotations on documents cannot be
+// specified at import.
+// Three sample CSV rows:
+// TRAIN,gs://folder/file1.jsonl
+// VALIDATE,gs://folder/file2.jsonl
+// TEST,gs://folder/file3.jsonl
+// Sample in-line JSON Lines file for entity extraction (presented here
+// with artificial line breaks, but the only actual line break is
+// denoted by \n).:
+// {
+// "document": {
+// "document_text": {"content": "dog cat"}
+// "layout": [
+// {
+// "text_segment": {
+// "start_offset": 0,
+// "end_offset": 3,
+// },
+// "page_number": 1,
+// "bounding_poly": {
+// "normalized_vertices": [
+// {"x": 0.1, "y": 0.1},
+// {"x": 0.1, "y": 0.3},
+// {"x": 0.3, "y": 0.3},
+// {"x": 0.3, "y": 0.1},
+// ],
+// },
+// "text_segment_type": TOKEN,
+// },
+// {
+// "text_segment": {
+// "start_offset": 4,
+// "end_offset": 7,
+// },
+// "page_number": 1,
+// "bounding_poly": {
+// "normalized_vertices": [
+// {"x": 0.4, "y": 0.1},
+// {"x": 0.4, "y": 0.3},
+// {"x": 0.8, "y": 0.3},
+// {"x": 0.8, "y": 0.1},
+// ],
+// },
+// "text_segment_type": TOKEN,
+// }
+//
+// ],
+// "document_dimensions": {
+// "width": 8.27,
+// "height": 11.69,
+// "unit": INCH,
+// }
+// "page_count": 1,
+// },
+// "annotations": [
+// {
+// "display_name": "animal",
+// "text_extraction": {"text_segment": {"start_offset": 0,
+// "end_offset": 3}}
+// },
+// {
+// "display_name": "animal",
+// "text_extraction": {"text_segment": {"start_offset": 4,
+// "end_offset": 7}}
+// }
+// ],
+// }\n
+// {
+// "text_snippet": {
+// "content": "This dog is good."
+// },
+// "annotations": [
+// {
+// "display_name": "animal",
+// "text_extraction": {
+// "text_segment": {"start_offset": 5, "end_offset": 8}
+// }
+// }
+// ]
+// }
+// Sample document JSON Lines file (presented here with artificial line
+// breaks, but the only actual line break is denoted by \n).:
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+// }
+// }
+// }
+// }\n
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ]
+// }
+// }
+// }
+// }
+//
+// * For Text Classification:
+// CSV file(s) with each line in format:
+// ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),LABEL,LABEL,...
+// TEXT_SNIPPET and GCS_FILE_PATH are distinguished by a pattern. If
+// the column content is a valid gcs file path, i.e. prefixed by
+// "gs://", it will be treated as a GCS_FILE_PATH, else if the content
+// is enclosed within double quotes (""), it is
+// treated as a TEXT_SNIPPET. In the GCS_FILE_PATH case, the path
+// must lead to a .txt file with UTF-8 encoding, for example,
+// "gs://folder/content.txt", and the content in it is extracted
+// as a text snippet. In TEXT_SNIPPET case, the column content
+// excluding quotes is treated as to be imported text snippet. In
+// both cases, the text snippet/file size must be within 128kB.
+// Maximum 100 unique labels are allowed per CSV row.
+// Sample rows:
+// TRAIN,"They have bad food and very rude",RudeService,BadFood
+// TRAIN,gs://folder/content.txt,SlowService
+// TEST,"Typically always bad service there.",RudeService
+// VALIDATE,"Stomach ache to go.",BadFood
+//
+// * For Text Sentiment:
+// CSV file(s) with each line in format:
+// ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),SENTIMENT
+// TEXT_SNIPPET and GCS_FILE_PATH are distinguished by a pattern. If
+// the column content is a valid gcs file path, that is, prefixed by
+// "gs://", it is treated as a GCS_FILE_PATH, otherwise it is treated
+// as a TEXT_SNIPPET. In the GCS_FILE_PATH case, the path
+// must lead to a .txt file with UTF-8 encoding, for example,
+// "gs://folder/content.txt", and the content in it is extracted
+// as a text snippet. In TEXT_SNIPPET case, the column content itself
+// is treated as to be imported text snippet. In both cases, the
+// text snippet must be up to 500 characters long.
+// Sample rows:
+// TRAIN,"@freewrytin this is way too good for your product",2
+// TRAIN,"I need this product so bad",3
+// TEST,"Thank you for this product.",4
+// VALIDATE,gs://folder/content.txt,2
+//
+// * For Tables:
+// Either
+// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or
+//
+// [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source]
+// can be used. All inputs is concatenated into a single
+//
+// [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_name]
+// For gcs_source:
+// CSV file(s), where the first row of the first file is the header,
+// containing unique column names. If the first row of a subsequent
+// file is the same as the header, then it is also treated as a
+// header. All other rows contain values for the corresponding
+// columns.
+// Each .CSV file by itself must be 10GB or smaller, and their total
+// size must be 100GB or smaller.
+// 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:
+// An URI of a BigQuery table. The user data size of the BigQuery
+// table must be 100GB or smaller.
+// An imported table must have between 2 and 1,000 columns, inclusive,
+// and between 1000 and 100,000,000 rows, inclusive. There are at most 5
+// import data running in parallel.
+// Definitions:
+// ML_USE = "TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED"
+// Describes how the given example (file) should be used for model
+// training. "UNASSIGNED" can be used when user has no preference.
+// GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/image1.png".
+// LABEL = A display name of an object on an image, video etc., e.g. "dog".
+// Must be up to 32 characters long and can consist only of ASCII
+// Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9.
+// For each label an AnnotationSpec is created which display_name
+// becomes the label; AnnotationSpecs are given back in predictions.
+// INSTANCE_ID = A positive integer that identifies a specific instance of a
+// labeled entity on an example. Used e.g. to track two cars on
+// a video while being able to tell apart which one is which.
+// BOUNDING_BOX = VERTEX,VERTEX,VERTEX,VERTEX | VERTEX,,,VERTEX,,
+// A rectangle parallel to the frame of the example (image,
+// video). If 4 vertices are given they are connected by edges
+// in the order provided, if 2 are given they are recognized
+// as diagonally opposite vertices of the rectangle.
+// VERTEX = COORDINATE,COORDINATE
+// First coordinate is horizontal (x), the second is vertical (y).
+// COORDINATE = A float in 0 to 1 range, relative to total length of
+// image or video in given dimension. For fractions the
+// leading non-decimal 0 can be omitted (i.e. 0.3 = .3).
+// Point 0,0 is in top left.
+// TIME_SEGMENT_START = TIME_OFFSET
+// Expresses a beginning, inclusive, of a time segment
+// within an example that has a time dimension
+// (e.g. video).
+// TIME_SEGMENT_END = TIME_OFFSET
+// Expresses an end, exclusive, of a time segment within
+// an example that has a time dimension (e.g. video).
+// TIME_OFFSET = A number of seconds as measured from the start of an
+// example (e.g. video). Fractions are allowed, up to a
+// microsecond precision. "inf" is allowed, and it means the end
+// of the example.
+// TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded, enclosed within
+// double quotes ("").
+// SENTIMENT = An integer between 0 and
+// Dataset.text_sentiment_dataset_metadata.sentiment_max
+// (inclusive). Describes the ordinal of the sentiment - higher
+// value means a more positive sentiment. All the values are
+// completely relative, i.e. neither 0 needs to mean a negative or
+// neutral sentiment nor sentiment_max needs to mean a positive one
+// - it is just required that 0 is the least positive sentiment
+// in the data, and sentiment_max is the most positive one.
+// The SENTIMENT shouldn't be confused with "score" or "magnitude"
+// from the previous Natural Language Sentiment Analysis API.
+// All SENTIMENT values between 0 and sentiment_max must be
+// represented in the imported data. On prediction the same 0 to
+// sentiment_max range will be used. The difference between
+// neighboring sentiment values needs not to be uniform, e.g. 1 and
+// 2 may be similar whereas the difference between 2 and 3 may be
+// huge.
+//
+// Errors:
+// If any of the provided CSV files can't be parsed or if more than certain
+// percent of CSV rows cannot be processed then the operation fails and
+// nothing is imported. Regardless of overall success or failure the per-row
+// failures, up to a certain count cap, is listed in
+// Operation.metadata.partial_failures.
+//
+message InputConfig {
+ // The source of the input.
+ oneof source {
+ // The Google Cloud Storage location for the input content.
+ // In ImportData, the gcs_source points to a csv with structure described in
+ // the comment.
+ GcsSource gcs_source = 1;
+
+ // The BigQuery location for the input content.
+ BigQuerySource bigquery_source = 3;
+ }
+
+ // Additional domain-specific parameters describing the semantic of the
+ // imported data, any string must be up to 25000
+ // characters long.
+ //
+ // * For Tables:
+ // `schema_inference_version` - (integer) Required. The version of the
+ // algorithm that should be used for the initial inference of the
+ // schema (columns' DataTypes) of the table the data is being imported
+ // into. Allowed values: "1".
+ map params = 2;
+}
+
+// Input configuration for BatchPredict Action.
+//
+// The format of input depends on the ML problem of the model used for
+// prediction. As input source the
+// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source]
+// is expected, unless specified otherwise.
+//
+// The formats are represented in EBNF with commas being literal and with
+// non-terminal symbols defined near the end of this comment. The formats
+// are:
+//
+// * For Image Classification:
+// CSV file(s) with each line having just a single column:
+// GCS_FILE_PATH
+// which leads to image of up to 30MB in size. Supported
+// extensions: .JPEG, .GIF, .PNG. This path is treated as the ID in
+// the Batch predict output.
+// Three sample rows:
+// gs://folder/image1.jpeg
+// gs://folder/image2.gif
+// gs://folder/image3.png
+//
+// * For Image Object Detection:
+// CSV file(s) with each line having just a single column:
+// GCS_FILE_PATH
+// which leads to image of up to 30MB in size. Supported
+// extensions: .JPEG, .GIF, .PNG. This path is treated as the ID in
+// the Batch predict output.
+// Three sample rows:
+// gs://folder/image1.jpeg
+// gs://folder/image2.gif
+// gs://folder/image3.png
+// * For Video Classification:
+// CSV file(s) with each line in format:
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END
+// GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h
+// duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+// TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+// length of the video, and end has to be after the start.
+// Three sample rows:
+// gs://folder/video1.mp4,10,40
+// gs://folder/video1.mp4,20,60
+// gs://folder/vid2.mov,0,inf
+//
+// * For Video Object Tracking:
+// CSV file(s) with each line in format:
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END
+// GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h
+// duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+// TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+// length of the video, and end has to be after the start.
+// Three sample rows:
+// gs://folder/video1.mp4,10,240
+// gs://folder/video1.mp4,300,360
+// gs://folder/vid2.mov,0,inf
+// * For Text Classification:
+// CSV file(s) with each line having just a single column:
+// GCS_FILE_PATH | TEXT_SNIPPET
+// Any given text file can have size upto 128kB.
+// Any given text snippet content must have 60,000 characters or less.
+// Three sample rows:
+// gs://folder/text1.txt
+// "Some text content to predict"
+// gs://folder/text3.pdf
+// Supported file extensions: .txt, .pdf
+//
+// * For Text Sentiment:
+// CSV file(s) with each line having just a single column:
+// GCS_FILE_PATH | TEXT_SNIPPET
+// Any given text file can have size upto 128kB.
+// Any given text snippet content must have 500 characters or less.
+// Three sample rows:
+// gs://folder/text1.txt
+// "Some text content to predict"
+// gs://folder/text3.pdf
+// Supported file extensions: .txt, .pdf
+//
+// * For Text Extraction
+// .JSONL (i.e. JSON Lines) file(s) which either provide text in-line or
+// as documents (for a single BatchPredict call only one of the these
+// formats may be used).
+// The in-line .JSONL file(s) contain per line a proto that
+// wraps a temporary user-assigned TextSnippet ID (string up to 2000
+// characters long) called "id", a TextSnippet proto (in
+// json representation) and zero or more TextFeature protos. Any given
+// text snippet content must have 30,000 characters or less, and also
+// be UTF-8 NFC encoded (ASCII already is). The IDs provided should be
+// unique.
+// The document .JSONL file(s) contain, per line, a proto that wraps a
+// Document proto with input_config set. Only PDF documents are
+// supported now, and each document must be up to 2MB large.
+// Any given .JSONL file must be 100MB or smaller, and no more than 20
+// files may be given.
+// Sample in-line JSON Lines file (presented here with artificial line
+// breaks, but the only actual line break is denoted by \n):
+// {
+// "id": "my_first_id",
+// "text_snippet": { "content": "dog car cat"},
+// "text_features": [
+// {
+// "text_segment": {"start_offset": 4, "end_offset": 6},
+// "structural_type": PARAGRAPH,
+// "bounding_poly": {
+// "normalized_vertices": [
+// {"x": 0.1, "y": 0.1},
+// {"x": 0.1, "y": 0.3},
+// {"x": 0.3, "y": 0.3},
+// {"x": 0.3, "y": 0.1},
+// ]
+// },
+// }
+// ],
+// }\n
+// {
+// "id": "2",
+// "text_snippet": {
+// "content": "An elaborate content",
+// "mime_type": "text/plain"
+// }
+// }
+// Sample document JSON Lines file (presented here with artificial line
+// breaks, but the only actual line break is denoted by \n).:
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+// }
+// }
+// }
+// }\n
+// {
+// "document": {
+// "input_config": {
+// "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ]
+// }
+// }
+// }
+// }
+//
+// * For Tables:
+// Either
+// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or
+//
+// [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source].
+// GCS case:
+// CSV file(s), each by itself 10GB or smaller and total size must be
+// 100GB or smaller, where first file must have a header containing
+// column names. If the first row of a subsequent file is the same as
+// the header, then it is also treated as a header. All other rows
+// contain values for the corresponding columns.
+// The column names must contain the model's
+//
+// [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+//
+// [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+// (order doesn't matter). The columns corresponding to the model's
+// input feature column specs must contain values compatible with the
+// column spec's data types. Prediction on all the rows, i.e. the CSV
+// lines, will be attempted. For FORECASTING
+//
+// [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]:
+// all columns having
+//
+// [TIME_SERIES_AVAILABLE_PAST_ONLY][google.cloud.automl.v1beta1.ColumnSpec.ForecastingMetadata.ColumnType]
+// type will be ignored.
+// First three sample rows of 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"}]}
+// BigQuery case:
+// An URI of a BigQuery table. The user data size of the BigQuery
+// table must be 100GB or smaller.
+// The column names must contain the model's
+//
+// [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+//
+// [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+// (order doesn't matter). The columns corresponding to the model's
+// input feature column specs must contain values compatible with the
+// column spec's data types. Prediction on all the rows of the table
+// will be attempted. For FORECASTING
+//
+// [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]:
+// all columns having
+//
+// [TIME_SERIES_AVAILABLE_PAST_ONLY][google.cloud.automl.v1beta1.ColumnSpec.ForecastingMetadata.ColumnType]
+// type will be ignored.
+//
+// Definitions:
+// GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/video.avi".
+// TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded, enclosed within
+// double quotes ("")
+// TIME_SEGMENT_START = TIME_OFFSET
+// Expresses a beginning, inclusive, of a time segment
+// within an
+// example that has a time dimension (e.g. video).
+// TIME_SEGMENT_END = TIME_OFFSET
+// Expresses an end, exclusive, of a time segment within
+// an example that has a time dimension (e.g. video).
+// TIME_OFFSET = A number of seconds as measured from the start of an
+// example (e.g. video). Fractions are allowed, up to a
+// microsecond precision. "inf" is allowed and it means the end
+// of the example.
+//
+// Errors:
+// If any of the provided CSV files can't be parsed or if more than certain
+// percent of CSV rows cannot be processed then the operation fails and
+// prediction does not happen. Regardless of overall success or failure the
+// per-row failures, up to a certain count cap, will be listed in
+// Operation.metadata.partial_failures.
+message BatchPredictInputConfig {
+ // Required. The source of the input.
+ oneof source {
+ // The Google Cloud Storage location for the input content.
+ GcsSource gcs_source = 1;
+
+ // The BigQuery location for the input content.
+ BigQuerySource bigquery_source = 2;
+ }
+}
+
+// Input configuration of a [Document][google.cloud.automl.v1beta1.Document].
+message DocumentInputConfig {
+ // The Google Cloud Storage location of the document file. Only a single path
+ // should be given.
+ // Max supported size: 512MB.
+ // Supported extensions: .PDF.
+ GcsSource gcs_source = 1;
+}
+
+// * For Translation:
+// CSV file `translation.csv`, with each line in format:
+// ML_USE,GCS_FILE_PATH
+// GCS_FILE_PATH leads to a .TSV file which describes examples that have
+// given ML_USE, using the following row format per line:
+// TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target
+// language)
+//
+// * For Tables:
+// Output depends on whether the dataset was imported from GCS or
+// BigQuery.
+// GCS case:
+//
+// [gcs_destination][google.cloud.automl.v1beta1.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.v1beta1.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__`
+// where will be made
+// BigQuery-dataset-name compatible (e.g. most special characters will
+// become underscores), and timestamp will be in
+// YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that
+// dataset a new table called `primary_table` will be created, and
+// filled with precisely the same data as this obtained on import.
+message OutputConfig {
+ // Required. The destination of the output.
+ oneof destination {
+ // The Google Cloud Storage location where the output is to be written to.
+ // For Image Object Detection, Text Extraction, Video Classification and
+ // Tables, in the given directory a new directory will be created with name:
+ // export_data-- where
+ // timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
+ // output will be written into that directory.
+ GcsDestination gcs_destination = 1;
+
+ // The BigQuery location where the output is to be written to.
+ BigQueryDestination bigquery_destination = 2;
+ }
+}
+
+// Output configuration for BatchPredict Action.
+//
+// As destination the
+//
+// [gcs_destination][google.cloud.automl.v1beta1.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
+// will be
+// "prediction--",
+// where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents
+// of it depends on the ML problem the predictions are made for.
+//
+// * For Image Classification:
+// In the created directory files `image_classification_1.jsonl`,
+// `image_classification_2.jsonl`,...,`image_classification_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of the successfully predicted images and annotations.
+// A single image will be listed only once with all its annotations,
+// and its annotations will never be split across files.
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps image's "ID" : "" followed by a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have classification detail populated.
+// If prediction for any image failed (partially or completely), then an
+// additional `errors_1.jsonl`, `errors_2.jsonl`,..., `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 the same "ID" : "" but here followed by
+// exactly one
+//
+// [`google.rpc.Status`](https:
+// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// containing only `code` and `message`fields.
+//
+// * For Image Object Detection:
+// In the created directory files `image_object_detection_1.jsonl`,
+// `image_object_detection_2.jsonl`,...,`image_object_detection_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of the successfully predicted images and annotations.
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps image's "ID" : "" followed by a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have image_object_detection detail populated. A single image will
+// be listed only once with all its annotations, and its annotations
+// will never be split across files.
+// If prediction for any image failed (partially or completely), then
+// additional `errors_1.jsonl`, `errors_2.jsonl`,..., `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 the same "ID" : "" but here followed by
+// exactly one
+//
+// [`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
+// file per each video classification requested in the input (i.e. each
+// 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
+// where:
+// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1
+// the prediction input lines (i.e. video_classification.csv has
+// precisely the same number of lines as the prediction input had.)
+// JSON_FILE_NAME = Name of .JSON file in the output directory, which
+// contains prediction responses for the video time segment.
+// STATUS = "OK" if prediction completed successfully, or an error code
+// with message otherwise. If STATUS is not "OK" then the .JSON file
+// for that line may not exist or be empty.
+//
+// Each .JSON file, assuming STATUS is "OK", will contain a list of
+// AnnotationPayload protos in JSON format, which are the predictions
+// for the video time segment the file is assigned to in the
+// video_classification.csv. All AnnotationPayload protos will have
+// video_classification field set, and will be sorted by
+// video_classification.type field (note that the returned types are
+// governed by `classifaction_types` parameter in
+// [PredictService.BatchPredictRequest.params][]).
+//
+// * For Video Object Tracking:
+// In the created directory a video_object_tracking.csv file will be
+// created, and multiple files video_object_trackinng_1.json,
+// video_object_trackinng_2.json,..., video_object_trackinng_N.json,
+// where N is the number of requests in the input (i.e. the number of
+// 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
+// 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
+// precisely the same number of lines as the prediction input had.)
+// JSON_FILE_NAME = Name of .JSON file in the output directory, which
+// contains prediction responses for the video time segment.
+// STATUS = "OK" if prediction completed successfully, or an error
+// code with message otherwise. If STATUS is not "OK" then the .JSON
+// file for that line may not exist or be empty.
+//
+// Each .JSON file, assuming STATUS is "OK", will contain a list of
+// AnnotationPayload protos in JSON format, which are the predictions
+// for each frame of the video time segment the file is assigned to in
+// video_object_tracking.csv. All AnnotationPayload protos will have
+// video_object_tracking field set.
+// * For Text Classification:
+// In the created directory files `text_classification_1.jsonl`,
+// `text_classification_2.jsonl`,...,`text_classification_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of inputs and annotations found.
+//
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps input text snippet or input text file and a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have classification detail populated. A single text snippet or file
+// will be listed only once with all its annotations, and its
+// annotations will never be split across files.
+//
+// If prediction for any text snippet or file failed (partially or
+// completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+// `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 text snippet or input text file followed by
+// exactly one
+//
+// [`google.rpc.Status`](https:
+// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// containing only `code` and `message`.
+//
+// * For Text Sentiment:
+// In the created directory files `text_sentiment_1.jsonl`,
+// `text_sentiment_2.jsonl`,...,`text_sentiment_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of inputs and annotations found.
+//
+// Each .JSONL file will contain, per line, a JSON representation of a
+// proto that wraps input text snippet or input text file and a list of
+// zero or more AnnotationPayload protos (called annotations), which
+// have text_sentiment detail populated. A single text snippet or file
+// will be listed only once with all its annotations, and its
+// annotations will never be split across files.
+//
+// If prediction for any text snippet or file failed (partially or
+// completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+// `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 text snippet or input text file followed by
+// exactly one
+//
+// [`google.rpc.Status`](https:
+// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+// containing only `code` and `message`.
+//
+// * For Text Extraction:
+// In the created directory files `text_extraction_1.jsonl`,
+// `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl`
+// will be created, where N may be 1, and depends on the
+// total number of inputs and annotations found.
+// The contents of these .JSONL file(s) depend on whether the input
+// used inline text, or documents.
+// If input was inline, then each .JSONL file will contain, per line,
+// a JSON representation of a proto that wraps given in request text
+// snippet's "id" (if specified), followed by input text snippet,
+// and a list of zero or more
+// AnnotationPayload protos (called annotations), which have
+// text_extraction detail populated. A single text snippet will be
+// listed only once with all its annotations, and its annotations will
+// never be split across files.
+// If input used documents, then each .JSONL file will contain, per
+// line, a JSON representation of a proto that wraps given in request
+// document proto, followed by its OCR-ed representation in the form
+// of a text snippet, finally followed by a list of zero or more
+// AnnotationPayload protos (called annotations), which have
+// text_extraction detail populated and refer, via their indices, to
+// the OCR-ed text snippet. A single document (and its text snippet)
+// will be listed only once with all its annotations, and its
+// annotations will never be split across files.
+// If prediction for any text snippet failed (partially or completely),
+// then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+// `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 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)
+// containing only `code` and `message`.
+//
+// * For Tables:
+// Output depends on whether
+//
+// [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination]
+// or
+//
+// [bigquery_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.bigquery_destination]
+// is set (either is allowed).
+// GCS 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.v1beta1.TablesModelMetadata.prediction_type]:
+// Each .csv file will contain a header, listing all columns'
+//
+// [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+// given on input followed by M target column names in the format of
+//
+// "<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+//
+// [display_name][google.cloud.automl.v1beta1.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
+// respective values of successfully predicted rows, with the last,
+// i.e. the target, columns having the corresponding prediction
+// [scores][google.cloud.automl.v1beta1.TablesAnnotation.score].
+// For REGRESSION and FORECASTING
+//
+// [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]:
+// Each .csv file will contain a header, listing all columns'
+// [display_name-s][google.cloud.automl.v1beta1.display_name] given
+// on input followed by the predicted target column with name in the
+// format of
+//
+// "predicted_<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+//
+// [display_name][google.cloud.automl.v1beta1.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.
+// If prediction for any rows failed, then an additional
+// `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be
+// 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)
+// represented as a JSON string, and containing only `code` and
+// `message`.
+// BigQuery case:
+//
+// [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+// pointing to a BigQuery project must be set. In the given project a
+// new dataset will be created with name
+// `prediction__`
+// where will be made
+// BigQuery-dataset-name compatible (e.g. most special characters will
+// become underscores), and timestamp will be in
+// 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.v1beta1.ColumnSpec.display_name]
+// followed by the target column with name in the format of
+//
+// "predicted_<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+//
+// [display_name][google.cloud.automl.v1beta1.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.v1beta1.AnnotationPayload],
+// represented as STRUCT-s, containing
+// [TablesAnnotation][google.cloud.automl.v1beta1.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.v1beta1.TablesModelMetadata.target_column_spec]
+//
+// [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>",
+// and as a value has
+//
+// [`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 {
+ // Required. The destination of the output.
+ oneof destination {
+ // The Google Cloud Storage location of the directory where the output is to
+ // be written to.
+ GcsDestination gcs_destination = 1;
+
+ // The BigQuery location where the output is to be written to.
+ BigQueryDestination bigquery_destination = 2;
+ }
+}
+
+// Output configuration for ModelExport Action.
+message ModelExportOutputConfig {
+ // Required. The destination of the output.
+ oneof destination {
+ // The Google Cloud Storage location where the model is to be written to.
+ // This location may only be set for the following model formats:
+ // "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
+ //
+ // Under the directory given as the destination a new one with name
+ // "model-export--",
+ // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+ // will be created. Inside the model and any of its supporting files
+ // will be written.
+ GcsDestination gcs_destination = 1;
+
+ // The GCR location where model image is to be pushed to. This location
+ // may only be set for the following model formats:
+ // "docker".
+ //
+ // The model image will be created under the given URI.
+ GcrDestination gcr_destination = 3;
+ }
+
+ // The format in which the model must be exported. The available, and default,
+ // formats depend on the problem and model type (if given problem and type
+ // combination doesn't have a format listed, it means its models are not
+ // exportable):
+ //
+ // * For Image Classification mobile-low-latency-1, mobile-versatile-1,
+ // mobile-high-accuracy-1:
+ // "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js",
+ // "docker".
+ //
+ // * For Image Classification mobile-core-ml-low-latency-1,
+ // mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+ // "core_ml" (default).
+ //
+ // * For Image Object Detection mobile-low-latency-1, mobile-versatile-1,
+ // mobile-high-accuracy-1:
+ // "tflite", "tf_saved_model", "tf_js".
+ //
+ // * For Video Classification cloud,
+ // "tf_saved_model".
+ //
+ // * For Video Object Tracking cloud,
+ // "tf_saved_model".
+ //
+ // * For Video Object Tracking mobile-versatile-1:
+ // "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
+ //
+ // * For Video Object Tracking mobile-coral-versatile-1:
+ // "tflite", "edgetpu_tflite", "docker".
+ //
+ // * For Video Object Tracking mobile-coral-low-latency-1:
+ // "tflite", "edgetpu_tflite", "docker".
+ //
+ // * For Video Object Tracking mobile-jetson-versatile-1:
+ // "tf_saved_model", "docker".
+ //
+ // * For Tables:
+ // "docker".
+ //
+ // Formats description:
+ //
+ // * tflite - Used for Android mobile devices.
+ // * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+ // devices.
+ // * tf_saved_model - A tensorflow model in SavedModel format.
+ // * tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can
+ // be used in the browser and in Node.js using JavaScript.
+ // * docker - Used for Docker containers. Use the params field to customize
+ // 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)
+ // * core_ml - Used for iOS mobile devices.
+ string model_format = 4;
+
+ // Additional model-type and format specific parameters describing the
+ // requirements for the to be exported model files, any string must be up to
+ // 25000 characters long.
+ //
+ // * For `docker` format:
+ // `cpu_architecture` - (string) "x86_64" (default).
+ // `gpu_architecture` - (string) "none" (default), "nvidia".
+ map params = 2;
+}
+
+// Output configuration for ExportEvaluatedExamples Action. Note that this call
+// is available only for 30 days since the moment the model was evaluated.
+// The output depends on the domain, as follows (note that only examples from
+// the TEST set are exported):
+//
+// * For Tables:
+//
+// [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+// pointing to a BigQuery project must be set. In the given project a
+// new dataset will be created with name
+//
+// `export_evaluated_examples__`
+// where will be made BigQuery-dataset-name
+// compatible (e.g. most special characters will become underscores),
+// and timestamp will be in YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601"
+// format. In the dataset an `evaluated_examples` table will be
+// created. It will have all the same columns as the
+//
+// [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id]
+// of the
+// [dataset][google.cloud.automl.v1beta1.Model.dataset_id] from which
+// the model was created, as they were at the moment of model's
+// evaluation (this includes the target column with its ground
+// truth), followed by a column called "predicted_". That
+// last column will contain the model's prediction result for each
+// respective row, given as ARRAY of
+// [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload],
+// represented as STRUCT-s, containing
+// [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation].
+message ExportEvaluatedExamplesOutputConfig {
+ // Required. The destination of the output.
+ oneof destination {
+ // The BigQuery location where the output is to be written to.
+ BigQueryDestination bigquery_destination = 2;
+ }
+}
+
+// The Google Cloud Storage location for the input content.
+message GcsSource {
+ // Required. Google Cloud Storage URIs to input files, up to 2000 characters
+ // long. Accepted forms:
+ // * Full object path, e.g. gs://bucket/directory/object.csv
+ repeated string input_uris = 1;
+}
+
+// The BigQuery location for the input content.
+message BigQuerySource {
+ // Required. BigQuery URI to a table, up to 2000 characters long.
+ // Accepted forms:
+ // * BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+ string input_uri = 1;
+}
+
+// The Google Cloud Storage location where the output is to be written to.
+message GcsDestination {
+ // Required. Google Cloud Storage URI to output directory, up to 2000
+ // characters long.
+ // Accepted forms:
+ // * Prefix path: gs://bucket/directory
+ // The requesting user must have write permission to the bucket.
+ // The directory is created if it doesn't exist.
+ string output_uri_prefix = 1;
+}
+
+// The BigQuery location for the output content.
+message BigQueryDestination {
+ // Required. BigQuery URI to a project, up to 2000 characters long.
+ // Accepted forms:
+ // * BigQuery path e.g. bq://projectId
+ string output_uri = 1;
+}
+
+// The GCR location where the image must be pushed to.
+message GcrDestination {
+ // Required. Google Contained Registry URI of the new image, up to 2000
+ // characters long. See
+ //
+ // https:
+ // //cloud.google.com/container-registry/do
+ // // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+ // Accepted forms:
+ // * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+ // * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+ //
+ // The requesting user must have permission to push images the project.
+ string output_uri = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/model.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/model.proto
new file mode 100644
index 00000000000..9db5e4866e7
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/model.proto
@@ -0,0 +1,107 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/image.proto";
+import "google/cloud/automl/v1beta1/tables.proto";
+import "google/cloud/automl/v1beta1/text.proto";
+import "google/cloud/automl/v1beta1/translation.proto";
+import "google/cloud/automl/v1beta1/video.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// API proto representing a trained machine learning model.
+message Model {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/Model"
+ pattern: "projects/{project}/locations/{location}/models/{model}"
+ };
+
+ // Deployment state of the model.
+ enum DeploymentState {
+ // Should not be used, an un-set enum has this value by default.
+ DEPLOYMENT_STATE_UNSPECIFIED = 0;
+
+ // Model is deployed.
+ DEPLOYED = 1;
+
+ // Model is not deployed.
+ UNDEPLOYED = 2;
+ }
+
+ // Required.
+ // The model metadata that is specific to the problem type.
+ // Must match the metadata type of the dataset used to train the model.
+ oneof model_metadata {
+ // Metadata for translation models.
+ TranslationModelMetadata translation_model_metadata = 15;
+
+ // Metadata for image classification models.
+ ImageClassificationModelMetadata image_classification_model_metadata = 13;
+
+ // Metadata for text classification models.
+ TextClassificationModelMetadata text_classification_model_metadata = 14;
+
+ // Metadata for image object detection models.
+ ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
+
+ // Metadata for video classification models.
+ VideoClassificationModelMetadata video_classification_model_metadata = 23;
+
+ // Metadata for video object tracking models.
+ VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;
+
+ // Metadata for text extraction models.
+ TextExtractionModelMetadata text_extraction_model_metadata = 19;
+
+ // Metadata for Tables models.
+ TablesModelMetadata tables_model_metadata = 24;
+
+ // Metadata for text sentiment models.
+ TextSentimentModelMetadata text_sentiment_model_metadata = 22;
+ }
+
+ // Output only. Resource name of the model.
+ // Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
+ string name = 1;
+
+ // Required. The name of the model to show in the interface. The name can be
+ // up to 32 characters long and can consist only of ASCII Latin letters A-Z
+ // and a-z, underscores
+ // (_), and ASCII digits 0-9. It must start with a letter.
+ string display_name = 2;
+
+ // Required. The resource ID of the dataset used to create the model. The dataset must
+ // come from the same ancestor project and location.
+ string dataset_id = 3;
+
+ // Output only. Timestamp when the model training finished and can be used for prediction.
+ google.protobuf.Timestamp create_time = 7;
+
+ // Output only. Timestamp when this model was last updated.
+ google.protobuf.Timestamp update_time = 11;
+
+ // Output only. Deployment state of the model. A model can only serve
+ // prediction requests after it gets deployed.
+ DeploymentState deployment_state = 8;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/model_evaluation.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/model_evaluation.proto
new file mode 100644
index 00000000000..91801bd36fb
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/model_evaluation.proto
@@ -0,0 +1,115 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/classification.proto";
+import "google/cloud/automl/v1beta1/detection.proto";
+import "google/cloud/automl/v1beta1/regression.proto";
+import "google/cloud/automl/v1beta1/tables.proto";
+import "google/cloud/automl/v1beta1/text_extraction.proto";
+import "google/cloud/automl/v1beta1/text_sentiment.proto";
+import "google/cloud/automl/v1beta1/translation.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Evaluation results of a model.
+message ModelEvaluation {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/ModelEvaluation"
+ pattern: "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}"
+ };
+
+ // Output only. Problem type specific evaluation metrics.
+ oneof metrics {
+ // Model evaluation metrics for image, text, video and tables
+ // classification.
+ // Tables problem is considered a classification when the target column
+ // is CATEGORY DataType.
+ ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
+
+ // Model evaluation metrics for Tables regression.
+ // Tables problem is considered a regression when the target column
+ // has FLOAT64 DataType.
+ RegressionEvaluationMetrics regression_evaluation_metrics = 24;
+
+ // Model evaluation metrics for translation.
+ TranslationEvaluationMetrics translation_evaluation_metrics = 9;
+
+ // Model evaluation metrics for image object detection.
+ ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
+
+ // Model evaluation metrics for video object tracking.
+ VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;
+
+ // Evaluation metrics for text sentiment models.
+ TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
+
+ // Evaluation metrics for text extraction models.
+ TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
+ }
+
+ // 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;
+
+ // Output only. The ID of the annotation spec that the model evaluation applies to. The
+ // 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.v1beta1.TablesModelMetadata.prediction_type]
+ // the
+ // [display_name][google.cloud.automl.v1beta1.ModelEvaluation.display_name]
+ // field is used.
+ string annotation_spec_id = 2;
+
+ // Output only. The value of
+ // [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
+ // the moment when the model was trained. Because this field returns a 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.v1beta1.TablesModelMetadata.prediction_type]
+ // distinct values of the target column at the moment of the model evaluation
+ // are populated here.
+ // The display_name is empty for the overall model evaluation.
+ string display_name = 15;
+
+ // Output only. Timestamp when this model evaluation was created.
+ google.protobuf.Timestamp create_time = 5;
+
+ // Output only. The number of examples used for model evaluation, i.e. for
+ // which ground truth from time of model creation is compared against the
+ // predicted annotations created by the model.
+ // For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+ // 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.v1beta1.ModelEvaluation.annotation_spec_id].
+ int32 evaluated_example_count = 6;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/operations.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/operations.proto
new file mode 100644
index 00000000000..f75e48d14c7
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/operations.proto
@@ -0,0 +1,187 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/io.proto";
+import "google/cloud/automl/v1beta1/model.proto";
+import "google/cloud/automl/v1beta1/model_evaluation.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Metadata used across all long running operations returned by AutoML API.
+message OperationMetadata {
+ // Ouptut only. Details of specific operation. Even if this field is empty,
+ // the presence allows to distinguish different types of operations.
+ oneof details {
+ // Details of a Delete operation.
+ DeleteOperationMetadata delete_details = 8;
+
+ // Details of a DeployModel operation.
+ DeployModelOperationMetadata deploy_model_details = 24;
+
+ // Details of an UndeployModel operation.
+ UndeployModelOperationMetadata undeploy_model_details = 25;
+
+ // Details of CreateModel operation.
+ CreateModelOperationMetadata create_model_details = 10;
+
+ // Details of ImportData operation.
+ ImportDataOperationMetadata import_data_details = 15;
+
+ // Details of BatchPredict operation.
+ BatchPredictOperationMetadata batch_predict_details = 16;
+
+ // Details of ExportData operation.
+ ExportDataOperationMetadata export_data_details = 21;
+
+ // Details of ExportModel operation.
+ ExportModelOperationMetadata export_model_details = 22;
+
+ // Details of ExportEvaluatedExamples operation.
+ ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26;
+ }
+
+ // Output only. Progress of operation. Range: [0, 100].
+ // Not used currently.
+ int32 progress_percent = 13;
+
+ // Output only. Partial failures encountered.
+ // E.g. single files that couldn't be read.
+ // This field should never exceed 20 entries.
+ // Status details field will contain standard GCP error details.
+ repeated google.rpc.Status partial_failures = 2;
+
+ // Output only. Time when the operation was created.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Output only. Time when the operation was updated for the last time.
+ google.protobuf.Timestamp update_time = 4;
+}
+
+// Details of operations that perform deletes of any entities.
+message DeleteOperationMetadata {
+
+}
+
+// Details of DeployModel operation.
+message DeployModelOperationMetadata {
+
+}
+
+// Details of UndeployModel operation.
+message UndeployModelOperationMetadata {
+
+}
+
+// Details of CreateModel operation.
+message CreateModelOperationMetadata {
+
+}
+
+// Details of ImportData operation.
+message ImportDataOperationMetadata {
+
+}
+
+// Details of ExportData operation.
+message ExportDataOperationMetadata {
+ // Further describes this export data's output.
+ // Supplements
+ // [OutputConfig][google.cloud.automl.v1beta1.OutputConfig].
+ message ExportDataOutputInfo {
+ // The output location to which the exported data is written.
+ oneof output_location {
+ // The full path of the Google Cloud Storage directory created, into which
+ // the exported data is written.
+ string gcs_output_directory = 1;
+
+ // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+ // format, into which the exported data is written.
+ string bigquery_output_dataset = 2;
+ }
+ }
+
+ // Output only. Information further describing this export data's output.
+ ExportDataOutputInfo output_info = 1;
+}
+
+// Details of BatchPredict operation.
+message BatchPredictOperationMetadata {
+ // Further describes this batch predict's output.
+ // Supplements
+ //
+ // [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
+ message BatchPredictOutputInfo {
+ // The output location into which prediction output is written.
+ oneof output_location {
+ // The full path of the Google Cloud Storage directory created, into which
+ // the prediction output is written.
+ string gcs_output_directory = 1;
+
+ // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+ // format, into which the prediction output is written.
+ string bigquery_output_dataset = 2;
+ }
+ }
+
+ // Output only. The input config that was given upon starting this
+ // batch predict operation.
+ BatchPredictInputConfig input_config = 1;
+
+ // Output only. Information further describing this batch predict's output.
+ BatchPredictOutputInfo output_info = 2;
+}
+
+// Details of ExportModel operation.
+message ExportModelOperationMetadata {
+ // Further describes the output of model export.
+ // Supplements
+ //
+ // [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+ message ExportModelOutputInfo {
+ // The full path of the Google Cloud Storage directory created, into which
+ // the model will be exported.
+ string gcs_output_directory = 1;
+ }
+
+ // Output only. Information further describing the output of this model
+ // export.
+ ExportModelOutputInfo output_info = 2;
+}
+
+// Details of EvaluatedExamples operation.
+message ExportEvaluatedExamplesOperationMetadata {
+ // Further describes the output of the evaluated examples export.
+ // Supplements
+ //
+ // [ExportEvaluatedExamplesOutputConfig][google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig].
+ message ExportEvaluatedExamplesOutputInfo {
+ // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+ // format, into which the output of export evaluated examples is written.
+ string bigquery_output_dataset = 2;
+ }
+
+ // Output only. Information further describing the output of this evaluated
+ // examples export.
+ ExportEvaluatedExamplesOutputInfo output_info = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/prediction_service.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/prediction_service.proto
new file mode 100644
index 00000000000..28148a576e3
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/prediction_service.proto
@@ -0,0 +1,268 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/annotation_payload.proto";
+import "google/cloud/automl/v1beta1/data_items.proto";
+import "google/cloud/automl/v1beta1/io.proto";
+import "google/cloud/automl/v1beta1/operations.proto";
+import "google/longrunning/operations.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "PredictionServiceProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// 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.
+service PredictionService {
+ option (google.api.default_host) = "automl.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Perform an online prediction. The prediction result will be directly
+ // returned in the response.
+ // Available for following ML problems, and their expected request payloads:
+ // * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
+ // up to 30MB.
+ // * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
+ // up to 30MB.
+ // * Text Classification - TextSnippet, content up to 60,000 characters,
+ // UTF-8 encoded.
+ // * Text Extraction - TextSnippet, content up to 30,000 characters,
+ // UTF-8 NFC encoded.
+ // * Translation - TextSnippet, content up to 25,000 characters, UTF-8
+ // encoded.
+ // * Tables - Row, with column values matching the columns of the model,
+ // up to 5MB. Not available for FORECASTING
+ //
+ // [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type].
+ // * Text Sentiment - TextSnippet, content up 500 characters, UTF-8
+ // encoded.
+ rpc Predict(PredictRequest) returns (PredictResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/models/*}:predict"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,payload,params";
+ }
+
+ // Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
+ // prediction result won't be immediately available in the response. Instead,
+ // a long running operation object is returned. User can poll the operation
+ // result via [GetOperation][google.longrunning.Operations.GetOperation]
+ // method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
+ // the [response][google.longrunning.Operation.response] field.
+ // Available for following ML problems:
+ // * Image Classification
+ // * Image Object Detection
+ // * Video Classification
+ // * Video Object Tracking * Text Extraction
+ // * Tables
+ rpc BatchPredict(BatchPredictRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/models/*}:batchPredict"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,input_config,output_config,params";
+ option (google.longrunning.operation_info) = {
+ response_type: "BatchPredictResult"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
+message PredictRequest {
+ // Required. Name of the model requested to serve the prediction.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. Payload to perform a prediction on. The payload must match the
+ // problem type that the model was trained to solve.
+ ExamplePayload payload = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Additional domain-specific parameters, any string must be up to 25000
+ // characters long.
+ //
+ // * For Image Classification:
+ //
+ // `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for an image, it will only produce results that have
+ // at least this confidence score. The default is 0.5.
+ //
+ // * For Image Object Detection:
+ // `score_threshold` - (float) When Model detects objects on the image,
+ // it will only produce bounding boxes which have at least this
+ // confidence score. Value in 0 to 1 range, default is 0.5.
+ // `max_bounding_box_count` - (int64) No more than this number of bounding
+ // boxes will be returned in the response. Default is 100, the
+ // requested value may be limited by server.
+ // * For Tables:
+ // feature_importance - (boolean) Whether feature importance
+ // should be populated in the returned TablesAnnotation.
+ // The default is false.
+ map params = 3;
+}
+
+// Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
+message PredictResponse {
+ // Prediction result.
+ // Translation and Text Sentiment will return precisely one payload.
+ repeated AnnotationPayload payload = 1;
+
+ // The preprocessed example that AutoML actually makes prediction on.
+ // Empty if AutoML does not preprocess the input example.
+ // * For Text Extraction:
+ // If the input is a .pdf file, the OCR'ed text will be provided in
+ // [document_text][google.cloud.automl.v1beta1.Document.document_text].
+ ExamplePayload preprocessed_input = 3;
+
+ // Additional domain-specific prediction response metadata.
+ //
+ // * For Image Object Detection:
+ // `max_bounding_box_count` - (int64) At most that many bounding boxes per
+ // image could have been returned.
+ //
+ // * For Text Sentiment:
+ // `sentiment_score` - (float, deprecated) A value between -1 and 1,
+ // -1 maps to least positive sentiment, while 1 maps to the most positive
+ // one and the higher the score, the more positive the sentiment in the
+ // document is. Yet these values are relative to the training data, so
+ // e.g. if all data was positive then -1 will be also positive (though
+ // the least).
+ // The sentiment_score shouldn't be confused with "score" or "magnitude"
+ // from the previous Natural Language Sentiment Analysis API.
+ map metadata = 2;
+}
+
+// Request message for [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict].
+message BatchPredictRequest {
+ // Required. Name of the model requested to serve the batch prediction.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. The input configuration for batch prediction.
+ BatchPredictInputConfig input_config = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Configuration specifying where output predictions should
+ // be written.
+ BatchPredictOutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Additional domain-specific parameters for the predictions, any string must
+ // be up to 25000 characters long.
+ //
+ // * For Text Classification:
+ //
+ // `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for a text snippet, it will only produce results
+ // that have at least this confidence score. The default is 0.5.
+ //
+ // * For Image Classification:
+ //
+ // `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for an image, it will only produce results that
+ // have at least this confidence score. The default is 0.5.
+ //
+ // * For Image Object Detection:
+ //
+ // `score_threshold` - (float) When Model detects objects on the image,
+ // it will only produce bounding boxes which have at least this
+ // confidence score. Value in 0 to 1 range, default is 0.5.
+ // `max_bounding_box_count` - (int64) No more than this number of bounding
+ // boxes will be produced per image. Default is 100, the
+ // requested value may be limited by server.
+ //
+ // * For Video Classification :
+ //
+ // `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+ // makes predictions for a video, it will only produce results that
+ // have at least this confidence score. The default is 0.5.
+ // `segment_classification` - (boolean) Set to true to request
+ // segment-level classification. AutoML Video Intelligence returns
+ // labels and their confidence scores for the entire segment of the
+ // video that user specified in the request configuration.
+ // The default is "true".
+ // `shot_classification` - (boolean) Set to true to request shot-level
+ // classification. AutoML Video Intelligence determines the boundaries
+ // for each camera shot in the entire segment of the video that user
+ // specified in the request configuration. AutoML Video Intelligence
+ // then returns labels and their confidence scores for each detected
+ // shot, along with the start and end time of the shot.
+ // WARNING: Model evaluation is not done for this classification type,
+ // the quality of it depends on training data, but there are no metrics
+ // provided to describe that quality. The default is "false".
+ // `1s_interval_classification` - (boolean) Set to true to request
+ // classification for a video at one-second intervals. AutoML Video
+ // Intelligence returns labels and their confidence scores for each
+ // second of the entire segment of the video that user specified in the
+ // request configuration.
+ // WARNING: Model evaluation is not done for this classification
+ // type, the quality of it depends on training data, but there are no
+ // metrics provided to describe that quality. The default is
+ // "false".
+ //
+ // * For Tables:
+ //
+ // feature_importance - (boolean) Whether feature importance
+ // should be populated in the returned TablesAnnotations. The
+ // default is false.
+ //
+ // * For Video Object Tracking:
+ //
+ // `score_threshold` - (float) When Model detects objects on video frames,
+ // it will only produce bounding boxes which have at least this
+ // confidence score. Value in 0 to 1 range, default is 0.5.
+ // `max_bounding_box_count` - (int64) No more than this number of bounding
+ // boxes will be returned per frame. Default is 100, the requested
+ // value may be limited by server.
+ // `min_bounding_box_size` - (float) Only bounding boxes with shortest edge
+ // at least that long as a relative value of video frame size will be
+ // returned. Value in 0 to 1 range. Default is 0.
+ map params = 5 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Result of the Batch Predict. This message is returned in
+// [response][google.longrunning.Operation.response] of the operation returned
+// by the [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict].
+message BatchPredictResult {
+ // Additional domain-specific prediction response metadata.
+ //
+ // * For Image Object Detection:
+ // `max_bounding_box_count` - (int64) At most that many bounding boxes per
+ // image could have been returned.
+ //
+ // * For Video Object Tracking:
+ // `max_bounding_box_count` - (int64) At most that many bounding boxes per
+ // frame could have been returned.
+ map metadata = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/ranges.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/ranges.proto
new file mode 100644
index 00000000000..35ebb569a11
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/ranges.proto
@@ -0,0 +1,34 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "RangesProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A range between two double numbers.
+message DoubleRange {
+ // Start of the range, inclusive.
+ double start = 1;
+
+ // End of the range, exclusive.
+ double end = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/regression.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/regression.proto
new file mode 100644
index 00000000000..3c6b269a6be
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/regression.proto
@@ -0,0 +1,43 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_outer_classname = "RegressionProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Metrics for regression problems.
+message RegressionEvaluationMetrics {
+ // Output only. Root Mean Squared Error (RMSE).
+ float root_mean_squared_error = 1;
+
+ // Output only. Mean Absolute Error (MAE).
+ float mean_absolute_error = 2;
+
+ // Output only. Mean absolute percentage error. Only set if all ground truth
+ // values are are positive.
+ float mean_absolute_percentage_error = 3;
+
+ // Output only. R squared.
+ float r_squared = 4;
+
+ // Output only. Root mean squared log error.
+ float root_mean_squared_log_error = 5;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/service.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/service.proto
new file mode 100644
index 00000000000..f4ac32315f9
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/service.proto
@@ -0,0 +1,801 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/annotation_payload.proto";
+import "google/cloud/automl/v1beta1/annotation_spec.proto";
+import "google/cloud/automl/v1beta1/column_spec.proto";
+import "google/cloud/automl/v1beta1/dataset.proto";
+import "google/cloud/automl/v1beta1/image.proto";
+import "google/cloud/automl/v1beta1/io.proto";
+import "google/cloud/automl/v1beta1/model.proto";
+import "google/cloud/automl/v1beta1/model_evaluation.proto";
+import "google/cloud/automl/v1beta1/operations.proto";
+import "google/cloud/automl/v1beta1/table_spec.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "AutoMlProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// AutoML Server API.
+//
+// The resource names are assigned by the server.
+// The server never reuses names that it has created after the resources with
+// those names are deleted.
+//
+// An ID of a resource is the last element of the item's resource name. For
+// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
+// the id for the item is `{dataset_id}`.
+//
+// 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.
+service AutoMl {
+ option (google.api.default_host) = "automl.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a dataset.
+ rpc CreateDataset(CreateDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/datasets"
+ body: "dataset"
+ };
+ option (google.api.method_signature) = "parent,dataset";
+ }
+
+ // Gets a dataset.
+ rpc GetDataset(GetDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/datasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists datasets in a project.
+ rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/datasets"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a dataset.
+ rpc UpdateDataset(UpdateDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}"
+ body: "dataset"
+ };
+ option (google.api.method_signature) = "dataset";
+ }
+
+ // Deletes a dataset and all of its contents.
+ // Returns empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes,
+ // and `delete_details` in the
+ // [metadata][google.longrunning.Operation.metadata] field.
+ rpc DeleteDataset(DeleteDatasetRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/datasets/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Imports data into a dataset.
+ // For Tables this method can only be called on an empty Dataset.
+ //
+ // For Tables:
+ // * A
+ // [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params]
+ // parameter must be explicitly set.
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/datasets/*}:importData"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,input_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports dataset's data to the provided output location.
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/datasets/*}:exportData"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,output_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets an annotation spec.
+ rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a table spec.
+ rpc GetTableSpec(GetTableSpecRequest) returns (TableSpec) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists table specs in a dataset.
+ rpc ListTableSpecs(ListTableSpecsRequest) returns (ListTableSpecsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/tableSpecs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a table spec.
+ rpc UpdateTableSpec(UpdateTableSpecRequest) returns (TableSpec) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{table_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*}"
+ body: "table_spec"
+ };
+ option (google.api.method_signature) = "table_spec";
+ }
+
+ // Gets a column spec.
+ rpc GetColumnSpec(GetColumnSpecRequest) returns (ColumnSpec) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists column specs in a table spec.
+ rpc ListColumnSpecs(ListColumnSpecsRequest) returns (ListColumnSpecsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*/datasets/*/tableSpecs/*}/columnSpecs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a column spec.
+ rpc UpdateColumnSpec(UpdateColumnSpecRequest) returns (ColumnSpec) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{column_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}"
+ body: "column_spec"
+ };
+ option (google.api.method_signature) = "column_spec";
+ }
+
+ // Creates a model.
+ // Returns a Model in the [response][google.longrunning.Operation.response]
+ // field when it completes.
+ // When you create a model, several model evaluations are created for it:
+ // a global evaluation, and one evaluation for each annotation spec.
+ rpc CreateModel(CreateModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/models"
+ body: "model"
+ };
+ option (google.api.method_signature) = "parent,model";
+ option (google.longrunning.operation_info) = {
+ response_type: "Model"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets a model.
+ rpc GetModel(GetModelRequest) returns (Model) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/models/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists models.
+ rpc ListModels(ListModelsRequest) returns (ListModelsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/models"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes a model.
+ // Returns `google.protobuf.Empty` in the
+ // [response][google.longrunning.Operation.response] field when it completes,
+ // and `delete_details` in the
+ // [metadata][google.longrunning.Operation.metadata] field.
+ rpc DeleteModel(DeleteModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/models/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // 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.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number])
+ // will reset the deployment state without pausing the model's availability.
+ //
+ // Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
+ // deployment automatically.
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc DeployModel(DeployModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/models/*}:deploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Undeploys a model. If the model is not deployed this method has no effect.
+ //
+ // Only applicable for Text Classification, Image Object Detection and Tables;
+ // all other domains manage deployment automatically.
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc UndeployModel(UndeployModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/models/*}:undeploy"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports a trained, "export-able", model to a user specified Google Cloud
+ // Storage location. A model is considered export-able if and only if it has
+ // an export format defined for it in
+ //
+ // [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ExportModel(ExportModelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/models/*}:export"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,output_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Exports examples on which the model was evaluated (i.e. which were in the
+ // TEST set of the dataset the model was created from), together with their
+ // ground truth annotations and the annotations created (predicted) by the
+ // model.
+ // The examples, ground truth and predictions are exported in the state
+ // they were at the moment the model was evaluated.
+ //
+ // This export is available only for 30 days since the model evaluation is
+ // created.
+ //
+ // Currently only available for Tables.
+ //
+ // Returns an empty response in the
+ // [response][google.longrunning.Operation.response] field when it completes.
+ rpc ExportEvaluatedExamples(ExportEvaluatedExamplesRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/models/*}:exportEvaluatedExamples"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,output_config";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets a model evaluation.
+ rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/models/*/modelEvaluations/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists model evaluations.
+ rpc ListModelEvaluations(ListModelEvaluationsRequest) returns (ListModelEvaluationsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluations"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
+message CreateDatasetRequest {
+ // Required. The resource name of the project to create the dataset for.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The dataset to create.
+ Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
+message GetDatasetRequest {
+ // Required. The resource name of the dataset to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
+message ListDatasetsRequest {
+ // Required. The resource name of the project from which to list datasets.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // 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:
+ //
+ // * `translation_dataset_metadata:*` --> The dataset has
+ // `translation_dataset_metadata`.
+ string filter = 3;
+
+ // Requested page size. Server may return fewer results than requested.
+ // If unspecified, server will pick a default size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return
+ // Typically obtained via
+ // [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+ // [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
+message ListDatasetsResponse {
+ // The datasets read.
+ repeated Dataset datasets = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
+ string next_page_token = 2;
+}
+
+// Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1beta1.AutoMl.UpdateDataset]
+message UpdateDatasetRequest {
+ // Required. The dataset which replaces the resource on the server.
+ Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The update mask applies to the resource.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
+message DeleteDatasetRequest {
+ // Required. The resource name of the dataset to delete.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
+message ImportDataRequest {
+ // Required. Dataset name. Dataset must already exist. All imported
+ // annotations and examples will be added.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. The desired input location and its domain specific semantics,
+ // if any.
+ InputConfig input_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
+message ExportDataRequest {
+ // Required. The resource name of the dataset.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+
+ // Required. The desired output location.
+ OutputConfig output_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec].
+message GetAnnotationSpecRequest {
+ // Required. The resource name of the annotation spec to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/AnnotationSpec"
+ }
+ ];
+}
+
+// Request message for [AutoMl.GetTableSpec][google.cloud.automl.v1beta1.AutoMl.GetTableSpec].
+message GetTableSpecRequest {
+ // Required. The resource name of the table spec to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/TableSpec"
+ }
+ ];
+
+ // Mask specifying which fields to read.
+ google.protobuf.FieldMask field_mask = 2;
+}
+
+// Request message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs].
+message ListTableSpecsRequest {
+ // Required. The resource name of the dataset to list table specs from.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Dataset"
+ }
+ ];
+
+ // Mask specifying which fields to read.
+ google.protobuf.FieldMask field_mask = 2;
+
+ // Filter expression, see go/filtering.
+ string filter = 3;
+
+ // Requested page size. The server can return fewer results than requested.
+ // If unspecified, the server will pick a default size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return.
+ // Typically obtained from the
+ // [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+ // [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs].
+message ListTableSpecsResponse {
+ // The table specs read.
+ repeated TableSpec table_specs = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+ string next_page_token = 2;
+}
+
+// Request message for [AutoMl.UpdateTableSpec][google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec]
+message UpdateTableSpecRequest {
+ // Required. The table spec which replaces the resource on the server.
+ TableSpec table_spec = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The update mask applies to the resource.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request message for [AutoMl.GetColumnSpec][google.cloud.automl.v1beta1.AutoMl.GetColumnSpec].
+message GetColumnSpecRequest {
+ // Required. The resource name of the column spec to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/ColumnSpec"
+ }
+ ];
+
+ // Mask specifying which fields to read.
+ google.protobuf.FieldMask field_mask = 2;
+}
+
+// Request message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs].
+message ListColumnSpecsRequest {
+ // Required. The resource name of the table spec to list column specs from.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/TableSpec"
+ }
+ ];
+
+ // Mask specifying which fields to read.
+ google.protobuf.FieldMask field_mask = 2;
+
+ // Filter expression, see go/filtering.
+ string filter = 3;
+
+ // Requested page size. The server can return fewer results than requested.
+ // If unspecified, the server will pick a default size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return.
+ // Typically obtained from the
+ // [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+ // [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs].
+message ListColumnSpecsResponse {
+ // The column specs read.
+ repeated ColumnSpec column_specs = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+ string next_page_token = 2;
+}
+
+// Request message for [AutoMl.UpdateColumnSpec][google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec]
+message UpdateColumnSpecRequest {
+ // Required. The column spec which replaces the resource on the server.
+ ColumnSpec column_spec = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The update mask applies to the resource.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
+message CreateModelRequest {
+ // Required. Resource name of the parent project where the model is being created.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The model to create.
+ Model model = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
+message GetModelRequest {
+ // Required. Resource name of the model.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
+message ListModelsRequest {
+ // Required. Resource name of the project, from which to list the models.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // An expression for filtering the results of the request.
+ //
+ // * `model_metadata` - for existence of the case (e.g.
+ // `video_classification_model_metadata:*`).
+ // * `dataset_id` - for = or !=. Some examples of using the filter are:
+ //
+ // * `image_classification_model_metadata:*` --> The model has
+ // `image_classification_model_metadata`.
+ // * `dataset_id=5` --> The model was created from a dataset with ID 5.
+ string filter = 3;
+
+ // Requested page size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return
+ // Typically obtained via
+ // [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
+ // [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
+message ListModelsResponse {
+ // List of models in the requested page.
+ repeated Model model = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
+ string next_page_token = 2;
+}
+
+// Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
+message DeleteModelRequest {
+ // Required. Resource name of the model being deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
+message DeployModelRequest {
+ // The per-domain specific deployment parameters.
+ oneof model_deployment_metadata {
+ // Model deployment metadata specific to Image Object Detection.
+ ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2;
+
+ // Model deployment metadata specific to Image Classification.
+ ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4;
+ }
+
+ // Required. Resource name of the model to deploy.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
+message UndeployModelRequest {
+ // Required. Resource name of the model to undeploy.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel].
+// Models need to be enabled for exporting, otherwise an error code will be
+// returned.
+message ExportModelRequest {
+ // Required. The resource name of the model to export.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. The desired output location and configuration.
+ ModelExportOutputConfig output_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.ExportEvaluatedExamples][google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples].
+message ExportEvaluatedExamplesRequest {
+ // Required. The resource name of the model whose evaluated examples are to
+ // be exported.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // Required. The desired output location and configuration.
+ ExportEvaluatedExamplesOutputConfig output_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
+message GetModelEvaluationRequest {
+ // Required. Resource name for the model evaluation.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/ModelEvaluation"
+ }
+ ];
+}
+
+// Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
+message ListModelEvaluationsRequest {
+ // Required. Resource name of the model to list the model evaluations for.
+ // If modelId is set as "-", this will list model evaluations from across all
+ // models of the parent location.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "automl.googleapis.com/Model"
+ }
+ ];
+
+ // An expression for filtering the results of the request.
+ //
+ // * `annotation_spec_id` - for =, != or existence. See example below for
+ // the last.
+ //
+ // Some examples of using the filter are:
+ //
+ // * `annotation_spec_id!=4` --> The model evaluation was done for
+ // annotation spec with ID different than 4.
+ // * `NOT annotation_spec_id:*` --> The model evaluation was done for
+ // aggregate of all annotation specs.
+ string filter = 3;
+
+ // Requested page size.
+ int32 page_size = 4;
+
+ // A token identifying a page of results for the server to return.
+ // Typically obtained via
+ // [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+ // [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
+ string page_token = 6;
+}
+
+// Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
+message ListModelEvaluationsResponse {
+ // List of model evaluations in the requested page.
+ repeated ModelEvaluation model_evaluation = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+ // [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/table_spec.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/table_spec.proto
new file mode 100644
index 00000000000..de1f7a09c13
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/table_spec.proto
@@ -0,0 +1,77 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/resource.proto";
+import "google/cloud/automl/v1beta1/io.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A specification of a relational table.
+// The table's schema is represented via its child column specs. It is
+// pre-populated as part of ImportData by schema inference algorithm, the
+// version of which is a required parameter of ImportData InputConfig.
+// Note: While working with a table, at times the schema may be
+// inconsistent with the data in the table (e.g. string in a FLOAT64 column).
+// The consistency validation is done upon creation of a model.
+// Used by:
+// * Tables
+message TableSpec {
+ option (google.api.resource) = {
+ type: "automl.googleapis.com/TableSpec"
+ pattern: "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}"
+ };
+
+ // Output only. The resource name of the table spec.
+ // Form:
+ //
+ // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+ string name = 1;
+
+ // column_spec_id of the time column. Only used if the parent dataset's
+ // ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+ // and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+ // those in between to VALIDATE.
+ // Required type: TIMESTAMP.
+ // If both this column and ml_use_column are not set, then ML use of all rows
+ // will be assigned by AutoML. NOTE: Updates of this field will instantly
+ // affect any other users concurrently working with the dataset.
+ string time_column_spec_id = 2;
+
+ // Output only. The number of rows (i.e. examples) in the table.
+ int64 row_count = 3;
+
+ // Output only. The number of valid rows (i.e. without values that don't match
+ // DataType-s of their columns).
+ int64 valid_row_count = 4;
+
+ // Output only. The number of columns of the table. That is, the number of
+ // child ColumnSpec-s.
+ int64 column_count = 7;
+
+ // Output only. Input configs via which data currently residing in the table
+ // had been imported.
+ repeated InputConfig input_configs = 5;
+
+ // Used to perform consistent read-modify-write updates. If not set, a blind
+ // "overwrite" update happens.
+ string etag = 6;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/tables.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/tables.proto
new file mode 100644
index 00000000000..34ea99b306a
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/tables.proto
@@ -0,0 +1,291 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/classification.proto";
+import "google/cloud/automl/v1beta1/column_spec.proto";
+import "google/cloud/automl/v1beta1/data_items.proto";
+import "google/cloud/automl/v1beta1/data_stats.proto";
+import "google/cloud/automl/v1beta1/ranges.proto";
+import "google/cloud/automl/v1beta1/regression.proto";
+import "google/cloud/automl/v1beta1/temporal.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Metadata for a dataset used for AutoML Tables.
+message TablesDatasetMetadata {
+ // Output only. The table_spec_id of the primary table of this dataset.
+ string primary_table_spec_id = 1;
+
+ // column_spec_id of the primary table's column that should be used as the
+ // training & prediction target.
+ // This column must be non-nullable and have one of following data types
+ // (otherwise model creation will error):
+ //
+ // * CATEGORY
+ //
+ // * FLOAT64
+ //
+ // If the type is CATEGORY , only up to
+ // 100 unique values may exist in that column across all rows.
+ //
+ // NOTE: Updates of this field will instantly affect any other users
+ // concurrently working with the dataset.
+ string target_column_spec_id = 2;
+
+ // column_spec_id of the primary table's column that should be used as the
+ // weight column, i.e. the higher the value the more important the row will be
+ // during model training.
+ // Required type: FLOAT64.
+ // Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+ // ignored for training.
+ // If not set all rows are assumed to have equal weight of 1.
+ // NOTE: Updates of this field will instantly affect any other users
+ // concurrently working with the dataset.
+ string weight_column_spec_id = 3;
+
+ // column_spec_id of the primary table column which specifies a possible ML
+ // use of the row, i.e. the column will be used to split the rows into TRAIN,
+ // VALIDATE and TEST sets.
+ // Required type: STRING.
+ // This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+ // among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+ // case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+ // that if a given ml use distribution makes it impossible to create a "good"
+ // model, that call will error describing the issue.
+ // If both this column_spec_id and primary table's time_column_spec_id are not
+ // set, then all rows are treated as `UNASSIGNED`.
+ // NOTE: Updates of this field will instantly affect any other users
+ // concurrently working with the dataset.
+ string ml_use_column_spec_id = 4;
+
+ // Output only. Correlations between
+ //
+ // [TablesDatasetMetadata.target_column_spec_id][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column_spec_id],
+ // and other columns of the
+ //
+ // [TablesDatasetMetadataprimary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+ // Only set if the target column is set. Mapping from other column spec id to
+ // its CorrelationStats with the target column.
+ // This field may be stale, see the stats_update_time field for
+ // for the timestamp at which these stats were last updated.
+ map target_column_correlations = 6;
+
+ // Output only. The most recent timestamp when target_column_correlations
+ // field and all descendant ColumnSpec.data_stats and
+ // ColumnSpec.top_correlated_columns fields were last (re-)generated. Any
+ // changes that happened to the dataset afterwards are not reflected in these
+ // fields values. The regeneration happens in the background on a best effort
+ // basis.
+ google.protobuf.Timestamp stats_update_time = 7;
+}
+
+// Model metadata specific to AutoML Tables.
+message TablesModelMetadata {
+ // Additional optimization objective configuration. Required for
+ // `MAXIMIZE_PRECISION_AT_RECALL` and `MAXIMIZE_RECALL_AT_PRECISION`,
+ // otherwise unused.
+ oneof additional_optimization_objective_config {
+ // Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
+ // Must be between 0 and 1, inclusive.
+ float optimization_objective_recall_value = 17;
+
+ // Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
+ // Must be between 0 and 1, inclusive.
+ float optimization_objective_precision_value = 18;
+ }
+
+ // Column spec of the dataset's primary table's column the model is
+ // predicting. Snapshotted when model creation started.
+ // Only 3 fields are used:
+ // name - May be set on CreateModel, if it's not then the ColumnSpec
+ // corresponding to the current target_column_spec_id of the dataset
+ // the model is trained from is used.
+ // If neither is set, CreateModel will error.
+ // display_name - Output only.
+ // data_type - Output only.
+ ColumnSpec target_column_spec = 2;
+
+ // Column specs of the dataset's primary table's columns, on which
+ // the model is trained and which are used as the input for predictions.
+ // The
+ //
+ // [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+ // as well as, according to dataset's state upon model creation,
+ //
+ // [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+ // and
+ //
+ // [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+ // must never be included here.
+ //
+ // Only 3 fields are used:
+ //
+ // * name - May be set on CreateModel, if set only the columns specified are
+ // used, otherwise all primary table's columns (except the ones listed
+ // above) are used for the training and prediction input.
+ //
+ // * display_name - Output only.
+ //
+ // * data_type - Output only.
+ repeated ColumnSpec input_feature_column_specs = 3;
+
+ // Objective function the model is optimizing towards. The training process
+ // creates a model that maximizes/minimizes the value of the objective
+ // function over the validation set.
+ //
+ // The supported optimization objectives depend on the prediction type.
+ // If the field is not set, a default objective function is used.
+ //
+ // CLASSIFICATION_BINARY:
+ // "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+ // operating characteristic (ROC) curve.
+ // "MINIMIZE_LOG_LOSS" - Minimize log loss.
+ // "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+ // "MAXIMIZE_PRECISION_AT_RECALL" - Maximize precision for a specified
+ // recall value.
+ // "MAXIMIZE_RECALL_AT_PRECISION" - Maximize recall for a specified
+ // precision value.
+ //
+ // CLASSIFICATION_MULTI_CLASS :
+ // "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+ //
+ //
+ // REGRESSION:
+ // "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+ // "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+ // "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+ string optimization_objective = 4;
+
+ // Output only. Auxiliary information for each of the
+ // input_feature_column_specs with respect to this particular model.
+ repeated TablesModelColumnInfo tables_model_column_info = 5;
+
+ // Required. 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 training cost of the model will not exceed this budget. The final cost
+ // will be attempted to be close to the budget, though may end up being (even)
+ // noticeably smaller - at the backend's discretion. This especially may
+ // happen when further model training ceases to provide any improvements.
+ //
+ // If the budget is set to a value known to be insufficient to train a
+ // model for the given dataset, the training won't be attempted and
+ // will error.
+ //
+ // The train budget must be between 1,000 and 72,000 milli node hours,
+ // inclusive.
+ int64 train_budget_milli_node_hours = 6;
+
+ // Output only. The actual training cost of the 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;
+
+ // Use the entire training budget. This disables the early stopping feature.
+ // By default, the early stopping feature is enabled, which means that AutoML
+ // Tables might stop training before the entire training budget has been used.
+ bool disable_early_stopping = 12;
+}
+
+// Contains annotation details specific to Tables.
+message TablesAnnotation {
+ // Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
+ // value means greater confidence in the returned value.
+ // For
+ //
+ // [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+ // of FLOAT64 data type the score is not populated.
+ float score = 1;
+
+ // Output only. Only populated when
+ //
+ // [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+ // has FLOAT64 data type. An interval in which the exactly correct target
+ // value has 95% chance to be in.
+ DoubleRange prediction_interval = 4;
+
+ // The predicted value of the row's
+ //
+ // [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+ // The value depends on the column's DataType:
+ //
+ // * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+ // value.
+ //
+ // * FLOAT64 - the predicted (with above `prediction_interval`) FLOAT64 value.
+ google.protobuf.Value value = 2;
+
+ // Output only. Auxiliary information for each of the model's
+ //
+ // [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ // with respect to this particular prediction.
+ // If no other fields than
+ //
+ // [column_spec_name][google.cloud.automl.v1beta1.TablesModelColumnInfo.column_spec_name]
+ // and
+ //
+ // [column_display_name][google.cloud.automl.v1beta1.TablesModelColumnInfo.column_display_name]
+ // would be populated, then this whole field is not.
+ repeated TablesModelColumnInfo tables_model_column_info = 3;
+
+ // Output only. Stores the prediction score for the baseline example, which
+ // is defined as the example with all values set to their baseline values.
+ // This is used as part of the Sampled Shapley explanation of the model's
+ // prediction. This field is populated only when feature importance is
+ // requested. For regression models, this holds the baseline prediction for
+ // the baseline example. For classification models, this holds the baseline
+ // prediction for the baseline example for the argmax class.
+ float baseline_score = 5;
+}
+
+// An information specific to given column and Tables Model, in context
+// of the Model and the predictions created by it.
+message TablesModelColumnInfo {
+ // Output only. The name of the ColumnSpec describing the column. Not
+ // populated when this proto is outputted to BigQuery.
+ string column_spec_name = 1;
+
+ // Output only. The display name of the column (same as the display_name of
+ // its ColumnSpec).
+ string column_display_name = 2;
+
+ // Output only. When given as part of a Model (always populated):
+ // Measurement of how much model predictions correctness on the TEST data
+ // depend on values in this column. A value between 0 and 1, higher means
+ // higher influence. These values are normalized - for all input feature
+ // columns of a given model they add to 1.
+ //
+ // When given back by Predict (populated iff
+ // [feature_importance
+ // param][google.cloud.automl.v1beta1.PredictRequest.params] is set) or Batch
+ // Predict (populated iff
+ // [feature_importance][google.cloud.automl.v1beta1.PredictRequest.params]
+ // param is set):
+ // Measurement of how impactful for the prediction returned for the given row
+ // the value in this column was. Specifically, the feature importance
+ // specifies the marginal contribution that the feature made to the prediction
+ // score compared to the baseline score. These values are computed using the
+ // Sampled Shapley method.
+ float feature_importance = 3;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/temporal.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/temporal.proto
new file mode 100644
index 00000000000..55bb231d0fc
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/temporal.proto
@@ -0,0 +1,36 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/protobuf/duration.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A time period inside of an example that has a time dimension (e.g. video).
+message TimeSegment {
+ // Start of the time segment (inclusive), represented as the duration since
+ // the example start.
+ google.protobuf.Duration start_time_offset = 1;
+
+ // End of the time segment (exclusive), represented as the duration since the
+ // example start.
+ google.protobuf.Duration end_time_offset = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text.proto
new file mode 100644
index 00000000000..b93376ec338
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text.proto
@@ -0,0 +1,70 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/classification.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TextProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Dataset metadata for classification.
+message TextClassificationDatasetMetadata {
+ // Required. Type of the classification problem.
+ ClassificationType classification_type = 1;
+}
+
+// Model metadata that is specific to text classification.
+message TextClassificationModelMetadata {
+ // Output only. Classification type of the dataset used to train this model.
+ ClassificationType classification_type = 3;
+}
+
+// Dataset metadata that is specific to text extraction
+message TextExtractionDatasetMetadata {
+
+}
+
+// Model metadata that is specific to text extraction.
+message TextExtractionModelMetadata {
+ // Indicates the scope of model use case.
+ //
+ // * `default`: Use to train a general text extraction model. Default value.
+ //
+ // * `health_care`: Use to train a text extraction model that is tuned for
+ // healthcare applications.
+ string model_hint = 3;
+}
+
+// Dataset metadata for text sentiment.
+message TextSentimentDatasetMetadata {
+ // Required. A sentiment is expressed as an integer ordinal, where higher value
+ // means a more positive sentiment. The range of sentiments that will be used
+ // is between 0 and sentiment_max (inclusive on both ends), and all the values
+ // in the range must be represented in the dataset before a model can be
+ // created.
+ // sentiment_max value must be between 1 and 10 (inclusive).
+ int32 sentiment_max = 1;
+}
+
+// Model metadata that is specific to text sentiment.
+message TextSentimentModelMetadata {
+
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_extraction.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_extraction.proto
new file mode 100644
index 00000000000..61afd54388d
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_extraction.proto
@@ -0,0 +1,67 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/text_segment.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Annotation for identifying spans of text.
+message TextExtractionAnnotation {
+ // Required. Text extraction annotations can either be a text segment or a
+ // text relation.
+ oneof annotation {
+ // An entity annotation will set this, which is the part of the original
+ // text to which the annotation pertains.
+ TextSegment text_segment = 3;
+ }
+
+ // Output only. A confidence estimate between 0.0 and 1.0. A higher value
+ // means greater confidence in correctness of the annotation.
+ float score = 1;
+}
+
+// Model evaluation metrics for text extraction problems.
+message TextExtractionEvaluationMetrics {
+ // Metrics for a single confidence threshold.
+ message ConfidenceMetricsEntry {
+ // Output only. The confidence threshold value used to compute the metrics.
+ // Only annotations with score of at least this threshold are considered to
+ // be ones the model would return.
+ float confidence_threshold = 1;
+
+ // Output only. Recall under the given confidence threshold.
+ float recall = 3;
+
+ // Output only. Precision under the given confidence threshold.
+ float precision = 4;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 5;
+ }
+
+ // Output only. The Area under precision recall curve metric.
+ float au_prc = 1;
+
+ // Output only. Metrics that have confidence thresholds.
+ // Precision-recall curve can be derived from it.
+ repeated ConfidenceMetricsEntry confidence_metrics_entries = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_segment.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_segment.proto
new file mode 100644
index 00000000000..451279c4461
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_segment.proto
@@ -0,0 +1,40 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TextSegmentProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
+message TextSegment {
+ // Output only. The content of the TextSegment.
+ string content = 3;
+
+ // Required. Zero-based character index of the first character of the text
+ // segment (counting characters from the beginning of the text).
+ int64 start_offset = 1;
+
+ // Required. Zero-based character index of the first character past the end of
+ // the text segment (counting character from the beginning of the text).
+ // The character at the end_offset is NOT included in the text segment.
+ int64 end_offset = 2;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_sentiment.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_sentiment.proto
new file mode 100644
index 00000000000..a5b2c005e95
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/text_sentiment.proto
@@ -0,0 +1,79 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/classification.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_outer_classname = "TextSentimentProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Contains annotation details specific to text sentiment.
+message TextSentimentAnnotation {
+ // Output only. The sentiment with the semantic, as given to the
+ // [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
+ // for the prediction had been trained.
+ // The sentiment values are between 0 and
+ // Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+ // with higher value meaning more positive sentiment. They are completely
+ // relative, i.e. 0 means least positive sentiment and sentiment_max means
+ // the most positive from the sentiments present in the train data. Therefore
+ // e.g. if train data had only negative sentiment, then sentiment_max, would
+ // be still negative (although least negative).
+ // The sentiment shouldn't be confused with "score" or "magnitude"
+ // from the previous Natural Language Sentiment Analysis API.
+ int32 sentiment = 1;
+}
+
+// Model evaluation metrics for text sentiment problems.
+message TextSentimentEvaluationMetrics {
+ // Output only. Precision.
+ float precision = 1;
+
+ // Output only. Recall.
+ float recall = 2;
+
+ // Output only. The harmonic mean of recall and precision.
+ float f1_score = 3;
+
+ // Output only. Mean absolute error. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float mean_absolute_error = 4;
+
+ // Output only. Mean squared error. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float mean_squared_error = 5;
+
+ // Output only. Linear weighted kappa. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float linear_kappa = 6;
+
+ // Output only. Quadratic weighted kappa. Only set for the overall model
+ // evaluation, not for evaluation of a single annotation spec.
+ float quadratic_kappa = 7;
+
+ // Output only. Confusion matrix of the evaluation.
+ // Only set for the overall model evaluation, not for evaluation of a single
+ // annotation spec.
+ ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
+
+ // Output only. The annotation spec ids used for this evaluation.
+ // Deprecated .
+ repeated string annotation_spec_id = 9 [deprecated = true];
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/translation.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/translation.proto
new file mode 100644
index 00000000000..7aefb42bb82
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/translation.proto
@@ -0,0 +1,68 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/automl/v1beta1/data_items.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "TranslationProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Dataset metadata that is specific to translation.
+message TranslationDatasetMetadata {
+ // Required. The BCP-47 language code of the source language.
+ string source_language_code = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The BCP-47 language code of the target language.
+ string target_language_code = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Evaluation metrics for the dataset.
+message TranslationEvaluationMetrics {
+ // Output only. BLEU score.
+ double bleu_score = 1;
+
+ // Output only. BLEU score for base model.
+ double base_bleu_score = 2;
+}
+
+// Model metadata that is specific to translation.
+message TranslationModelMetadata {
+ // The resource name of the model to use as a baseline to train the custom
+ // model. If unset, we use the default base model provided by Google
+ // Translate. Format:
+ // `projects/{project_id}/locations/{location_id}/models/{model_id}`
+ string base_model = 1;
+
+ // Output only. Inferred from the dataset.
+ // The source languge (The BCP-47 language code) that is used for training.
+ string source_language_code = 2;
+
+ // Output only. The target languge (The BCP-47 language code) that is used for
+ // training.
+ string target_language_code = 3;
+}
+
+// Annotation details specific to translation.
+message TranslationAnnotation {
+ // Output only . The translated content.
+ TextSnippet translated_content = 1;
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/video.proto b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/video.proto
new file mode 100644
index 00000000000..872adb8045a
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/automl/v1beta1/video.proto
@@ -0,0 +1,47 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.automl.v1beta1;
+
+import "google/cloud/automl/v1beta1/classification.proto";
+
+option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
+option java_multiple_files = true;
+option java_outer_classname = "VideoProto";
+option java_package = "com.google.cloud.automl.v1beta1";
+option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
+option ruby_package = "Google::Cloud::AutoML::V1beta1";
+
+// Dataset metadata specific to video classification.
+// All Video Classification datasets are treated as multi label.
+message VideoClassificationDatasetMetadata {
+
+}
+
+// Dataset metadata specific to video object tracking.
+message VideoObjectTrackingDatasetMetadata {
+
+}
+
+// Model metadata specific to video classification.
+message VideoClassificationModelMetadata {
+
+}
+
+// Model metadata specific to video object tracking.
+message VideoObjectTrackingModelMetadata {
+
+}
diff --git a/packages/google-cloud-automl/protos/google/cloud/common_resources.proto b/packages/google-cloud-automl/protos/google/cloud/common_resources.proto
new file mode 100644
index 00000000000..56c9f800d5e
--- /dev/null
+++ b/packages/google-cloud-automl/protos/google/cloud/common_resources.proto
@@ -0,0 +1,52 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This file contains stub messages for common resources in GCP.
+// It is not intended to be directly generated, and is instead used by
+// other tooling to be able to match common resource patterns.
+syntax = "proto3";
+
+package google.cloud;
+
+import "google/api/resource.proto";
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ pattern: "projects/{project}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Organization"
+ pattern: "organizations/{organization}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Folder"
+ pattern: "folders/{folder}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudbilling.googleapis.com/BillingAccount"
+ pattern: "billingAccounts/{billing_account}"
+};
+
+option (google.api.resource_definition) = {
+ type: "locations.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+
diff --git a/packages/google-cloud-automl/protos/protos.d.ts b/packages/google-cloud-automl/protos/protos.d.ts
new file mode 100644
index 00000000000..cbf037d1921
--- /dev/null
+++ b/packages/google-cloud-automl/protos/protos.d.ts
@@ -0,0 +1,32931 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace automl. */
+ namespace automl {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of an AnnotationPayload. */
+ interface IAnnotationPayload {
+
+ /** AnnotationPayload translation */
+ translation?: (google.cloud.automl.v1.ITranslationAnnotation|null);
+
+ /** AnnotationPayload classification */
+ classification?: (google.cloud.automl.v1.IClassificationAnnotation|null);
+
+ /** AnnotationPayload imageObjectDetection */
+ imageObjectDetection?: (google.cloud.automl.v1.IImageObjectDetectionAnnotation|null);
+
+ /** AnnotationPayload textExtraction */
+ textExtraction?: (google.cloud.automl.v1.ITextExtractionAnnotation|null);
+
+ /** AnnotationPayload textSentiment */
+ textSentiment?: (google.cloud.automl.v1.ITextSentimentAnnotation|null);
+
+ /** AnnotationPayload annotationSpecId */
+ annotationSpecId?: (string|null);
+
+ /** AnnotationPayload displayName */
+ displayName?: (string|null);
+ }
+
+ /** Represents an AnnotationPayload. */
+ class AnnotationPayload implements IAnnotationPayload {
+
+ /**
+ * Constructs a new AnnotationPayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IAnnotationPayload);
+
+ /** AnnotationPayload translation. */
+ public translation?: (google.cloud.automl.v1.ITranslationAnnotation|null);
+
+ /** AnnotationPayload classification. */
+ public classification?: (google.cloud.automl.v1.IClassificationAnnotation|null);
+
+ /** AnnotationPayload imageObjectDetection. */
+ public imageObjectDetection?: (google.cloud.automl.v1.IImageObjectDetectionAnnotation|null);
+
+ /** AnnotationPayload textExtraction. */
+ public textExtraction?: (google.cloud.automl.v1.ITextExtractionAnnotation|null);
+
+ /** AnnotationPayload textSentiment. */
+ public textSentiment?: (google.cloud.automl.v1.ITextSentimentAnnotation|null);
+
+ /** AnnotationPayload annotationSpecId. */
+ public annotationSpecId: string;
+
+ /** AnnotationPayload displayName. */
+ public displayName: string;
+
+ /** AnnotationPayload detail. */
+ public detail?: ("translation"|"classification"|"imageObjectDetection"|"textExtraction"|"textSentiment");
+
+ /**
+ * Creates a new AnnotationPayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationPayload instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IAnnotationPayload): google.cloud.automl.v1.AnnotationPayload;
+
+ /**
+ * Encodes the specified AnnotationPayload message. Does not implicitly {@link google.cloud.automl.v1.AnnotationPayload.verify|verify} messages.
+ * @param message AnnotationPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IAnnotationPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationPayload message, length delimited. Does not implicitly {@link google.cloud.automl.v1.AnnotationPayload.verify|verify} messages.
+ * @param message AnnotationPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IAnnotationPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationPayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.AnnotationPayload;
+
+ /**
+ * Decodes an AnnotationPayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.AnnotationPayload;
+
+ /**
+ * Verifies an AnnotationPayload message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an AnnotationPayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationPayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.AnnotationPayload;
+
+ /**
+ * Creates a plain object from an AnnotationPayload message. Also converts values to other types if specified.
+ * @param message AnnotationPayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.AnnotationPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationPayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationPayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** ClassificationType enum. */
+ enum ClassificationType {
+ CLASSIFICATION_TYPE_UNSPECIFIED = 0,
+ MULTICLASS = 1,
+ MULTILABEL = 2
+ }
+
+ /** Properties of a ClassificationAnnotation. */
+ interface IClassificationAnnotation {
+
+ /** ClassificationAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents a ClassificationAnnotation. */
+ class ClassificationAnnotation implements IClassificationAnnotation {
+
+ /**
+ * Constructs a new ClassificationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IClassificationAnnotation);
+
+ /** ClassificationAnnotation score. */
+ public score: number;
+
+ /**
+ * Creates a new ClassificationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClassificationAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IClassificationAnnotation): google.cloud.automl.v1.ClassificationAnnotation;
+
+ /**
+ * Encodes the specified ClassificationAnnotation message. Does not implicitly {@link google.cloud.automl.v1.ClassificationAnnotation.verify|verify} messages.
+ * @param message ClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationAnnotation.verify|verify} messages.
+ * @param message ClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClassificationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ClassificationAnnotation;
+
+ /**
+ * Decodes a ClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ClassificationAnnotation;
+
+ /**
+ * Verifies a ClassificationAnnotation 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 ClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClassificationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ClassificationAnnotation;
+
+ /**
+ * Creates a plain object from a ClassificationAnnotation message. Also converts values to other types if specified.
+ * @param message ClassificationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClassificationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClassificationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClassificationEvaluationMetrics. */
+ interface IClassificationEvaluationMetrics {
+
+ /** ClassificationEvaluationMetrics auPrc */
+ auPrc?: (number|null);
+
+ /** ClassificationEvaluationMetrics auRoc */
+ auRoc?: (number|null);
+
+ /** ClassificationEvaluationMetrics logLoss */
+ logLoss?: (number|null);
+
+ /** ClassificationEvaluationMetrics confidenceMetricsEntry */
+ confidenceMetricsEntry?: (google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry[]|null);
+
+ /** ClassificationEvaluationMetrics confusionMatrix */
+ confusionMatrix?: (google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /** ClassificationEvaluationMetrics annotationSpecId */
+ annotationSpecId?: (string[]|null);
+ }
+
+ /** Represents a ClassificationEvaluationMetrics. */
+ class ClassificationEvaluationMetrics implements IClassificationEvaluationMetrics {
+
+ /**
+ * Constructs a new ClassificationEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IClassificationEvaluationMetrics);
+
+ /** ClassificationEvaluationMetrics auPrc. */
+ public auPrc: number;
+
+ /** ClassificationEvaluationMetrics auRoc. */
+ public auRoc: number;
+
+ /** ClassificationEvaluationMetrics logLoss. */
+ public logLoss: number;
+
+ /** ClassificationEvaluationMetrics confidenceMetricsEntry. */
+ public confidenceMetricsEntry: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry[];
+
+ /** ClassificationEvaluationMetrics confusionMatrix. */
+ public confusionMatrix?: (google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /** ClassificationEvaluationMetrics annotationSpecId. */
+ public annotationSpecId: string[];
+
+ /**
+ * Creates a new ClassificationEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClassificationEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IClassificationEvaluationMetrics): google.cloud.automl.v1.ClassificationEvaluationMetrics;
+
+ /**
+ * Encodes the specified ClassificationEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.verify|verify} messages.
+ * @param message ClassificationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IClassificationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClassificationEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.verify|verify} messages.
+ * @param message ClassificationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IClassificationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClassificationEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClassificationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ClassificationEvaluationMetrics;
+
+ /**
+ * Decodes a ClassificationEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClassificationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ClassificationEvaluationMetrics;
+
+ /**
+ * Verifies a ClassificationEvaluationMetrics 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 ClassificationEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClassificationEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ClassificationEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a ClassificationEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message ClassificationEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ClassificationEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClassificationEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClassificationEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ClassificationEvaluationMetrics {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry positionThreshold */
+ positionThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry falsePositiveRate */
+ falsePositiveRate?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+
+ /** ConfidenceMetricsEntry recallAt1 */
+ recallAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry precisionAt1 */
+ precisionAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry falsePositiveRateAt1 */
+ falsePositiveRateAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry f1ScoreAt1 */
+ f1ScoreAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry truePositiveCount */
+ truePositiveCount?: (number|Long|string|null);
+
+ /** ConfidenceMetricsEntry falsePositiveCount */
+ falsePositiveCount?: (number|Long|string|null);
+
+ /** ConfidenceMetricsEntry falseNegativeCount */
+ falseNegativeCount?: (number|Long|string|null);
+
+ /** ConfidenceMetricsEntry trueNegativeCount */
+ trueNegativeCount?: (number|Long|string|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry positionThreshold. */
+ public positionThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry falsePositiveRate. */
+ public falsePositiveRate: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /** ConfidenceMetricsEntry recallAt1. */
+ public recallAt1: number;
+
+ /** ConfidenceMetricsEntry precisionAt1. */
+ public precisionAt1: number;
+
+ /** ConfidenceMetricsEntry falsePositiveRateAt1. */
+ public falsePositiveRateAt1: number;
+
+ /** ConfidenceMetricsEntry f1ScoreAt1. */
+ public f1ScoreAt1: number;
+
+ /** ConfidenceMetricsEntry truePositiveCount. */
+ public truePositiveCount: (number|Long|string);
+
+ /** ConfidenceMetricsEntry falsePositiveCount. */
+ public falsePositiveCount: (number|Long|string);
+
+ /** ConfidenceMetricsEntry falseNegativeCount. */
+ public falseNegativeCount: (number|Long|string);
+
+ /** ConfidenceMetricsEntry trueNegativeCount. */
+ public trueNegativeCount: (number|Long|string);
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry 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 ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConfusionMatrix. */
+ interface IConfusionMatrix {
+
+ /** ConfusionMatrix annotationSpecId */
+ annotationSpecId?: (string[]|null);
+
+ /** ConfusionMatrix displayName */
+ displayName?: (string[]|null);
+
+ /** ConfusionMatrix row */
+ row?: (google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow[]|null);
+ }
+
+ /** Represents a ConfusionMatrix. */
+ class ConfusionMatrix implements IConfusionMatrix {
+
+ /**
+ * Constructs a new ConfusionMatrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix);
+
+ /** ConfusionMatrix annotationSpecId. */
+ public annotationSpecId: string[];
+
+ /** ConfusionMatrix displayName. */
+ public displayName: string[];
+
+ /** ConfusionMatrix row. */
+ public row: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow[];
+
+ /**
+ * Creates a new ConfusionMatrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfusionMatrix instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Encodes the specified ConfusionMatrix message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfusionMatrix message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Verifies a ConfusionMatrix 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 ConfusionMatrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfusionMatrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Creates a plain object from a ConfusionMatrix message. Also converts values to other types if specified.
+ * @param message ConfusionMatrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfusionMatrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfusionMatrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConfusionMatrix {
+
+ /** Properties of a Row. */
+ interface IRow {
+
+ /** Row exampleCount */
+ exampleCount?: (number[]|null);
+ }
+
+ /** Represents a Row. */
+ class Row implements IRow {
+
+ /**
+ * Constructs a new Row.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow);
+
+ /** Row exampleCount. */
+ public exampleCount: number[];
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Row instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Verifies a Row 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 Row message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Row
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @param message Row
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Row to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Row
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of an ImageObjectDetectionAnnotation. */
+ interface IImageObjectDetectionAnnotation {
+
+ /** ImageObjectDetectionAnnotation boundingBox */
+ boundingBox?: (google.cloud.automl.v1.IBoundingPoly|null);
+
+ /** ImageObjectDetectionAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents an ImageObjectDetectionAnnotation. */
+ class ImageObjectDetectionAnnotation implements IImageObjectDetectionAnnotation {
+
+ /**
+ * Constructs a new ImageObjectDetectionAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageObjectDetectionAnnotation);
+
+ /** ImageObjectDetectionAnnotation boundingBox. */
+ public boundingBox?: (google.cloud.automl.v1.IBoundingPoly|null);
+
+ /** ImageObjectDetectionAnnotation score. */
+ public score: number;
+
+ /**
+ * Creates a new ImageObjectDetectionAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageObjectDetectionAnnotation): google.cloud.automl.v1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Encodes the specified ImageObjectDetectionAnnotation message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionAnnotation.verify|verify} messages.
+ * @param message ImageObjectDetectionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageObjectDetectionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionAnnotation.verify|verify} messages.
+ * @param message ImageObjectDetectionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageObjectDetectionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Decodes an ImageObjectDetectionAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Verifies an ImageObjectDetectionAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionAnnotation message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageObjectDetectionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingBoxMetricsEntry. */
+ interface IBoundingBoxMetricsEntry {
+
+ /** BoundingBoxMetricsEntry iouThreshold */
+ iouThreshold?: (number|null);
+
+ /** BoundingBoxMetricsEntry meanAveragePrecision */
+ meanAveragePrecision?: (number|null);
+
+ /** BoundingBoxMetricsEntry confidenceMetricsEntries */
+ confidenceMetricsEntries?: (google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry[]|null);
+ }
+
+ /** Represents a BoundingBoxMetricsEntry. */
+ class BoundingBoxMetricsEntry implements IBoundingBoxMetricsEntry {
+
+ /**
+ * Constructs a new BoundingBoxMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBoundingBoxMetricsEntry);
+
+ /** BoundingBoxMetricsEntry iouThreshold. */
+ public iouThreshold: number;
+
+ /** BoundingBoxMetricsEntry meanAveragePrecision. */
+ public meanAveragePrecision: number;
+
+ /** BoundingBoxMetricsEntry confidenceMetricsEntries. */
+ public confidenceMetricsEntries: google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry[];
+
+ /**
+ * Creates a new BoundingBoxMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingBoxMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBoundingBoxMetricsEntry): google.cloud.automl.v1.BoundingBoxMetricsEntry;
+
+ /**
+ * Encodes the specified BoundingBoxMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.verify|verify} messages.
+ * @param message BoundingBoxMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBoundingBoxMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingBoxMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.verify|verify} messages.
+ * @param message BoundingBoxMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBoundingBoxMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingBoxMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingBoxMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BoundingBoxMetricsEntry;
+
+ /**
+ * Decodes a BoundingBoxMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingBoxMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BoundingBoxMetricsEntry;
+
+ /**
+ * Verifies a BoundingBoxMetricsEntry 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 BoundingBoxMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingBoxMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BoundingBoxMetricsEntry;
+
+ /**
+ * Creates a plain object from a BoundingBoxMetricsEntry message. Also converts values to other types if specified.
+ * @param message BoundingBoxMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BoundingBoxMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingBoxMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingBoxMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BoundingBoxMetricsEntry {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry): google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry 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 ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ImageObjectDetectionEvaluationMetrics. */
+ interface IImageObjectDetectionEvaluationMetrics {
+
+ /** ImageObjectDetectionEvaluationMetrics evaluatedBoundingBoxCount */
+ evaluatedBoundingBoxCount?: (number|null);
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMetricsEntries */
+ boundingBoxMetricsEntries?: (google.cloud.automl.v1.IBoundingBoxMetricsEntry[]|null);
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMeanAveragePrecision */
+ boundingBoxMeanAveragePrecision?: (number|null);
+ }
+
+ /** Represents an ImageObjectDetectionEvaluationMetrics. */
+ class ImageObjectDetectionEvaluationMetrics implements IImageObjectDetectionEvaluationMetrics {
+
+ /**
+ * Constructs a new ImageObjectDetectionEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics);
+
+ /** ImageObjectDetectionEvaluationMetrics evaluatedBoundingBoxCount. */
+ public evaluatedBoundingBoxCount: number;
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMetricsEntries. */
+ public boundingBoxMetricsEntries: google.cloud.automl.v1.IBoundingBoxMetricsEntry[];
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMeanAveragePrecision. */
+ public boundingBoxMeanAveragePrecision: number;
+
+ /**
+ * Creates a new ImageObjectDetectionEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics): google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Encodes the specified ImageObjectDetectionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.verify|verify} messages.
+ * @param message ImageObjectDetectionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.verify|verify} messages.
+ * @param message ImageObjectDetectionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Decodes an ImageObjectDetectionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Verifies an ImageObjectDetectionEvaluationMetrics message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NormalizedVertex. */
+ interface INormalizedVertex {
+
+ /** NormalizedVertex x */
+ x?: (number|null);
+
+ /** NormalizedVertex y */
+ y?: (number|null);
+ }
+
+ /** Represents a NormalizedVertex. */
+ class NormalizedVertex implements INormalizedVertex {
+
+ /**
+ * Constructs a new NormalizedVertex.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.INormalizedVertex);
+
+ /** NormalizedVertex x. */
+ public x: number;
+
+ /** NormalizedVertex y. */
+ public y: number;
+
+ /**
+ * Creates a new NormalizedVertex instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedVertex instance
+ */
+ public static create(properties?: google.cloud.automl.v1.INormalizedVertex): google.cloud.automl.v1.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.automl.v1.NormalizedVertex.verify|verify} messages.
+ * @param message NormalizedVertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.automl.v1.NormalizedVertex.verify|verify} messages.
+ * @param message NormalizedVertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.NormalizedVertex;
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.NormalizedVertex;
+
+ /**
+ * Verifies a NormalizedVertex 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 NormalizedVertex message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedVertex
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.NormalizedVertex;
+
+ /**
+ * Creates a plain object from a NormalizedVertex message. Also converts values to other types if specified.
+ * @param message NormalizedVertex
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.NormalizedVertex, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedVertex to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedVertex
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingPoly. */
+ interface IBoundingPoly {
+
+ /** BoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.automl.v1.INormalizedVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBoundingPoly);
+
+ /** BoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.automl.v1.INormalizedVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBoundingPoly): google.cloud.automl.v1.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.automl.v1.BoundingPoly.verify|verify} messages.
+ * @param message BoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BoundingPoly.verify|verify} messages.
+ * @param message BoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BoundingPoly;
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BoundingPoly;
+
+ /**
+ * Verifies a BoundingPoly 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 BoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingPoly
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BoundingPoly;
+
+ /**
+ * Creates a plain object from a BoundingPoly message. Also converts values to other types if specified.
+ * @param message BoundingPoly
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BoundingPoly, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingPoly to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingPoly
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionAnnotation. */
+ interface ITextExtractionAnnotation {
+
+ /** TextExtractionAnnotation textSegment */
+ textSegment?: (google.cloud.automl.v1.ITextSegment|null);
+
+ /** TextExtractionAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents a TextExtractionAnnotation. */
+ class TextExtractionAnnotation implements ITextExtractionAnnotation {
+
+ /**
+ * Constructs a new TextExtractionAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextExtractionAnnotation);
+
+ /** TextExtractionAnnotation textSegment. */
+ public textSegment?: (google.cloud.automl.v1.ITextSegment|null);
+
+ /** TextExtractionAnnotation score. */
+ public score: number;
+
+ /** TextExtractionAnnotation annotation. */
+ public annotation?: "textSegment";
+
+ /**
+ * Creates a new TextExtractionAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextExtractionAnnotation): google.cloud.automl.v1.TextExtractionAnnotation;
+
+ /**
+ * Encodes the specified TextExtractionAnnotation message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionAnnotation.verify|verify} messages.
+ * @param message TextExtractionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionAnnotation.verify|verify} messages.
+ * @param message TextExtractionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextExtractionAnnotation;
+
+ /**
+ * Decodes a TextExtractionAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextExtractionAnnotation;
+
+ /**
+ * Verifies a TextExtractionAnnotation 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 TextExtractionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextExtractionAnnotation;
+
+ /**
+ * Creates a plain object from a TextExtractionAnnotation message. Also converts values to other types if specified.
+ * @param message TextExtractionAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextExtractionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionEvaluationMetrics. */
+ interface ITextExtractionEvaluationMetrics {
+
+ /** TextExtractionEvaluationMetrics auPrc */
+ auPrc?: (number|null);
+
+ /** TextExtractionEvaluationMetrics confidenceMetricsEntries */
+ confidenceMetricsEntries?: (google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry[]|null);
+ }
+
+ /** Represents a TextExtractionEvaluationMetrics. */
+ class TextExtractionEvaluationMetrics implements ITextExtractionEvaluationMetrics {
+
+ /**
+ * Constructs a new TextExtractionEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextExtractionEvaluationMetrics);
+
+ /** TextExtractionEvaluationMetrics auPrc. */
+ public auPrc: number;
+
+ /** TextExtractionEvaluationMetrics confidenceMetricsEntries. */
+ public confidenceMetricsEntries: google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry[];
+
+ /**
+ * Creates a new TextExtractionEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextExtractionEvaluationMetrics): google.cloud.automl.v1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Encodes the specified TextExtractionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.verify|verify} messages.
+ * @param message TextExtractionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextExtractionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.verify|verify} messages.
+ * @param message TextExtractionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextExtractionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Decodes a TextExtractionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Verifies a TextExtractionEvaluationMetrics 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 TextExtractionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a TextExtractionEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message TextExtractionEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextExtractionEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TextExtractionEvaluationMetrics {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry): google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry 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 ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TextSegment. */
+ interface ITextSegment {
+
+ /** TextSegment content */
+ content?: (string|null);
+
+ /** TextSegment startOffset */
+ startOffset?: (number|Long|string|null);
+
+ /** TextSegment endOffset */
+ endOffset?: (number|Long|string|null);
+ }
+
+ /** Represents a TextSegment. */
+ class TextSegment implements ITextSegment {
+
+ /**
+ * Constructs a new TextSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextSegment);
+
+ /** TextSegment content. */
+ public content: string;
+
+ /** TextSegment startOffset. */
+ public startOffset: (number|Long|string);
+
+ /** TextSegment endOffset. */
+ public endOffset: (number|Long|string);
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSegment instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextSegment): google.cloud.automl.v1.TextSegment;
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.automl.v1.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextSegment;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextSegment;
+
+ /**
+ * Verifies a TextSegment 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 TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextSegment;
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @param message TextSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentAnnotation. */
+ interface ITextSentimentAnnotation {
+
+ /** TextSentimentAnnotation sentiment */
+ sentiment?: (number|null);
+ }
+
+ /** Represents a TextSentimentAnnotation. */
+ class TextSentimentAnnotation implements ITextSentimentAnnotation {
+
+ /**
+ * Constructs a new TextSentimentAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextSentimentAnnotation);
+
+ /** TextSentimentAnnotation sentiment. */
+ public sentiment: number;
+
+ /**
+ * Creates a new TextSentimentAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextSentimentAnnotation): google.cloud.automl.v1.TextSentimentAnnotation;
+
+ /**
+ * Encodes the specified TextSentimentAnnotation message. Does not implicitly {@link google.cloud.automl.v1.TextSentimentAnnotation.verify|verify} messages.
+ * @param message TextSentimentAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextSentimentAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSentimentAnnotation.verify|verify} messages.
+ * @param message TextSentimentAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextSentimentAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextSentimentAnnotation;
+
+ /**
+ * Decodes a TextSentimentAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextSentimentAnnotation;
+
+ /**
+ * Verifies a TextSentimentAnnotation 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 TextSentimentAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextSentimentAnnotation;
+
+ /**
+ * Creates a plain object from a TextSentimentAnnotation message. Also converts values to other types if specified.
+ * @param message TextSentimentAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextSentimentAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentEvaluationMetrics. */
+ interface ITextSentimentEvaluationMetrics {
+
+ /** TextSentimentEvaluationMetrics precision */
+ precision?: (number|null);
+
+ /** TextSentimentEvaluationMetrics recall */
+ recall?: (number|null);
+
+ /** TextSentimentEvaluationMetrics f1Score */
+ f1Score?: (number|null);
+
+ /** TextSentimentEvaluationMetrics meanAbsoluteError */
+ meanAbsoluteError?: (number|null);
+
+ /** TextSentimentEvaluationMetrics meanSquaredError */
+ meanSquaredError?: (number|null);
+
+ /** TextSentimentEvaluationMetrics linearKappa */
+ linearKappa?: (number|null);
+
+ /** TextSentimentEvaluationMetrics quadraticKappa */
+ quadraticKappa?: (number|null);
+
+ /** TextSentimentEvaluationMetrics confusionMatrix */
+ confusionMatrix?: (google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+ }
+
+ /** Represents a TextSentimentEvaluationMetrics. */
+ class TextSentimentEvaluationMetrics implements ITextSentimentEvaluationMetrics {
+
+ /**
+ * Constructs a new TextSentimentEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextSentimentEvaluationMetrics);
+
+ /** TextSentimentEvaluationMetrics precision. */
+ public precision: number;
+
+ /** TextSentimentEvaluationMetrics recall. */
+ public recall: number;
+
+ /** TextSentimentEvaluationMetrics f1Score. */
+ public f1Score: number;
+
+ /** TextSentimentEvaluationMetrics meanAbsoluteError. */
+ public meanAbsoluteError: number;
+
+ /** TextSentimentEvaluationMetrics meanSquaredError. */
+ public meanSquaredError: number;
+
+ /** TextSentimentEvaluationMetrics linearKappa. */
+ public linearKappa: number;
+
+ /** TextSentimentEvaluationMetrics quadraticKappa. */
+ public quadraticKappa: number;
+
+ /** TextSentimentEvaluationMetrics confusionMatrix. */
+ public confusionMatrix?: (google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /**
+ * Creates a new TextSentimentEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextSentimentEvaluationMetrics): google.cloud.automl.v1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Encodes the specified TextSentimentEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.TextSentimentEvaluationMetrics.verify|verify} messages.
+ * @param message TextSentimentEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextSentimentEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSentimentEvaluationMetrics.verify|verify} messages.
+ * @param message TextSentimentEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextSentimentEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Decodes a TextSentimentEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Verifies a TextSentimentEvaluationMetrics 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 TextSentimentEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a TextSentimentEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message TextSentimentEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextSentimentEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationDatasetMetadata. */
+ interface ITranslationDatasetMetadata {
+
+ /** TranslationDatasetMetadata sourceLanguageCode */
+ sourceLanguageCode?: (string|null);
+
+ /** TranslationDatasetMetadata targetLanguageCode */
+ targetLanguageCode?: (string|null);
+ }
+
+ /** Represents a TranslationDatasetMetadata. */
+ class TranslationDatasetMetadata implements ITranslationDatasetMetadata {
+
+ /**
+ * Constructs a new TranslationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITranslationDatasetMetadata);
+
+ /** TranslationDatasetMetadata sourceLanguageCode. */
+ public sourceLanguageCode: string;
+
+ /** TranslationDatasetMetadata targetLanguageCode. */
+ public targetLanguageCode: string;
+
+ /**
+ * Creates a new TranslationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITranslationDatasetMetadata): google.cloud.automl.v1.TranslationDatasetMetadata;
+
+ /**
+ * Encodes the specified TranslationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.TranslationDatasetMetadata.verify|verify} messages.
+ * @param message TranslationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITranslationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationDatasetMetadata.verify|verify} messages.
+ * @param message TranslationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITranslationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TranslationDatasetMetadata;
+
+ /**
+ * Decodes a TranslationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TranslationDatasetMetadata;
+
+ /**
+ * Verifies a TranslationDatasetMetadata 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 TranslationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TranslationDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TranslationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TranslationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TranslationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationEvaluationMetrics. */
+ interface ITranslationEvaluationMetrics {
+
+ /** TranslationEvaluationMetrics bleuScore */
+ bleuScore?: (number|null);
+
+ /** TranslationEvaluationMetrics baseBleuScore */
+ baseBleuScore?: (number|null);
+ }
+
+ /** Represents a TranslationEvaluationMetrics. */
+ class TranslationEvaluationMetrics implements ITranslationEvaluationMetrics {
+
+ /**
+ * Constructs a new TranslationEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITranslationEvaluationMetrics);
+
+ /** TranslationEvaluationMetrics bleuScore. */
+ public bleuScore: number;
+
+ /** TranslationEvaluationMetrics baseBleuScore. */
+ public baseBleuScore: number;
+
+ /**
+ * Creates a new TranslationEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITranslationEvaluationMetrics): google.cloud.automl.v1.TranslationEvaluationMetrics;
+
+ /**
+ * Encodes the specified TranslationEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.TranslationEvaluationMetrics.verify|verify} messages.
+ * @param message TranslationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITranslationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationEvaluationMetrics.verify|verify} messages.
+ * @param message TranslationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITranslationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TranslationEvaluationMetrics;
+
+ /**
+ * Decodes a TranslationEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TranslationEvaluationMetrics;
+
+ /**
+ * Verifies a TranslationEvaluationMetrics 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 TranslationEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TranslationEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a TranslationEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message TranslationEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TranslationEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationModelMetadata. */
+ interface ITranslationModelMetadata {
+
+ /** TranslationModelMetadata baseModel */
+ baseModel?: (string|null);
+
+ /** TranslationModelMetadata sourceLanguageCode */
+ sourceLanguageCode?: (string|null);
+
+ /** TranslationModelMetadata targetLanguageCode */
+ targetLanguageCode?: (string|null);
+ }
+
+ /** Represents a TranslationModelMetadata. */
+ class TranslationModelMetadata implements ITranslationModelMetadata {
+
+ /**
+ * Constructs a new TranslationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITranslationModelMetadata);
+
+ /** TranslationModelMetadata baseModel. */
+ public baseModel: string;
+
+ /** TranslationModelMetadata sourceLanguageCode. */
+ public sourceLanguageCode: string;
+
+ /** TranslationModelMetadata targetLanguageCode. */
+ public targetLanguageCode: string;
+
+ /**
+ * Creates a new TranslationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITranslationModelMetadata): google.cloud.automl.v1.TranslationModelMetadata;
+
+ /**
+ * Encodes the specified TranslationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.TranslationModelMetadata.verify|verify} messages.
+ * @param message TranslationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITranslationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationModelMetadata.verify|verify} messages.
+ * @param message TranslationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITranslationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TranslationModelMetadata;
+
+ /**
+ * Decodes a TranslationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TranslationModelMetadata;
+
+ /**
+ * Verifies a TranslationModelMetadata 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 TranslationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TranslationModelMetadata;
+
+ /**
+ * Creates a plain object from a TranslationModelMetadata message. Also converts values to other types if specified.
+ * @param message TranslationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TranslationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationAnnotation. */
+ interface ITranslationAnnotation {
+
+ /** TranslationAnnotation translatedContent */
+ translatedContent?: (google.cloud.automl.v1.ITextSnippet|null);
+ }
+
+ /** Represents a TranslationAnnotation. */
+ class TranslationAnnotation implements ITranslationAnnotation {
+
+ /**
+ * Constructs a new TranslationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITranslationAnnotation);
+
+ /** TranslationAnnotation translatedContent. */
+ public translatedContent?: (google.cloud.automl.v1.ITextSnippet|null);
+
+ /**
+ * Creates a new TranslationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITranslationAnnotation): google.cloud.automl.v1.TranslationAnnotation;
+
+ /**
+ * Encodes the specified TranslationAnnotation message. Does not implicitly {@link google.cloud.automl.v1.TranslationAnnotation.verify|verify} messages.
+ * @param message TranslationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITranslationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationAnnotation.verify|verify} messages.
+ * @param message TranslationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITranslationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TranslationAnnotation;
+
+ /**
+ * Decodes a TranslationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TranslationAnnotation;
+
+ /**
+ * Verifies a TranslationAnnotation 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 TranslationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TranslationAnnotation;
+
+ /**
+ * Creates a plain object from a TranslationAnnotation message. Also converts values to other types if specified.
+ * @param message TranslationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TranslationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Image. */
+ interface IImage {
+
+ /** Image imageBytes */
+ imageBytes?: (Uint8Array|string|null);
+
+ /** Image thumbnailUri */
+ thumbnailUri?: (string|null);
+ }
+
+ /** Represents an Image. */
+ class Image implements IImage {
+
+ /**
+ * Constructs a new Image.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImage);
+
+ /** Image imageBytes. */
+ public imageBytes?: (Uint8Array|string|null);
+
+ /** Image thumbnailUri. */
+ public thumbnailUri: string;
+
+ /** Image data. */
+ public data?: "imageBytes";
+
+ /**
+ * Creates a new Image instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Image instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImage): google.cloud.automl.v1.Image;
+
+ /**
+ * Encodes the specified Image message. Does not implicitly {@link google.cloud.automl.v1.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Image message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.Image;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.Image;
+
+ /**
+ * Verifies an Image message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Image message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Image
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.Image;
+
+ /**
+ * Creates a plain object from an Image message. Also converts values to other types if specified.
+ * @param message Image
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.Image, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Image to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Image
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSnippet. */
+ interface ITextSnippet {
+
+ /** TextSnippet content */
+ content?: (string|null);
+
+ /** TextSnippet mimeType */
+ mimeType?: (string|null);
+
+ /** TextSnippet contentUri */
+ contentUri?: (string|null);
+ }
+
+ /** Represents a TextSnippet. */
+ class TextSnippet implements ITextSnippet {
+
+ /**
+ * Constructs a new TextSnippet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextSnippet);
+
+ /** TextSnippet content. */
+ public content: string;
+
+ /** TextSnippet mimeType. */
+ public mimeType: string;
+
+ /** TextSnippet contentUri. */
+ public contentUri: string;
+
+ /**
+ * Creates a new TextSnippet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSnippet instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextSnippet): google.cloud.automl.v1.TextSnippet;
+
+ /**
+ * Encodes the specified TextSnippet message. Does not implicitly {@link google.cloud.automl.v1.TextSnippet.verify|verify} messages.
+ * @param message TextSnippet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextSnippet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSnippet message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSnippet.verify|verify} messages.
+ * @param message TextSnippet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextSnippet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSnippet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSnippet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextSnippet;
+
+ /**
+ * Decodes a TextSnippet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSnippet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextSnippet;
+
+ /**
+ * Verifies a TextSnippet 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 TextSnippet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSnippet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextSnippet;
+
+ /**
+ * Creates a plain object from a TextSnippet message. Also converts values to other types if specified.
+ * @param message TextSnippet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextSnippet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSnippet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSnippet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentDimensions. */
+ interface IDocumentDimensions {
+
+ /** DocumentDimensions unit */
+ unit?: (google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit|keyof typeof google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit|null);
+
+ /** DocumentDimensions width */
+ width?: (number|null);
+
+ /** DocumentDimensions height */
+ height?: (number|null);
+ }
+
+ /** Represents a DocumentDimensions. */
+ class DocumentDimensions implements IDocumentDimensions {
+
+ /**
+ * Constructs a new DocumentDimensions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDocumentDimensions);
+
+ /** DocumentDimensions unit. */
+ public unit: (google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit|keyof typeof google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit);
+
+ /** DocumentDimensions width. */
+ public width: number;
+
+ /** DocumentDimensions height. */
+ public height: number;
+
+ /**
+ * Creates a new DocumentDimensions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentDimensions instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDocumentDimensions): google.cloud.automl.v1.DocumentDimensions;
+
+ /**
+ * Encodes the specified DocumentDimensions message. Does not implicitly {@link google.cloud.automl.v1.DocumentDimensions.verify|verify} messages.
+ * @param message DocumentDimensions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDocumentDimensions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentDimensions message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DocumentDimensions.verify|verify} messages.
+ * @param message DocumentDimensions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDocumentDimensions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentDimensions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentDimensions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DocumentDimensions;
+
+ /**
+ * Decodes a DocumentDimensions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentDimensions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DocumentDimensions;
+
+ /**
+ * Verifies a DocumentDimensions 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 DocumentDimensions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentDimensions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DocumentDimensions;
+
+ /**
+ * Creates a plain object from a DocumentDimensions message. Also converts values to other types if specified.
+ * @param message DocumentDimensions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DocumentDimensions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentDimensions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentDimensions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentDimensions {
+
+ /** DocumentDimensionUnit enum. */
+ enum DocumentDimensionUnit {
+ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0,
+ INCH = 1,
+ CENTIMETER = 2,
+ POINT = 3
+ }
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document inputConfig */
+ inputConfig?: (google.cloud.automl.v1.IDocumentInputConfig|null);
+
+ /** Document documentText */
+ documentText?: (google.cloud.automl.v1.ITextSnippet|null);
+
+ /** Document layout */
+ layout?: (google.cloud.automl.v1.Document.ILayout[]|null);
+
+ /** Document documentDimensions */
+ documentDimensions?: (google.cloud.automl.v1.IDocumentDimensions|null);
+
+ /** Document pageCount */
+ pageCount?: (number|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDocument);
+
+ /** Document inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1.IDocumentInputConfig|null);
+
+ /** Document documentText. */
+ public documentText?: (google.cloud.automl.v1.ITextSnippet|null);
+
+ /** Document layout. */
+ public layout: google.cloud.automl.v1.Document.ILayout[];
+
+ /** Document documentDimensions. */
+ public documentDimensions?: (google.cloud.automl.v1.IDocumentDimensions|null);
+
+ /** Document pageCount. */
+ public pageCount: number;
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDocument): google.cloud.automl.v1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.automl.v1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.Document;
+
+ /**
+ * Verifies a Document 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 Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Document {
+
+ /** Properties of a Layout. */
+ interface ILayout {
+
+ /** Layout textSegment */
+ textSegment?: (google.cloud.automl.v1.ITextSegment|null);
+
+ /** Layout pageNumber */
+ pageNumber?: (number|null);
+
+ /** Layout boundingPoly */
+ boundingPoly?: (google.cloud.automl.v1.IBoundingPoly|null);
+
+ /** Layout textSegmentType */
+ textSegmentType?: (google.cloud.automl.v1.Document.Layout.TextSegmentType|keyof typeof google.cloud.automl.v1.Document.Layout.TextSegmentType|null);
+ }
+
+ /** Represents a Layout. */
+ class Layout implements ILayout {
+
+ /**
+ * Constructs a new Layout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.Document.ILayout);
+
+ /** Layout textSegment. */
+ public textSegment?: (google.cloud.automl.v1.ITextSegment|null);
+
+ /** Layout pageNumber. */
+ public pageNumber: number;
+
+ /** Layout boundingPoly. */
+ public boundingPoly?: (google.cloud.automl.v1.IBoundingPoly|null);
+
+ /** Layout textSegmentType. */
+ public textSegmentType: (google.cloud.automl.v1.Document.Layout.TextSegmentType|keyof typeof google.cloud.automl.v1.Document.Layout.TextSegmentType);
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Layout instance
+ */
+ public static create(properties?: google.cloud.automl.v1.Document.ILayout): google.cloud.automl.v1.Document.Layout;
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.automl.v1.Document.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.Document.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Document.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.Document.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.Document.Layout;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.Document.Layout;
+
+ /**
+ * Verifies a Layout 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 Layout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Layout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.Document.Layout;
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @param message Layout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.Document.Layout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Layout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Layout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Layout {
+
+ /** TextSegmentType enum. */
+ enum TextSegmentType {
+ TEXT_SEGMENT_TYPE_UNSPECIFIED = 0,
+ TOKEN = 1,
+ PARAGRAPH = 2,
+ FORM_FIELD = 3,
+ FORM_FIELD_NAME = 4,
+ FORM_FIELD_CONTENTS = 5,
+ TABLE = 6,
+ TABLE_HEADER = 7,
+ TABLE_ROW = 8,
+ TABLE_CELL = 9
+ }
+ }
+ }
+
+ /** Properties of an ExamplePayload. */
+ interface IExamplePayload {
+
+ /** ExamplePayload image */
+ image?: (google.cloud.automl.v1.IImage|null);
+
+ /** ExamplePayload textSnippet */
+ textSnippet?: (google.cloud.automl.v1.ITextSnippet|null);
+
+ /** ExamplePayload document */
+ document?: (google.cloud.automl.v1.IDocument|null);
+ }
+
+ /** Represents an ExamplePayload. */
+ class ExamplePayload implements IExamplePayload {
+
+ /**
+ * Constructs a new ExamplePayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IExamplePayload);
+
+ /** ExamplePayload image. */
+ public image?: (google.cloud.automl.v1.IImage|null);
+
+ /** ExamplePayload textSnippet. */
+ public textSnippet?: (google.cloud.automl.v1.ITextSnippet|null);
+
+ /** ExamplePayload document. */
+ public document?: (google.cloud.automl.v1.IDocument|null);
+
+ /** ExamplePayload payload. */
+ public payload?: ("image"|"textSnippet"|"document");
+
+ /**
+ * Creates a new ExamplePayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExamplePayload instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IExamplePayload): google.cloud.automl.v1.ExamplePayload;
+
+ /**
+ * Encodes the specified ExamplePayload message. Does not implicitly {@link google.cloud.automl.v1.ExamplePayload.verify|verify} messages.
+ * @param message ExamplePayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IExamplePayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExamplePayload message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExamplePayload.verify|verify} messages.
+ * @param message ExamplePayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IExamplePayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExamplePayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExamplePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExamplePayload;
+
+ /**
+ * Decodes an ExamplePayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExamplePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExamplePayload;
+
+ /**
+ * Verifies an ExamplePayload message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExamplePayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExamplePayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExamplePayload;
+
+ /**
+ * Creates a plain object from an ExamplePayload message. Also converts values to other types if specified.
+ * @param message ExamplePayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExamplePayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExamplePayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExamplePayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InputConfig. */
+ interface IInputConfig {
+
+ /** InputConfig gcsSource */
+ gcsSource?: (google.cloud.automl.v1.IGcsSource|null);
+
+ /** InputConfig params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an InputConfig. */
+ class InputConfig implements IInputConfig {
+
+ /**
+ * Constructs a new InputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IInputConfig);
+
+ /** InputConfig gcsSource. */
+ public gcsSource?: (google.cloud.automl.v1.IGcsSource|null);
+
+ /** InputConfig params. */
+ public params: { [k: string]: string };
+
+ /** InputConfig source. */
+ public source?: "gcsSource";
+
+ /**
+ * Creates a new InputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IInputConfig): google.cloud.automl.v1.InputConfig;
+
+ /**
+ * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.automl.v1.InputConfig.verify|verify} messages.
+ * @param message InputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.InputConfig.verify|verify} messages.
+ * @param message InputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.InputConfig;
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.InputConfig;
+
+ /**
+ * Verifies an InputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an InputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.InputConfig;
+
+ /**
+ * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
+ * @param message InputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictInputConfig. */
+ interface IBatchPredictInputConfig {
+
+ /** BatchPredictInputConfig gcsSource */
+ gcsSource?: (google.cloud.automl.v1.IGcsSource|null);
+ }
+
+ /** Represents a BatchPredictInputConfig. */
+ class BatchPredictInputConfig implements IBatchPredictInputConfig {
+
+ /**
+ * Constructs a new BatchPredictInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBatchPredictInputConfig);
+
+ /** BatchPredictInputConfig gcsSource. */
+ public gcsSource?: (google.cloud.automl.v1.IGcsSource|null);
+
+ /** BatchPredictInputConfig source. */
+ public source?: "gcsSource";
+
+ /**
+ * Creates a new BatchPredictInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictInputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBatchPredictInputConfig): google.cloud.automl.v1.BatchPredictInputConfig;
+
+ /**
+ * Encodes the specified BatchPredictInputConfig message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictInputConfig.verify|verify} messages.
+ * @param message BatchPredictInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBatchPredictInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictInputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictInputConfig.verify|verify} messages.
+ * @param message BatchPredictInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBatchPredictInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BatchPredictInputConfig;
+
+ /**
+ * Decodes a BatchPredictInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BatchPredictInputConfig;
+
+ /**
+ * Verifies a BatchPredictInputConfig 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 BatchPredictInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BatchPredictInputConfig;
+
+ /**
+ * Creates a plain object from a BatchPredictInputConfig message. Also converts values to other types if specified.
+ * @param message BatchPredictInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BatchPredictInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentInputConfig. */
+ interface IDocumentInputConfig {
+
+ /** DocumentInputConfig gcsSource */
+ gcsSource?: (google.cloud.automl.v1.IGcsSource|null);
+ }
+
+ /** Represents a DocumentInputConfig. */
+ class DocumentInputConfig implements IDocumentInputConfig {
+
+ /**
+ * Constructs a new DocumentInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDocumentInputConfig);
+
+ /** DocumentInputConfig gcsSource. */
+ public gcsSource?: (google.cloud.automl.v1.IGcsSource|null);
+
+ /**
+ * Creates a new DocumentInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentInputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDocumentInputConfig): google.cloud.automl.v1.DocumentInputConfig;
+
+ /**
+ * Encodes the specified DocumentInputConfig message. Does not implicitly {@link google.cloud.automl.v1.DocumentInputConfig.verify|verify} messages.
+ * @param message DocumentInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DocumentInputConfig.verify|verify} messages.
+ * @param message DocumentInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DocumentInputConfig;
+
+ /**
+ * Decodes a DocumentInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DocumentInputConfig;
+
+ /**
+ * Verifies a DocumentInputConfig 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 DocumentInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DocumentInputConfig;
+
+ /**
+ * Creates a plain object from a DocumentInputConfig message. Also converts values to other types if specified.
+ * @param message DocumentInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OutputConfig. */
+ interface IOutputConfig {
+
+ /** OutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.automl.v1.IGcsDestination|null);
+ }
+
+ /** Represents an OutputConfig. */
+ class OutputConfig implements IOutputConfig {
+
+ /**
+ * Constructs a new OutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IOutputConfig);
+
+ /** OutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.automl.v1.IGcsDestination|null);
+
+ /** OutputConfig destination. */
+ public destination?: "gcsDestination";
+
+ /**
+ * Creates a new OutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IOutputConfig): google.cloud.automl.v1.OutputConfig;
+
+ /**
+ * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.automl.v1.OutputConfig.verify|verify} messages.
+ * @param message OutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.OutputConfig.verify|verify} messages.
+ * @param message OutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.OutputConfig;
+
+ /**
+ * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.OutputConfig;
+
+ /**
+ * Verifies an OutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.OutputConfig;
+
+ /**
+ * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
+ * @param message OutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictOutputConfig. */
+ interface IBatchPredictOutputConfig {
+
+ /** BatchPredictOutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.automl.v1.IGcsDestination|null);
+ }
+
+ /** Represents a BatchPredictOutputConfig. */
+ class BatchPredictOutputConfig implements IBatchPredictOutputConfig {
+
+ /**
+ * Constructs a new BatchPredictOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBatchPredictOutputConfig);
+
+ /** BatchPredictOutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.automl.v1.IGcsDestination|null);
+
+ /** BatchPredictOutputConfig destination. */
+ public destination?: "gcsDestination";
+
+ /**
+ * Creates a new BatchPredictOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictOutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBatchPredictOutputConfig): google.cloud.automl.v1.BatchPredictOutputConfig;
+
+ /**
+ * Encodes the specified BatchPredictOutputConfig message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictOutputConfig.verify|verify} messages.
+ * @param message BatchPredictOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBatchPredictOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictOutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictOutputConfig.verify|verify} messages.
+ * @param message BatchPredictOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBatchPredictOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BatchPredictOutputConfig;
+
+ /**
+ * Decodes a BatchPredictOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BatchPredictOutputConfig;
+
+ /**
+ * Verifies a BatchPredictOutputConfig 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 BatchPredictOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BatchPredictOutputConfig;
+
+ /**
+ * Creates a plain object from a BatchPredictOutputConfig message. Also converts values to other types if specified.
+ * @param message BatchPredictOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BatchPredictOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ModelExportOutputConfig. */
+ interface IModelExportOutputConfig {
+
+ /** ModelExportOutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.automl.v1.IGcsDestination|null);
+
+ /** ModelExportOutputConfig modelFormat */
+ modelFormat?: (string|null);
+
+ /** ModelExportOutputConfig params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a ModelExportOutputConfig. */
+ class ModelExportOutputConfig implements IModelExportOutputConfig {
+
+ /**
+ * Constructs a new ModelExportOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IModelExportOutputConfig);
+
+ /** ModelExportOutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.automl.v1.IGcsDestination|null);
+
+ /** ModelExportOutputConfig modelFormat. */
+ public modelFormat: string;
+
+ /** ModelExportOutputConfig params. */
+ public params: { [k: string]: string };
+
+ /** ModelExportOutputConfig destination. */
+ public destination?: "gcsDestination";
+
+ /**
+ * Creates a new ModelExportOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelExportOutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IModelExportOutputConfig): google.cloud.automl.v1.ModelExportOutputConfig;
+
+ /**
+ * Encodes the specified ModelExportOutputConfig message. Does not implicitly {@link google.cloud.automl.v1.ModelExportOutputConfig.verify|verify} messages.
+ * @param message ModelExportOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IModelExportOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelExportOutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ModelExportOutputConfig.verify|verify} messages.
+ * @param message ModelExportOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IModelExportOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelExportOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelExportOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ModelExportOutputConfig;
+
+ /**
+ * Decodes a ModelExportOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelExportOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ModelExportOutputConfig;
+
+ /**
+ * Verifies a ModelExportOutputConfig 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 ModelExportOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelExportOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ModelExportOutputConfig;
+
+ /**
+ * Creates a plain object from a ModelExportOutputConfig message. Also converts values to other types if specified.
+ * @param message ModelExportOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ModelExportOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelExportOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelExportOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsSource. */
+ interface IGcsSource {
+
+ /** GcsSource inputUris */
+ inputUris?: (string[]|null);
+ }
+
+ /** Represents a GcsSource. */
+ class GcsSource implements IGcsSource {
+
+ /**
+ * Constructs a new GcsSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IGcsSource);
+
+ /** GcsSource inputUris. */
+ public inputUris: string[];
+
+ /**
+ * Creates a new GcsSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsSource instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IGcsSource): google.cloud.automl.v1.GcsSource;
+
+ /**
+ * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.automl.v1.GcsSource.verify|verify} messages.
+ * @param message GcsSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.automl.v1.GcsSource.verify|verify} messages.
+ * @param message GcsSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.GcsSource;
+
+ /**
+ * Decodes a GcsSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.GcsSource;
+
+ /**
+ * Verifies a GcsSource 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 GcsSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.GcsSource;
+
+ /**
+ * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
+ * @param message GcsSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDestination. */
+ interface IGcsDestination {
+
+ /** GcsDestination outputUriPrefix */
+ outputUriPrefix?: (string|null);
+ }
+
+ /** Represents a GcsDestination. */
+ class GcsDestination implements IGcsDestination {
+
+ /**
+ * Constructs a new GcsDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IGcsDestination);
+
+ /** GcsDestination outputUriPrefix. */
+ public outputUriPrefix: string;
+
+ /**
+ * Creates a new GcsDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDestination instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IGcsDestination): google.cloud.automl.v1.GcsDestination;
+
+ /**
+ * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.automl.v1.GcsDestination.verify|verify} messages.
+ * @param message GcsDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.automl.v1.GcsDestination.verify|verify} messages.
+ * @param message GcsDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.GcsDestination;
+
+ /**
+ * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.GcsDestination;
+
+ /**
+ * Verifies a GcsDestination 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 GcsDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.GcsDestination;
+
+ /**
+ * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
+ * @param message GcsDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotationSpec. */
+ interface IAnnotationSpec {
+
+ /** AnnotationSpec name */
+ name?: (string|null);
+
+ /** AnnotationSpec displayName */
+ displayName?: (string|null);
+
+ /** AnnotationSpec exampleCount */
+ exampleCount?: (number|null);
+ }
+
+ /** Represents an AnnotationSpec. */
+ class AnnotationSpec implements IAnnotationSpec {
+
+ /**
+ * Constructs a new AnnotationSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IAnnotationSpec);
+
+ /** AnnotationSpec name. */
+ public name: string;
+
+ /** AnnotationSpec displayName. */
+ public displayName: string;
+
+ /** AnnotationSpec exampleCount. */
+ public exampleCount: number;
+
+ /**
+ * Creates a new AnnotationSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationSpec instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IAnnotationSpec): google.cloud.automl.v1.AnnotationSpec;
+
+ /**
+ * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.automl.v1.AnnotationSpec.verify|verify} messages.
+ * @param message AnnotationSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.automl.v1.AnnotationSpec.verify|verify} messages.
+ * @param message AnnotationSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.AnnotationSpec;
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.AnnotationSpec;
+
+ /**
+ * Verifies an AnnotationSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an AnnotationSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.AnnotationSpec;
+
+ /**
+ * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified.
+ * @param message AnnotationSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Dataset. */
+ interface IDataset {
+
+ /** Dataset translationDatasetMetadata */
+ translationDatasetMetadata?: (google.cloud.automl.v1.ITranslationDatasetMetadata|null);
+
+ /** Dataset imageClassificationDatasetMetadata */
+ imageClassificationDatasetMetadata?: (google.cloud.automl.v1.IImageClassificationDatasetMetadata|null);
+
+ /** Dataset textClassificationDatasetMetadata */
+ textClassificationDatasetMetadata?: (google.cloud.automl.v1.ITextClassificationDatasetMetadata|null);
+
+ /** Dataset imageObjectDetectionDatasetMetadata */
+ imageObjectDetectionDatasetMetadata?: (google.cloud.automl.v1.IImageObjectDetectionDatasetMetadata|null);
+
+ /** Dataset textExtractionDatasetMetadata */
+ textExtractionDatasetMetadata?: (google.cloud.automl.v1.ITextExtractionDatasetMetadata|null);
+
+ /** Dataset textSentimentDatasetMetadata */
+ textSentimentDatasetMetadata?: (google.cloud.automl.v1.ITextSentimentDatasetMetadata|null);
+
+ /** Dataset name */
+ name?: (string|null);
+
+ /** Dataset displayName */
+ displayName?: (string|null);
+
+ /** Dataset description */
+ description?: (string|null);
+
+ /** Dataset exampleCount */
+ exampleCount?: (number|null);
+
+ /** Dataset createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Dataset etag */
+ etag?: (string|null);
+
+ /** Dataset labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Dataset. */
+ class Dataset implements IDataset {
+
+ /**
+ * Constructs a new Dataset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDataset);
+
+ /** Dataset translationDatasetMetadata. */
+ public translationDatasetMetadata?: (google.cloud.automl.v1.ITranslationDatasetMetadata|null);
+
+ /** Dataset imageClassificationDatasetMetadata. */
+ public imageClassificationDatasetMetadata?: (google.cloud.automl.v1.IImageClassificationDatasetMetadata|null);
+
+ /** Dataset textClassificationDatasetMetadata. */
+ public textClassificationDatasetMetadata?: (google.cloud.automl.v1.ITextClassificationDatasetMetadata|null);
+
+ /** Dataset imageObjectDetectionDatasetMetadata. */
+ public imageObjectDetectionDatasetMetadata?: (google.cloud.automl.v1.IImageObjectDetectionDatasetMetadata|null);
+
+ /** Dataset textExtractionDatasetMetadata. */
+ public textExtractionDatasetMetadata?: (google.cloud.automl.v1.ITextExtractionDatasetMetadata|null);
+
+ /** Dataset textSentimentDatasetMetadata. */
+ public textSentimentDatasetMetadata?: (google.cloud.automl.v1.ITextSentimentDatasetMetadata|null);
+
+ /** Dataset name. */
+ public name: string;
+
+ /** Dataset displayName. */
+ public displayName: string;
+
+ /** Dataset description. */
+ public description: string;
+
+ /** Dataset exampleCount. */
+ public exampleCount: number;
+
+ /** Dataset createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Dataset etag. */
+ public etag: string;
+
+ /** Dataset labels. */
+ public labels: { [k: string]: string };
+
+ /** Dataset datasetMetadata. */
+ public datasetMetadata?: ("translationDatasetMetadata"|"imageClassificationDatasetMetadata"|"textClassificationDatasetMetadata"|"imageObjectDetectionDatasetMetadata"|"textExtractionDatasetMetadata"|"textSentimentDatasetMetadata");
+
+ /**
+ * Creates a new Dataset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dataset instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDataset): google.cloud.automl.v1.Dataset;
+
+ /**
+ * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.automl.v1.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.Dataset;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.Dataset;
+
+ /**
+ * Verifies a Dataset 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 Dataset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dataset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.Dataset;
+
+ /**
+ * Creates a plain object from a Dataset message. Also converts values to other types if specified.
+ * @param message Dataset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dataset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dataset
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationDatasetMetadata. */
+ interface IImageClassificationDatasetMetadata {
+
+ /** ImageClassificationDatasetMetadata classificationType */
+ classificationType?: (google.cloud.automl.v1.ClassificationType|keyof typeof google.cloud.automl.v1.ClassificationType|null);
+ }
+
+ /** Represents an ImageClassificationDatasetMetadata. */
+ class ImageClassificationDatasetMetadata implements IImageClassificationDatasetMetadata {
+
+ /**
+ * Constructs a new ImageClassificationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageClassificationDatasetMetadata);
+
+ /** ImageClassificationDatasetMetadata classificationType. */
+ public classificationType: (google.cloud.automl.v1.ClassificationType|keyof typeof google.cloud.automl.v1.ClassificationType);
+
+ /**
+ * Creates a new ImageClassificationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageClassificationDatasetMetadata): google.cloud.automl.v1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Encodes the specified ImageClassificationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImageClassificationDatasetMetadata.verify|verify} messages.
+ * @param message ImageClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageClassificationDatasetMetadata.verify|verify} messages.
+ * @param message ImageClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Decodes an ImageClassificationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Verifies an ImageClassificationDatasetMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageClassificationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Creates a plain object from an ImageClassificationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message ImageClassificationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageClassificationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionDatasetMetadata. */
+ interface IImageObjectDetectionDatasetMetadata {
+ }
+
+ /** Represents an ImageObjectDetectionDatasetMetadata. */
+ class ImageObjectDetectionDatasetMetadata implements IImageObjectDetectionDatasetMetadata {
+
+ /**
+ * Constructs a new ImageObjectDetectionDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageObjectDetectionDatasetMetadata);
+
+ /**
+ * Creates a new ImageObjectDetectionDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageObjectDetectionDatasetMetadata): google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Encodes the specified ImageObjectDetectionDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageObjectDetectionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageObjectDetectionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Decodes an ImageObjectDetectionDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Verifies an ImageObjectDetectionDatasetMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionDatasetMetadata message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationModelMetadata. */
+ interface IImageClassificationModelMetadata {
+
+ /** ImageClassificationModelMetadata baseModelId */
+ baseModelId?: (string|null);
+
+ /** ImageClassificationModelMetadata trainBudgetMilliNodeHours */
+ trainBudgetMilliNodeHours?: (number|Long|string|null);
+
+ /** ImageClassificationModelMetadata trainCostMilliNodeHours */
+ trainCostMilliNodeHours?: (number|Long|string|null);
+
+ /** ImageClassificationModelMetadata stopReason */
+ stopReason?: (string|null);
+
+ /** ImageClassificationModelMetadata modelType */
+ modelType?: (string|null);
+
+ /** ImageClassificationModelMetadata nodeQps */
+ nodeQps?: (number|null);
+
+ /** ImageClassificationModelMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageClassificationModelMetadata. */
+ class ImageClassificationModelMetadata implements IImageClassificationModelMetadata {
+
+ /**
+ * Constructs a new ImageClassificationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageClassificationModelMetadata);
+
+ /** ImageClassificationModelMetadata baseModelId. */
+ public baseModelId: string;
+
+ /** ImageClassificationModelMetadata trainBudgetMilliNodeHours. */
+ public trainBudgetMilliNodeHours: (number|Long|string);
+
+ /** ImageClassificationModelMetadata trainCostMilliNodeHours. */
+ public trainCostMilliNodeHours: (number|Long|string);
+
+ /** ImageClassificationModelMetadata stopReason. */
+ public stopReason: string;
+
+ /** ImageClassificationModelMetadata modelType. */
+ public modelType: string;
+
+ /** ImageClassificationModelMetadata nodeQps. */
+ public nodeQps: number;
+
+ /** ImageClassificationModelMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /**
+ * Creates a new ImageClassificationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageClassificationModelMetadata): google.cloud.automl.v1.ImageClassificationModelMetadata;
+
+ /**
+ * Encodes the specified ImageClassificationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImageClassificationModelMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageClassificationModelMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageClassificationModelMetadata;
+
+ /**
+ * Decodes an ImageClassificationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageClassificationModelMetadata;
+
+ /**
+ * Verifies an ImageClassificationModelMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageClassificationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageClassificationModelMetadata;
+
+ /**
+ * Creates a plain object from an ImageClassificationModelMetadata message. Also converts values to other types if specified.
+ * @param message ImageClassificationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageClassificationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionModelMetadata. */
+ interface IImageObjectDetectionModelMetadata {
+
+ /** ImageObjectDetectionModelMetadata modelType */
+ modelType?: (string|null);
+
+ /** ImageObjectDetectionModelMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+
+ /** ImageObjectDetectionModelMetadata nodeQps */
+ nodeQps?: (number|null);
+
+ /** ImageObjectDetectionModelMetadata stopReason */
+ stopReason?: (string|null);
+
+ /** ImageObjectDetectionModelMetadata trainBudgetMilliNodeHours */
+ trainBudgetMilliNodeHours?: (number|Long|string|null);
+
+ /** ImageObjectDetectionModelMetadata trainCostMilliNodeHours */
+ trainCostMilliNodeHours?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageObjectDetectionModelMetadata. */
+ class ImageObjectDetectionModelMetadata implements IImageObjectDetectionModelMetadata {
+
+ /**
+ * Constructs a new ImageObjectDetectionModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageObjectDetectionModelMetadata);
+
+ /** ImageObjectDetectionModelMetadata modelType. */
+ public modelType: string;
+
+ /** ImageObjectDetectionModelMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /** ImageObjectDetectionModelMetadata nodeQps. */
+ public nodeQps: number;
+
+ /** ImageObjectDetectionModelMetadata stopReason. */
+ public stopReason: string;
+
+ /** ImageObjectDetectionModelMetadata trainBudgetMilliNodeHours. */
+ public trainBudgetMilliNodeHours: (number|Long|string);
+
+ /** ImageObjectDetectionModelMetadata trainCostMilliNodeHours. */
+ public trainCostMilliNodeHours: (number|Long|string);
+
+ /**
+ * Creates a new ImageObjectDetectionModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageObjectDetectionModelMetadata): google.cloud.automl.v1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionModelMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageObjectDetectionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionModelMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageObjectDetectionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Decodes an ImageObjectDetectionModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Verifies an ImageObjectDetectionModelMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionModelMetadata message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageObjectDetectionModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationModelDeploymentMetadata. */
+ interface IImageClassificationModelDeploymentMetadata {
+
+ /** ImageClassificationModelDeploymentMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageClassificationModelDeploymentMetadata. */
+ class ImageClassificationModelDeploymentMetadata implements IImageClassificationModelDeploymentMetadata {
+
+ /**
+ * Constructs a new ImageClassificationModelDeploymentMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageClassificationModelDeploymentMetadata);
+
+ /** ImageClassificationModelDeploymentMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /**
+ * Creates a new ImageClassificationModelDeploymentMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationModelDeploymentMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageClassificationModelDeploymentMetadata): google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Encodes the specified ImageClassificationModelDeploymentMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageClassificationModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationModelDeploymentMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageClassificationModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationModelDeploymentMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Decodes an ImageClassificationModelDeploymentMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Verifies an ImageClassificationModelDeploymentMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageClassificationModelDeploymentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationModelDeploymentMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Creates a plain object from an ImageClassificationModelDeploymentMetadata message. Also converts values to other types if specified.
+ * @param message ImageClassificationModelDeploymentMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationModelDeploymentMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationModelDeploymentMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionModelDeploymentMetadata. */
+ interface IImageObjectDetectionModelDeploymentMetadata {
+
+ /** ImageObjectDetectionModelDeploymentMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageObjectDetectionModelDeploymentMetadata. */
+ class ImageObjectDetectionModelDeploymentMetadata implements IImageObjectDetectionModelDeploymentMetadata {
+
+ /**
+ * Constructs a new ImageObjectDetectionModelDeploymentMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImageObjectDetectionModelDeploymentMetadata);
+
+ /** ImageObjectDetectionModelDeploymentMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /**
+ * Creates a new ImageObjectDetectionModelDeploymentMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionModelDeploymentMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImageObjectDetectionModelDeploymentMetadata): google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelDeploymentMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImageObjectDetectionModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelDeploymentMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImageObjectDetectionModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionModelDeploymentMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Decodes an ImageObjectDetectionModelDeploymentMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Verifies an ImageObjectDetectionModelDeploymentMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionModelDeploymentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionModelDeploymentMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionModelDeploymentMetadata message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionModelDeploymentMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionModelDeploymentMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionModelDeploymentMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextClassificationDatasetMetadata. */
+ interface ITextClassificationDatasetMetadata {
+
+ /** TextClassificationDatasetMetadata classificationType */
+ classificationType?: (google.cloud.automl.v1.ClassificationType|keyof typeof google.cloud.automl.v1.ClassificationType|null);
+ }
+
+ /** Represents a TextClassificationDatasetMetadata. */
+ class TextClassificationDatasetMetadata implements ITextClassificationDatasetMetadata {
+
+ /**
+ * Constructs a new TextClassificationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextClassificationDatasetMetadata);
+
+ /** TextClassificationDatasetMetadata classificationType. */
+ public classificationType: (google.cloud.automl.v1.ClassificationType|keyof typeof google.cloud.automl.v1.ClassificationType);
+
+ /**
+ * Creates a new TextClassificationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextClassificationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextClassificationDatasetMetadata): google.cloud.automl.v1.TextClassificationDatasetMetadata;
+
+ /**
+ * Encodes the specified TextClassificationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.TextClassificationDatasetMetadata.verify|verify} messages.
+ * @param message TextClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextClassificationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextClassificationDatasetMetadata.verify|verify} messages.
+ * @param message TextClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextClassificationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextClassificationDatasetMetadata;
+
+ /**
+ * Decodes a TextClassificationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextClassificationDatasetMetadata;
+
+ /**
+ * Verifies a TextClassificationDatasetMetadata 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 TextClassificationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextClassificationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextClassificationDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TextClassificationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TextClassificationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextClassificationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextClassificationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextClassificationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextClassificationModelMetadata. */
+ interface ITextClassificationModelMetadata {
+
+ /** TextClassificationModelMetadata classificationType */
+ classificationType?: (google.cloud.automl.v1.ClassificationType|keyof typeof google.cloud.automl.v1.ClassificationType|null);
+ }
+
+ /** Represents a TextClassificationModelMetadata. */
+ class TextClassificationModelMetadata implements ITextClassificationModelMetadata {
+
+ /**
+ * Constructs a new TextClassificationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextClassificationModelMetadata);
+
+ /** TextClassificationModelMetadata classificationType. */
+ public classificationType: (google.cloud.automl.v1.ClassificationType|keyof typeof google.cloud.automl.v1.ClassificationType);
+
+ /**
+ * Creates a new TextClassificationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextClassificationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextClassificationModelMetadata): google.cloud.automl.v1.TextClassificationModelMetadata;
+
+ /**
+ * Encodes the specified TextClassificationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.TextClassificationModelMetadata.verify|verify} messages.
+ * @param message TextClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextClassificationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextClassificationModelMetadata.verify|verify} messages.
+ * @param message TextClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextClassificationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextClassificationModelMetadata;
+
+ /**
+ * Decodes a TextClassificationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextClassificationModelMetadata;
+
+ /**
+ * Verifies a TextClassificationModelMetadata 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 TextClassificationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextClassificationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextClassificationModelMetadata;
+
+ /**
+ * Creates a plain object from a TextClassificationModelMetadata message. Also converts values to other types if specified.
+ * @param message TextClassificationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextClassificationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextClassificationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextClassificationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionDatasetMetadata. */
+ interface ITextExtractionDatasetMetadata {
+ }
+
+ /** Represents a TextExtractionDatasetMetadata. */
+ class TextExtractionDatasetMetadata implements ITextExtractionDatasetMetadata {
+
+ /**
+ * Constructs a new TextExtractionDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextExtractionDatasetMetadata);
+
+ /**
+ * Creates a new TextExtractionDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextExtractionDatasetMetadata): google.cloud.automl.v1.TextExtractionDatasetMetadata;
+
+ /**
+ * Encodes the specified TextExtractionDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionDatasetMetadata.verify|verify} messages.
+ * @param message TextExtractionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextExtractionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionDatasetMetadata.verify|verify} messages.
+ * @param message TextExtractionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextExtractionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextExtractionDatasetMetadata;
+
+ /**
+ * Decodes a TextExtractionDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextExtractionDatasetMetadata;
+
+ /**
+ * Verifies a TextExtractionDatasetMetadata 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 TextExtractionDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextExtractionDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TextExtractionDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TextExtractionDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextExtractionDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionModelMetadata. */
+ interface ITextExtractionModelMetadata {
+ }
+
+ /** Represents a TextExtractionModelMetadata. */
+ class TextExtractionModelMetadata implements ITextExtractionModelMetadata {
+
+ /**
+ * Constructs a new TextExtractionModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextExtractionModelMetadata);
+
+ /**
+ * Creates a new TextExtractionModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextExtractionModelMetadata): google.cloud.automl.v1.TextExtractionModelMetadata;
+
+ /**
+ * Encodes the specified TextExtractionModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionModelMetadata.verify|verify} messages.
+ * @param message TextExtractionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextExtractionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionModelMetadata.verify|verify} messages.
+ * @param message TextExtractionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextExtractionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextExtractionModelMetadata;
+
+ /**
+ * Decodes a TextExtractionModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextExtractionModelMetadata;
+
+ /**
+ * Verifies a TextExtractionModelMetadata 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 TextExtractionModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextExtractionModelMetadata;
+
+ /**
+ * Creates a plain object from a TextExtractionModelMetadata message. Also converts values to other types if specified.
+ * @param message TextExtractionModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextExtractionModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentDatasetMetadata. */
+ interface ITextSentimentDatasetMetadata {
+
+ /** TextSentimentDatasetMetadata sentimentMax */
+ sentimentMax?: (number|null);
+ }
+
+ /** Represents a TextSentimentDatasetMetadata. */
+ class TextSentimentDatasetMetadata implements ITextSentimentDatasetMetadata {
+
+ /**
+ * Constructs a new TextSentimentDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextSentimentDatasetMetadata);
+
+ /** TextSentimentDatasetMetadata sentimentMax. */
+ public sentimentMax: number;
+
+ /**
+ * Creates a new TextSentimentDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextSentimentDatasetMetadata): google.cloud.automl.v1.TextSentimentDatasetMetadata;
+
+ /**
+ * Encodes the specified TextSentimentDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.TextSentimentDatasetMetadata.verify|verify} messages.
+ * @param message TextSentimentDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextSentimentDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSentimentDatasetMetadata.verify|verify} messages.
+ * @param message TextSentimentDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextSentimentDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextSentimentDatasetMetadata;
+
+ /**
+ * Decodes a TextSentimentDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextSentimentDatasetMetadata;
+
+ /**
+ * Verifies a TextSentimentDatasetMetadata 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 TextSentimentDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextSentimentDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TextSentimentDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TextSentimentDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextSentimentDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentModelMetadata. */
+ interface ITextSentimentModelMetadata {
+ }
+
+ /** Represents a TextSentimentModelMetadata. */
+ class TextSentimentModelMetadata implements ITextSentimentModelMetadata {
+
+ /**
+ * Constructs a new TextSentimentModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ITextSentimentModelMetadata);
+
+ /**
+ * Creates a new TextSentimentModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ITextSentimentModelMetadata): google.cloud.automl.v1.TextSentimentModelMetadata;
+
+ /**
+ * Encodes the specified TextSentimentModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.TextSentimentModelMetadata.verify|verify} messages.
+ * @param message TextSentimentModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ITextSentimentModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSentimentModelMetadata.verify|verify} messages.
+ * @param message TextSentimentModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ITextSentimentModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.TextSentimentModelMetadata;
+
+ /**
+ * Decodes a TextSentimentModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.TextSentimentModelMetadata;
+
+ /**
+ * Verifies a TextSentimentModelMetadata 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 TextSentimentModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.TextSentimentModelMetadata;
+
+ /**
+ * Creates a plain object from a TextSentimentModelMetadata message. Also converts values to other types if specified.
+ * @param message TextSentimentModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.TextSentimentModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Model. */
+ interface IModel {
+
+ /** Model translationModelMetadata */
+ translationModelMetadata?: (google.cloud.automl.v1.ITranslationModelMetadata|null);
+
+ /** Model imageClassificationModelMetadata */
+ imageClassificationModelMetadata?: (google.cloud.automl.v1.IImageClassificationModelMetadata|null);
+
+ /** Model textClassificationModelMetadata */
+ textClassificationModelMetadata?: (google.cloud.automl.v1.ITextClassificationModelMetadata|null);
+
+ /** Model imageObjectDetectionModelMetadata */
+ imageObjectDetectionModelMetadata?: (google.cloud.automl.v1.IImageObjectDetectionModelMetadata|null);
+
+ /** Model textExtractionModelMetadata */
+ textExtractionModelMetadata?: (google.cloud.automl.v1.ITextExtractionModelMetadata|null);
+
+ /** Model textSentimentModelMetadata */
+ textSentimentModelMetadata?: (google.cloud.automl.v1.ITextSentimentModelMetadata|null);
+
+ /** Model name */
+ name?: (string|null);
+
+ /** Model displayName */
+ displayName?: (string|null);
+
+ /** Model datasetId */
+ datasetId?: (string|null);
+
+ /** Model createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model deploymentState */
+ deploymentState?: (google.cloud.automl.v1.Model.DeploymentState|keyof typeof google.cloud.automl.v1.Model.DeploymentState|null);
+
+ /** Model etag */
+ etag?: (string|null);
+
+ /** Model labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Model. */
+ class Model implements IModel {
+
+ /**
+ * Constructs a new Model.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IModel);
+
+ /** Model translationModelMetadata. */
+ public translationModelMetadata?: (google.cloud.automl.v1.ITranslationModelMetadata|null);
+
+ /** Model imageClassificationModelMetadata. */
+ public imageClassificationModelMetadata?: (google.cloud.automl.v1.IImageClassificationModelMetadata|null);
+
+ /** Model textClassificationModelMetadata. */
+ public textClassificationModelMetadata?: (google.cloud.automl.v1.ITextClassificationModelMetadata|null);
+
+ /** Model imageObjectDetectionModelMetadata. */
+ public imageObjectDetectionModelMetadata?: (google.cloud.automl.v1.IImageObjectDetectionModelMetadata|null);
+
+ /** Model textExtractionModelMetadata. */
+ public textExtractionModelMetadata?: (google.cloud.automl.v1.ITextExtractionModelMetadata|null);
+
+ /** Model textSentimentModelMetadata. */
+ public textSentimentModelMetadata?: (google.cloud.automl.v1.ITextSentimentModelMetadata|null);
+
+ /** Model name. */
+ public name: string;
+
+ /** Model displayName. */
+ public displayName: string;
+
+ /** Model datasetId. */
+ public datasetId: string;
+
+ /** Model createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model deploymentState. */
+ public deploymentState: (google.cloud.automl.v1.Model.DeploymentState|keyof typeof google.cloud.automl.v1.Model.DeploymentState);
+
+ /** Model etag. */
+ public etag: string;
+
+ /** Model labels. */
+ public labels: { [k: string]: string };
+
+ /** Model modelMetadata. */
+ public modelMetadata?: ("translationModelMetadata"|"imageClassificationModelMetadata"|"textClassificationModelMetadata"|"imageObjectDetectionModelMetadata"|"textExtractionModelMetadata"|"textSentimentModelMetadata");
+
+ /**
+ * Creates a new Model instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Model instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IModel): google.cloud.automl.v1.Model;
+
+ /**
+ * Encodes the specified Model message. Does not implicitly {@link google.cloud.automl.v1.Model.verify|verify} messages.
+ * @param message Model message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IModel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Model.verify|verify} messages.
+ * @param message Model message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IModel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Model message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Model
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.Model;
+
+ /**
+ * Decodes a Model message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Model
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.Model;
+
+ /**
+ * Verifies a Model 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 Model message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Model
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.Model;
+
+ /**
+ * Creates a plain object from a Model message. Also converts values to other types if specified.
+ * @param message Model
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Model to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Model
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Model {
+
+ /** DeploymentState enum. */
+ enum DeploymentState {
+ DEPLOYMENT_STATE_UNSPECIFIED = 0,
+ DEPLOYED = 1,
+ UNDEPLOYED = 2
+ }
+ }
+
+ /** Properties of a ModelEvaluation. */
+ interface IModelEvaluation {
+
+ /** ModelEvaluation classificationEvaluationMetrics */
+ classificationEvaluationMetrics?: (google.cloud.automl.v1.IClassificationEvaluationMetrics|null);
+
+ /** ModelEvaluation translationEvaluationMetrics */
+ translationEvaluationMetrics?: (google.cloud.automl.v1.ITranslationEvaluationMetrics|null);
+
+ /** ModelEvaluation imageObjectDetectionEvaluationMetrics */
+ imageObjectDetectionEvaluationMetrics?: (google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics|null);
+
+ /** ModelEvaluation textSentimentEvaluationMetrics */
+ textSentimentEvaluationMetrics?: (google.cloud.automl.v1.ITextSentimentEvaluationMetrics|null);
+
+ /** ModelEvaluation textExtractionEvaluationMetrics */
+ textExtractionEvaluationMetrics?: (google.cloud.automl.v1.ITextExtractionEvaluationMetrics|null);
+
+ /** ModelEvaluation name */
+ name?: (string|null);
+
+ /** ModelEvaluation annotationSpecId */
+ annotationSpecId?: (string|null);
+
+ /** ModelEvaluation displayName */
+ displayName?: (string|null);
+
+ /** ModelEvaluation createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ModelEvaluation evaluatedExampleCount */
+ evaluatedExampleCount?: (number|null);
+ }
+
+ /** Represents a ModelEvaluation. */
+ class ModelEvaluation implements IModelEvaluation {
+
+ /**
+ * Constructs a new ModelEvaluation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IModelEvaluation);
+
+ /** ModelEvaluation classificationEvaluationMetrics. */
+ public classificationEvaluationMetrics?: (google.cloud.automl.v1.IClassificationEvaluationMetrics|null);
+
+ /** ModelEvaluation translationEvaluationMetrics. */
+ public translationEvaluationMetrics?: (google.cloud.automl.v1.ITranslationEvaluationMetrics|null);
+
+ /** ModelEvaluation imageObjectDetectionEvaluationMetrics. */
+ public imageObjectDetectionEvaluationMetrics?: (google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics|null);
+
+ /** ModelEvaluation textSentimentEvaluationMetrics. */
+ public textSentimentEvaluationMetrics?: (google.cloud.automl.v1.ITextSentimentEvaluationMetrics|null);
+
+ /** ModelEvaluation textExtractionEvaluationMetrics. */
+ public textExtractionEvaluationMetrics?: (google.cloud.automl.v1.ITextExtractionEvaluationMetrics|null);
+
+ /** ModelEvaluation name. */
+ public name: string;
+
+ /** ModelEvaluation annotationSpecId. */
+ public annotationSpecId: string;
+
+ /** ModelEvaluation displayName. */
+ public displayName: string;
+
+ /** ModelEvaluation createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ModelEvaluation evaluatedExampleCount. */
+ public evaluatedExampleCount: number;
+
+ /** ModelEvaluation metrics. */
+ public metrics?: ("classificationEvaluationMetrics"|"translationEvaluationMetrics"|"imageObjectDetectionEvaluationMetrics"|"textSentimentEvaluationMetrics"|"textExtractionEvaluationMetrics");
+
+ /**
+ * Creates a new ModelEvaluation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelEvaluation instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IModelEvaluation): google.cloud.automl.v1.ModelEvaluation;
+
+ /**
+ * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.automl.v1.ModelEvaluation.verify|verify} messages.
+ * @param message ModelEvaluation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ModelEvaluation.verify|verify} messages.
+ * @param message ModelEvaluation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelEvaluation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelEvaluation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ModelEvaluation;
+
+ /**
+ * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelEvaluation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ModelEvaluation;
+
+ /**
+ * Verifies a ModelEvaluation 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 ModelEvaluation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelEvaluation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ModelEvaluation;
+
+ /**
+ * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified.
+ * @param message ModelEvaluation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelEvaluation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelEvaluation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata deleteDetails */
+ deleteDetails?: (google.cloud.automl.v1.IDeleteOperationMetadata|null);
+
+ /** OperationMetadata deployModelDetails */
+ deployModelDetails?: (google.cloud.automl.v1.IDeployModelOperationMetadata|null);
+
+ /** OperationMetadata undeployModelDetails */
+ undeployModelDetails?: (google.cloud.automl.v1.IUndeployModelOperationMetadata|null);
+
+ /** OperationMetadata createModelDetails */
+ createModelDetails?: (google.cloud.automl.v1.ICreateModelOperationMetadata|null);
+
+ /** OperationMetadata createDatasetDetails */
+ createDatasetDetails?: (google.cloud.automl.v1.ICreateDatasetOperationMetadata|null);
+
+ /** OperationMetadata importDataDetails */
+ importDataDetails?: (google.cloud.automl.v1.IImportDataOperationMetadata|null);
+
+ /** OperationMetadata batchPredictDetails */
+ batchPredictDetails?: (google.cloud.automl.v1.IBatchPredictOperationMetadata|null);
+
+ /** OperationMetadata exportDataDetails */
+ exportDataDetails?: (google.cloud.automl.v1.IExportDataOperationMetadata|null);
+
+ /** OperationMetadata exportModelDetails */
+ exportModelDetails?: (google.cloud.automl.v1.IExportModelOperationMetadata|null);
+
+ /** OperationMetadata progressPercent */
+ progressPercent?: (number|null);
+
+ /** OperationMetadata partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IOperationMetadata);
+
+ /** OperationMetadata deleteDetails. */
+ public deleteDetails?: (google.cloud.automl.v1.IDeleteOperationMetadata|null);
+
+ /** OperationMetadata deployModelDetails. */
+ public deployModelDetails?: (google.cloud.automl.v1.IDeployModelOperationMetadata|null);
+
+ /** OperationMetadata undeployModelDetails. */
+ public undeployModelDetails?: (google.cloud.automl.v1.IUndeployModelOperationMetadata|null);
+
+ /** OperationMetadata createModelDetails. */
+ public createModelDetails?: (google.cloud.automl.v1.ICreateModelOperationMetadata|null);
+
+ /** OperationMetadata createDatasetDetails. */
+ public createDatasetDetails?: (google.cloud.automl.v1.ICreateDatasetOperationMetadata|null);
+
+ /** OperationMetadata importDataDetails. */
+ public importDataDetails?: (google.cloud.automl.v1.IImportDataOperationMetadata|null);
+
+ /** OperationMetadata batchPredictDetails. */
+ public batchPredictDetails?: (google.cloud.automl.v1.IBatchPredictOperationMetadata|null);
+
+ /** OperationMetadata exportDataDetails. */
+ public exportDataDetails?: (google.cloud.automl.v1.IExportDataOperationMetadata|null);
+
+ /** OperationMetadata exportModelDetails. */
+ public exportModelDetails?: (google.cloud.automl.v1.IExportModelOperationMetadata|null);
+
+ /** OperationMetadata progressPercent. */
+ public progressPercent: number;
+
+ /** OperationMetadata partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata details. */
+ public details?: ("deleteDetails"|"deployModelDetails"|"undeployModelDetails"|"createModelDetails"|"createDatasetDetails"|"importDataDetails"|"batchPredictDetails"|"exportDataDetails"|"exportModelDetails");
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IOperationMetadata): google.cloud.automl.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationMetadata. */
+ interface IDeleteOperationMetadata {
+ }
+
+ /** Represents a DeleteOperationMetadata. */
+ class DeleteOperationMetadata implements IDeleteOperationMetadata {
+
+ /**
+ * Constructs a new DeleteOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDeleteOperationMetadata);
+
+ /**
+ * Creates a new DeleteOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDeleteOperationMetadata): google.cloud.automl.v1.DeleteOperationMetadata;
+
+ /**
+ * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.DeleteOperationMetadata.verify|verify} messages.
+ * @param message DeleteOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DeleteOperationMetadata.verify|verify} messages.
+ * @param message DeleteOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DeleteOperationMetadata;
+
+ /**
+ * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DeleteOperationMetadata;
+
+ /**
+ * Verifies a DeleteOperationMetadata 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 DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DeleteOperationMetadata;
+
+ /**
+ * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified.
+ * @param message DeleteOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployModelOperationMetadata. */
+ interface IDeployModelOperationMetadata {
+ }
+
+ /** Represents a DeployModelOperationMetadata. */
+ class DeployModelOperationMetadata implements IDeployModelOperationMetadata {
+
+ /**
+ * Constructs a new DeployModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDeployModelOperationMetadata);
+
+ /**
+ * Creates a new DeployModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDeployModelOperationMetadata): google.cloud.automl.v1.DeployModelOperationMetadata;
+
+ /**
+ * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.DeployModelOperationMetadata.verify|verify} messages.
+ * @param message DeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DeployModelOperationMetadata.verify|verify} messages.
+ * @param message DeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DeployModelOperationMetadata;
+
+ /**
+ * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DeployModelOperationMetadata;
+
+ /**
+ * Verifies a DeployModelOperationMetadata 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 DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DeployModelOperationMetadata;
+
+ /**
+ * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message DeployModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployModelOperationMetadata. */
+ interface IUndeployModelOperationMetadata {
+ }
+
+ /** Represents an UndeployModelOperationMetadata. */
+ class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata {
+
+ /**
+ * Constructs a new UndeployModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IUndeployModelOperationMetadata);
+
+ /**
+ * Creates a new UndeployModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IUndeployModelOperationMetadata): google.cloud.automl.v1.UndeployModelOperationMetadata;
+
+ /**
+ * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.UndeployModelOperationMetadata.verify|verify} messages.
+ * @param message UndeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.UndeployModelOperationMetadata.verify|verify} messages.
+ * @param message UndeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.UndeployModelOperationMetadata;
+
+ /**
+ * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.UndeployModelOperationMetadata;
+
+ /**
+ * Verifies an UndeployModelOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.UndeployModelOperationMetadata;
+
+ /**
+ * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message UndeployModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDatasetOperationMetadata. */
+ interface ICreateDatasetOperationMetadata {
+ }
+
+ /** Represents a CreateDatasetOperationMetadata. */
+ class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata {
+
+ /**
+ * Constructs a new CreateDatasetOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ICreateDatasetOperationMetadata);
+
+ /**
+ * Creates a new CreateDatasetOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatasetOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ICreateDatasetOperationMetadata): google.cloud.automl.v1.CreateDatasetOperationMetadata;
+
+ /**
+ * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.CreateDatasetOperationMetadata.verify|verify} messages.
+ * @param message CreateDatasetOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.CreateDatasetOperationMetadata.verify|verify} messages.
+ * @param message CreateDatasetOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatasetOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.CreateDatasetOperationMetadata;
+
+ /**
+ * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatasetOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.CreateDatasetOperationMetadata;
+
+ /**
+ * Verifies a CreateDatasetOperationMetadata 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 CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatasetOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.CreateDatasetOperationMetadata;
+
+ /**
+ * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified.
+ * @param message CreateDatasetOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatasetOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatasetOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateModelOperationMetadata. */
+ interface ICreateModelOperationMetadata {
+ }
+
+ /** Represents a CreateModelOperationMetadata. */
+ class CreateModelOperationMetadata implements ICreateModelOperationMetadata {
+
+ /**
+ * Constructs a new CreateModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ICreateModelOperationMetadata);
+
+ /**
+ * Creates a new CreateModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ICreateModelOperationMetadata): google.cloud.automl.v1.CreateModelOperationMetadata;
+
+ /**
+ * Encodes the specified CreateModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.CreateModelOperationMetadata.verify|verify} messages.
+ * @param message CreateModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ICreateModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.CreateModelOperationMetadata.verify|verify} messages.
+ * @param message CreateModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ICreateModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.CreateModelOperationMetadata;
+
+ /**
+ * Decodes a CreateModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.CreateModelOperationMetadata;
+
+ /**
+ * Verifies a CreateModelOperationMetadata 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 CreateModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.CreateModelOperationMetadata;
+
+ /**
+ * Creates a plain object from a CreateModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message CreateModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.CreateModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataOperationMetadata. */
+ interface IImportDataOperationMetadata {
+ }
+
+ /** Represents an ImportDataOperationMetadata. */
+ class ImportDataOperationMetadata implements IImportDataOperationMetadata {
+
+ /**
+ * Constructs a new ImportDataOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImportDataOperationMetadata);
+
+ /**
+ * Creates a new ImportDataOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImportDataOperationMetadata): google.cloud.automl.v1.ImportDataOperationMetadata;
+
+ /**
+ * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.ImportDataOperationMetadata.verify|verify} messages.
+ * @param message ImportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImportDataOperationMetadata.verify|verify} messages.
+ * @param message ImportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImportDataOperationMetadata;
+
+ /**
+ * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImportDataOperationMetadata;
+
+ /**
+ * Verifies an ImportDataOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImportDataOperationMetadata;
+
+ /**
+ * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified.
+ * @param message ImportDataOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataOperationMetadata. */
+ interface IExportDataOperationMetadata {
+
+ /** ExportDataOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1.ExportDataOperationMetadata.IExportDataOutputInfo|null);
+ }
+
+ /** Represents an ExportDataOperationMetadata. */
+ class ExportDataOperationMetadata implements IExportDataOperationMetadata {
+
+ /**
+ * Constructs a new ExportDataOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IExportDataOperationMetadata);
+
+ /** ExportDataOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1.ExportDataOperationMetadata.IExportDataOutputInfo|null);
+
+ /**
+ * Creates a new ExportDataOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IExportDataOperationMetadata): google.cloud.automl.v1.ExportDataOperationMetadata;
+
+ /**
+ * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.ExportDataOperationMetadata.verify|verify} messages.
+ * @param message ExportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExportDataOperationMetadata.verify|verify} messages.
+ * @param message ExportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExportDataOperationMetadata;
+
+ /**
+ * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExportDataOperationMetadata;
+
+ /**
+ * Verifies an ExportDataOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExportDataOperationMetadata;
+
+ /**
+ * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified.
+ * @param message ExportDataOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExportDataOperationMetadata {
+
+ /** Properties of an ExportDataOutputInfo. */
+ interface IExportDataOutputInfo {
+
+ /** ExportDataOutputInfo gcsOutputDirectory */
+ gcsOutputDirectory?: (string|null);
+ }
+
+ /** Represents an ExportDataOutputInfo. */
+ class ExportDataOutputInfo implements IExportDataOutputInfo {
+
+ /**
+ * Constructs a new ExportDataOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ExportDataOperationMetadata.IExportDataOutputInfo);
+
+ /** ExportDataOutputInfo gcsOutputDirectory. */
+ public gcsOutputDirectory?: (string|null);
+
+ /** ExportDataOutputInfo outputLocation. */
+ public outputLocation?: "gcsOutputDirectory";
+
+ /**
+ * Creates a new ExportDataOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ExportDataOperationMetadata.IExportDataOutputInfo): google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Encodes the specified ExportDataOutputInfo message. Does not implicitly {@link google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.verify|verify} messages.
+ * @param message ExportDataOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ExportDataOperationMetadata.IExportDataOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo.verify|verify} messages.
+ * @param message ExportDataOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ExportDataOperationMetadata.IExportDataOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Decodes an ExportDataOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Verifies an ExportDataOutputInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDataOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Creates a plain object from an ExportDataOutputInfo message. Also converts values to other types if specified.
+ * @param message ExportDataOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a BatchPredictOperationMetadata. */
+ interface IBatchPredictOperationMetadata {
+
+ /** BatchPredictOperationMetadata inputConfig */
+ inputConfig?: (google.cloud.automl.v1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1.BatchPredictOperationMetadata.IBatchPredictOutputInfo|null);
+ }
+
+ /** Represents a BatchPredictOperationMetadata. */
+ class BatchPredictOperationMetadata implements IBatchPredictOperationMetadata {
+
+ /**
+ * Constructs a new BatchPredictOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBatchPredictOperationMetadata);
+
+ /** BatchPredictOperationMetadata inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1.BatchPredictOperationMetadata.IBatchPredictOutputInfo|null);
+
+ /**
+ * Creates a new BatchPredictOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBatchPredictOperationMetadata): google.cloud.automl.v1.BatchPredictOperationMetadata;
+
+ /**
+ * Encodes the specified BatchPredictOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictOperationMetadata.verify|verify} messages.
+ * @param message BatchPredictOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBatchPredictOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictOperationMetadata.verify|verify} messages.
+ * @param message BatchPredictOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBatchPredictOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BatchPredictOperationMetadata;
+
+ /**
+ * Decodes a BatchPredictOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BatchPredictOperationMetadata;
+
+ /**
+ * Verifies a BatchPredictOperationMetadata 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 BatchPredictOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BatchPredictOperationMetadata;
+
+ /**
+ * Creates a plain object from a BatchPredictOperationMetadata message. Also converts values to other types if specified.
+ * @param message BatchPredictOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BatchPredictOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BatchPredictOperationMetadata {
+
+ /** Properties of a BatchPredictOutputInfo. */
+ interface IBatchPredictOutputInfo {
+
+ /** BatchPredictOutputInfo gcsOutputDirectory */
+ gcsOutputDirectory?: (string|null);
+ }
+
+ /** Represents a BatchPredictOutputInfo. */
+ class BatchPredictOutputInfo implements IBatchPredictOutputInfo {
+
+ /**
+ * Constructs a new BatchPredictOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.BatchPredictOperationMetadata.IBatchPredictOutputInfo);
+
+ /** BatchPredictOutputInfo gcsOutputDirectory. */
+ public gcsOutputDirectory?: (string|null);
+
+ /** BatchPredictOutputInfo outputLocation. */
+ public outputLocation?: "gcsOutputDirectory";
+
+ /**
+ * Creates a new BatchPredictOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1.BatchPredictOperationMetadata.IBatchPredictOutputInfo): google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Encodes the specified BatchPredictOutputInfo message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.verify|verify} messages.
+ * @param message BatchPredictOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.BatchPredictOperationMetadata.IBatchPredictOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo.verify|verify} messages.
+ * @param message BatchPredictOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.BatchPredictOperationMetadata.IBatchPredictOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Decodes a BatchPredictOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Verifies a BatchPredictOutputInfo 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 BatchPredictOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Creates a plain object from a BatchPredictOutputInfo message. Also converts values to other types if specified.
+ * @param message BatchPredictOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExportModelOperationMetadata. */
+ interface IExportModelOperationMetadata {
+
+ /** ExportModelOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1.ExportModelOperationMetadata.IExportModelOutputInfo|null);
+ }
+
+ /** Represents an ExportModelOperationMetadata. */
+ class ExportModelOperationMetadata implements IExportModelOperationMetadata {
+
+ /**
+ * Constructs a new ExportModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IExportModelOperationMetadata);
+
+ /** ExportModelOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1.ExportModelOperationMetadata.IExportModelOutputInfo|null);
+
+ /**
+ * Creates a new ExportModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IExportModelOperationMetadata): google.cloud.automl.v1.ExportModelOperationMetadata;
+
+ /**
+ * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1.ExportModelOperationMetadata.verify|verify} messages.
+ * @param message ExportModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExportModelOperationMetadata.verify|verify} messages.
+ * @param message ExportModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExportModelOperationMetadata;
+
+ /**
+ * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExportModelOperationMetadata;
+
+ /**
+ * Verifies an ExportModelOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExportModelOperationMetadata;
+
+ /**
+ * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message ExportModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExportModelOperationMetadata {
+
+ /** Properties of an ExportModelOutputInfo. */
+ interface IExportModelOutputInfo {
+
+ /** ExportModelOutputInfo gcsOutputDirectory */
+ gcsOutputDirectory?: (string|null);
+ }
+
+ /** Represents an ExportModelOutputInfo. */
+ class ExportModelOutputInfo implements IExportModelOutputInfo {
+
+ /**
+ * Constructs a new ExportModelOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ExportModelOperationMetadata.IExportModelOutputInfo);
+
+ /** ExportModelOutputInfo gcsOutputDirectory. */
+ public gcsOutputDirectory: string;
+
+ /**
+ * Creates a new ExportModelOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportModelOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ExportModelOperationMetadata.IExportModelOutputInfo): google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Encodes the specified ExportModelOutputInfo message. Does not implicitly {@link google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.verify|verify} messages.
+ * @param message ExportModelOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ExportModelOperationMetadata.IExportModelOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportModelOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo.verify|verify} messages.
+ * @param message ExportModelOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ExportModelOperationMetadata.IExportModelOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportModelOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportModelOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Decodes an ExportModelOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportModelOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Verifies an ExportModelOutputInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportModelOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportModelOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Creates a plain object from an ExportModelOutputInfo message. Also converts values to other types if specified.
+ * @param message ExportModelOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportModelOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportModelOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a PredictionService */
+ class PredictionService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new PredictionService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new PredictionService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService;
+
+ /**
+ * Calls Predict.
+ * @param request PredictRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PredictResponse
+ */
+ public predict(request: google.cloud.automl.v1.IPredictRequest, callback: google.cloud.automl.v1.PredictionService.PredictCallback): void;
+
+ /**
+ * Calls Predict.
+ * @param request PredictRequest message or plain object
+ * @returns Promise
+ */
+ public predict(request: google.cloud.automl.v1.IPredictRequest): Promise;
+
+ /**
+ * Calls BatchPredict.
+ * @param request BatchPredictRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public batchPredict(request: google.cloud.automl.v1.IBatchPredictRequest, callback: google.cloud.automl.v1.PredictionService.BatchPredictCallback): void;
+
+ /**
+ * Calls BatchPredict.
+ * @param request BatchPredictRequest message or plain object
+ * @returns Promise
+ */
+ public batchPredict(request: google.cloud.automl.v1.IBatchPredictRequest): Promise;
+ }
+
+ namespace PredictionService {
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.PredictionService|predict}.
+ * @param error Error, if any
+ * @param [response] PredictResponse
+ */
+ type PredictCallback = (error: (Error|null), response?: google.cloud.automl.v1.PredictResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.PredictionService|batchPredict}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BatchPredictCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a PredictRequest. */
+ interface IPredictRequest {
+
+ /** PredictRequest name */
+ name?: (string|null);
+
+ /** PredictRequest payload */
+ payload?: (google.cloud.automl.v1.IExamplePayload|null);
+
+ /** PredictRequest params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a PredictRequest. */
+ class PredictRequest implements IPredictRequest {
+
+ /**
+ * Constructs a new PredictRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IPredictRequest);
+
+ /** PredictRequest name. */
+ public name: string;
+
+ /** PredictRequest payload. */
+ public payload?: (google.cloud.automl.v1.IExamplePayload|null);
+
+ /** PredictRequest params. */
+ public params: { [k: string]: string };
+
+ /**
+ * Creates a new PredictRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PredictRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IPredictRequest): google.cloud.automl.v1.PredictRequest;
+
+ /**
+ * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.automl.v1.PredictRequest.verify|verify} messages.
+ * @param message PredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.PredictRequest.verify|verify} messages.
+ * @param message PredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PredictRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.PredictRequest;
+
+ /**
+ * Decodes a PredictRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.PredictRequest;
+
+ /**
+ * Verifies a PredictRequest 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 PredictRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PredictRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.PredictRequest;
+
+ /**
+ * Creates a plain object from a PredictRequest message. Also converts values to other types if specified.
+ * @param message PredictRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PredictRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PredictRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PredictResponse. */
+ interface IPredictResponse {
+
+ /** PredictResponse payload */
+ payload?: (google.cloud.automl.v1.IAnnotationPayload[]|null);
+
+ /** PredictResponse preprocessedInput */
+ preprocessedInput?: (google.cloud.automl.v1.IExamplePayload|null);
+
+ /** PredictResponse metadata */
+ metadata?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a PredictResponse. */
+ class PredictResponse implements IPredictResponse {
+
+ /**
+ * Constructs a new PredictResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IPredictResponse);
+
+ /** PredictResponse payload. */
+ public payload: google.cloud.automl.v1.IAnnotationPayload[];
+
+ /** PredictResponse preprocessedInput. */
+ public preprocessedInput?: (google.cloud.automl.v1.IExamplePayload|null);
+
+ /** PredictResponse metadata. */
+ public metadata: { [k: string]: string };
+
+ /**
+ * Creates a new PredictResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PredictResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IPredictResponse): google.cloud.automl.v1.PredictResponse;
+
+ /**
+ * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.automl.v1.PredictResponse.verify|verify} messages.
+ * @param message PredictResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1.PredictResponse.verify|verify} messages.
+ * @param message PredictResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PredictResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PredictResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.PredictResponse;
+
+ /**
+ * Decodes a PredictResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PredictResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.PredictResponse;
+
+ /**
+ * Verifies a PredictResponse 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 PredictResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PredictResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.PredictResponse;
+
+ /**
+ * Creates a plain object from a PredictResponse message. Also converts values to other types if specified.
+ * @param message PredictResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PredictResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PredictResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictRequest. */
+ interface IBatchPredictRequest {
+
+ /** BatchPredictRequest name */
+ name?: (string|null);
+
+ /** BatchPredictRequest inputConfig */
+ inputConfig?: (google.cloud.automl.v1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1.IBatchPredictOutputConfig|null);
+
+ /** BatchPredictRequest params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a BatchPredictRequest. */
+ class BatchPredictRequest implements IBatchPredictRequest {
+
+ /**
+ * Constructs a new BatchPredictRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBatchPredictRequest);
+
+ /** BatchPredictRequest name. */
+ public name: string;
+
+ /** BatchPredictRequest inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1.IBatchPredictOutputConfig|null);
+
+ /** BatchPredictRequest params. */
+ public params: { [k: string]: string };
+
+ /**
+ * Creates a new BatchPredictRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBatchPredictRequest): google.cloud.automl.v1.BatchPredictRequest;
+
+ /**
+ * Encodes the specified BatchPredictRequest message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictRequest.verify|verify} messages.
+ * @param message BatchPredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBatchPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictRequest.verify|verify} messages.
+ * @param message BatchPredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBatchPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BatchPredictRequest;
+
+ /**
+ * Decodes a BatchPredictRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BatchPredictRequest;
+
+ /**
+ * Verifies a BatchPredictRequest 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 BatchPredictRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BatchPredictRequest;
+
+ /**
+ * Creates a plain object from a BatchPredictRequest message. Also converts values to other types if specified.
+ * @param message BatchPredictRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BatchPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictResult. */
+ interface IBatchPredictResult {
+
+ /** BatchPredictResult metadata */
+ metadata?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a BatchPredictResult. */
+ class BatchPredictResult implements IBatchPredictResult {
+
+ /**
+ * Constructs a new BatchPredictResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IBatchPredictResult);
+
+ /** BatchPredictResult metadata. */
+ public metadata: { [k: string]: string };
+
+ /**
+ * Creates a new BatchPredictResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictResult instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IBatchPredictResult): google.cloud.automl.v1.BatchPredictResult;
+
+ /**
+ * Encodes the specified BatchPredictResult message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictResult.verify|verify} messages.
+ * @param message BatchPredictResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IBatchPredictResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictResult message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictResult.verify|verify} messages.
+ * @param message BatchPredictResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IBatchPredictResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.BatchPredictResult;
+
+ /**
+ * Decodes a BatchPredictResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.BatchPredictResult;
+
+ /**
+ * Verifies a BatchPredictResult 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 BatchPredictResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.BatchPredictResult;
+
+ /**
+ * Creates a plain object from a BatchPredictResult message. Also converts values to other types if specified.
+ * @param message BatchPredictResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.BatchPredictResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an AutoMl */
+ class AutoMl extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new AutoMl service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new AutoMl service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AutoMl;
+
+ /**
+ * Calls CreateDataset.
+ * @param request CreateDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createDataset(request: google.cloud.automl.v1.ICreateDatasetRequest, callback: google.cloud.automl.v1.AutoMl.CreateDatasetCallback): void;
+
+ /**
+ * Calls CreateDataset.
+ * @param request CreateDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public createDataset(request: google.cloud.automl.v1.ICreateDatasetRequest): Promise;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public getDataset(request: google.cloud.automl.v1.IGetDatasetRequest, callback: google.cloud.automl.v1.AutoMl.GetDatasetCallback): void;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public getDataset(request: google.cloud.automl.v1.IGetDatasetRequest): Promise;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse
+ */
+ public listDatasets(request: google.cloud.automl.v1.IListDatasetsRequest, callback: google.cloud.automl.v1.AutoMl.ListDatasetsCallback): void;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @returns Promise
+ */
+ public listDatasets(request: google.cloud.automl.v1.IListDatasetsRequest): Promise;
+
+ /**
+ * Calls UpdateDataset.
+ * @param request UpdateDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public updateDataset(request: google.cloud.automl.v1.IUpdateDatasetRequest, callback: google.cloud.automl.v1.AutoMl.UpdateDatasetCallback): void;
+
+ /**
+ * Calls UpdateDataset.
+ * @param request UpdateDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public updateDataset(request: google.cloud.automl.v1.IUpdateDatasetRequest): Promise;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteDataset(request: google.cloud.automl.v1.IDeleteDatasetRequest, callback: google.cloud.automl.v1.AutoMl.DeleteDatasetCallback): void;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDataset(request: google.cloud.automl.v1.IDeleteDatasetRequest): Promise;
+
+ /**
+ * Calls ImportData.
+ * @param request ImportDataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public importData(request: google.cloud.automl.v1.IImportDataRequest, callback: google.cloud.automl.v1.AutoMl.ImportDataCallback): void;
+
+ /**
+ * Calls ImportData.
+ * @param request ImportDataRequest message or plain object
+ * @returns Promise
+ */
+ public importData(request: google.cloud.automl.v1.IImportDataRequest): Promise;
+
+ /**
+ * Calls ExportData.
+ * @param request ExportDataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportData(request: google.cloud.automl.v1.IExportDataRequest, callback: google.cloud.automl.v1.AutoMl.ExportDataCallback): void;
+
+ /**
+ * Calls ExportData.
+ * @param request ExportDataRequest message or plain object
+ * @returns Promise
+ */
+ public exportData(request: google.cloud.automl.v1.IExportDataRequest): Promise;
+
+ /**
+ * Calls GetAnnotationSpec.
+ * @param request GetAnnotationSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnnotationSpec
+ */
+ public getAnnotationSpec(request: google.cloud.automl.v1.IGetAnnotationSpecRequest, callback: google.cloud.automl.v1.AutoMl.GetAnnotationSpecCallback): void;
+
+ /**
+ * Calls GetAnnotationSpec.
+ * @param request GetAnnotationSpecRequest message or plain object
+ * @returns Promise
+ */
+ public getAnnotationSpec(request: google.cloud.automl.v1.IGetAnnotationSpecRequest): Promise;
+
+ /**
+ * Calls CreateModel.
+ * @param request CreateModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createModel(request: google.cloud.automl.v1.ICreateModelRequest, callback: google.cloud.automl.v1.AutoMl.CreateModelCallback): void;
+
+ /**
+ * Calls CreateModel.
+ * @param request CreateModelRequest message or plain object
+ * @returns Promise
+ */
+ public createModel(request: google.cloud.automl.v1.ICreateModelRequest): Promise;
+
+ /**
+ * Calls GetModel.
+ * @param request GetModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Model
+ */
+ public getModel(request: google.cloud.automl.v1.IGetModelRequest, callback: google.cloud.automl.v1.AutoMl.GetModelCallback): void;
+
+ /**
+ * Calls GetModel.
+ * @param request GetModelRequest message or plain object
+ * @returns Promise
+ */
+ public getModel(request: google.cloud.automl.v1.IGetModelRequest): Promise;
+
+ /**
+ * Calls ListModels.
+ * @param request ListModelsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListModelsResponse
+ */
+ public listModels(request: google.cloud.automl.v1.IListModelsRequest, callback: google.cloud.automl.v1.AutoMl.ListModelsCallback): void;
+
+ /**
+ * Calls ListModels.
+ * @param request ListModelsRequest message or plain object
+ * @returns Promise
+ */
+ public listModels(request: google.cloud.automl.v1.IListModelsRequest): Promise;
+
+ /**
+ * Calls DeleteModel.
+ * @param request DeleteModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteModel(request: google.cloud.automl.v1.IDeleteModelRequest, callback: google.cloud.automl.v1.AutoMl.DeleteModelCallback): void;
+
+ /**
+ * Calls DeleteModel.
+ * @param request DeleteModelRequest message or plain object
+ * @returns Promise
+ */
+ public deleteModel(request: google.cloud.automl.v1.IDeleteModelRequest): Promise;
+
+ /**
+ * Calls UpdateModel.
+ * @param request UpdateModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Model
+ */
+ public updateModel(request: google.cloud.automl.v1.IUpdateModelRequest, callback: google.cloud.automl.v1.AutoMl.UpdateModelCallback): void;
+
+ /**
+ * Calls UpdateModel.
+ * @param request UpdateModelRequest message or plain object
+ * @returns Promise
+ */
+ public updateModel(request: google.cloud.automl.v1.IUpdateModelRequest): Promise;
+
+ /**
+ * Calls DeployModel.
+ * @param request DeployModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deployModel(request: google.cloud.automl.v1.IDeployModelRequest, callback: google.cloud.automl.v1.AutoMl.DeployModelCallback): void;
+
+ /**
+ * Calls DeployModel.
+ * @param request DeployModelRequest message or plain object
+ * @returns Promise
+ */
+ public deployModel(request: google.cloud.automl.v1.IDeployModelRequest): Promise;
+
+ /**
+ * Calls UndeployModel.
+ * @param request UndeployModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public undeployModel(request: google.cloud.automl.v1.IUndeployModelRequest, callback: google.cloud.automl.v1.AutoMl.UndeployModelCallback): void;
+
+ /**
+ * Calls UndeployModel.
+ * @param request UndeployModelRequest message or plain object
+ * @returns Promise
+ */
+ public undeployModel(request: google.cloud.automl.v1.IUndeployModelRequest): Promise;
+
+ /**
+ * Calls ExportModel.
+ * @param request ExportModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportModel(request: google.cloud.automl.v1.IExportModelRequest, callback: google.cloud.automl.v1.AutoMl.ExportModelCallback): void;
+
+ /**
+ * Calls ExportModel.
+ * @param request ExportModelRequest message or plain object
+ * @returns Promise
+ */
+ public exportModel(request: google.cloud.automl.v1.IExportModelRequest): Promise;
+
+ /**
+ * Calls GetModelEvaluation.
+ * @param request GetModelEvaluationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ModelEvaluation
+ */
+ public getModelEvaluation(request: google.cloud.automl.v1.IGetModelEvaluationRequest, callback: google.cloud.automl.v1.AutoMl.GetModelEvaluationCallback): void;
+
+ /**
+ * Calls GetModelEvaluation.
+ * @param request GetModelEvaluationRequest message or plain object
+ * @returns Promise
+ */
+ public getModelEvaluation(request: google.cloud.automl.v1.IGetModelEvaluationRequest): Promise;
+
+ /**
+ * Calls ListModelEvaluations.
+ * @param request ListModelEvaluationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse
+ */
+ public listModelEvaluations(request: google.cloud.automl.v1.IListModelEvaluationsRequest, callback: google.cloud.automl.v1.AutoMl.ListModelEvaluationsCallback): void;
+
+ /**
+ * Calls ListModelEvaluations.
+ * @param request ListModelEvaluationsRequest message or plain object
+ * @returns Promise
+ */
+ public listModelEvaluations(request: google.cloud.automl.v1.IListModelEvaluationsRequest): Promise;
+ }
+
+ namespace AutoMl {
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|createDataset}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|getDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type GetDatasetCallback = (error: (Error|null), response?: google.cloud.automl.v1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|listDatasets}.
+ * @param error Error, if any
+ * @param [response] ListDatasetsResponse
+ */
+ type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.automl.v1.ListDatasetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|updateDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.automl.v1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|deleteDataset}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|importData}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|exportData}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|getAnnotationSpec}.
+ * @param error Error, if any
+ * @param [response] AnnotationSpec
+ */
+ type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.automl.v1.AnnotationSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|createModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|getModel}.
+ * @param error Error, if any
+ * @param [response] Model
+ */
+ type GetModelCallback = (error: (Error|null), response?: google.cloud.automl.v1.Model) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|listModels}.
+ * @param error Error, if any
+ * @param [response] ListModelsResponse
+ */
+ type ListModelsCallback = (error: (Error|null), response?: google.cloud.automl.v1.ListModelsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|deleteModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|updateModel}.
+ * @param error Error, if any
+ * @param [response] Model
+ */
+ type UpdateModelCallback = (error: (Error|null), response?: google.cloud.automl.v1.Model) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|deployModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|undeployModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|exportModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|getModelEvaluation}.
+ * @param error Error, if any
+ * @param [response] ModelEvaluation
+ */
+ type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.automl.v1.ModelEvaluation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1.AutoMl|listModelEvaluations}.
+ * @param error Error, if any
+ * @param [response] ListModelEvaluationsResponse
+ */
+ type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.automl.v1.ListModelEvaluationsResponse) => void;
+ }
+
+ /** Properties of a CreateDatasetRequest. */
+ interface ICreateDatasetRequest {
+
+ /** CreateDatasetRequest parent */
+ parent?: (string|null);
+
+ /** CreateDatasetRequest dataset */
+ dataset?: (google.cloud.automl.v1.IDataset|null);
+ }
+
+ /** Represents a CreateDatasetRequest. */
+ class CreateDatasetRequest implements ICreateDatasetRequest {
+
+ /**
+ * Constructs a new CreateDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ICreateDatasetRequest);
+
+ /** CreateDatasetRequest parent. */
+ public parent: string;
+
+ /** CreateDatasetRequest dataset. */
+ public dataset?: (google.cloud.automl.v1.IDataset|null);
+
+ /**
+ * Creates a new CreateDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ICreateDatasetRequest): google.cloud.automl.v1.CreateDatasetRequest;
+
+ /**
+ * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1.CreateDatasetRequest.verify|verify} messages.
+ * @param message CreateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.CreateDatasetRequest.verify|verify} messages.
+ * @param message CreateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.CreateDatasetRequest;
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.CreateDatasetRequest;
+
+ /**
+ * Verifies a CreateDatasetRequest 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 CreateDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.CreateDatasetRequest;
+
+ /**
+ * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified.
+ * @param message CreateDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDatasetRequest. */
+ interface IGetDatasetRequest {
+
+ /** GetDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDatasetRequest. */
+ class GetDatasetRequest implements IGetDatasetRequest {
+
+ /**
+ * Constructs a new GetDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IGetDatasetRequest);
+
+ /** GetDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IGetDatasetRequest): google.cloud.automl.v1.GetDatasetRequest;
+
+ /**
+ * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.GetDatasetRequest;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.GetDatasetRequest;
+
+ /**
+ * Verifies a GetDatasetRequest 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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.GetDatasetRequest;
+
+ /**
+ * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified.
+ * @param message GetDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsRequest. */
+ interface IListDatasetsRequest {
+
+ /** ListDatasetsRequest parent */
+ parent?: (string|null);
+
+ /** ListDatasetsRequest filter */
+ filter?: (string|null);
+
+ /** ListDatasetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDatasetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListDatasetsRequest. */
+ class ListDatasetsRequest implements IListDatasetsRequest {
+
+ /**
+ * Constructs a new ListDatasetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IListDatasetsRequest);
+
+ /** ListDatasetsRequest parent. */
+ public parent: string;
+
+ /** ListDatasetsRequest filter. */
+ public filter: string;
+
+ /** ListDatasetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDatasetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListDatasetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IListDatasetsRequest): google.cloud.automl.v1.ListDatasetsRequest;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.automl.v1.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ListDatasetsRequest;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ListDatasetsRequest;
+
+ /**
+ * Verifies a ListDatasetsRequest 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 ListDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ListDatasetsRequest;
+
+ /**
+ * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified.
+ * @param message ListDatasetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsResponse. */
+ interface IListDatasetsResponse {
+
+ /** ListDatasetsResponse datasets */
+ datasets?: (google.cloud.automl.v1.IDataset[]|null);
+
+ /** ListDatasetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDatasetsResponse. */
+ class ListDatasetsResponse implements IListDatasetsResponse {
+
+ /**
+ * Constructs a new ListDatasetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IListDatasetsResponse);
+
+ /** ListDatasetsResponse datasets. */
+ public datasets: google.cloud.automl.v1.IDataset[];
+
+ /** ListDatasetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDatasetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IListDatasetsResponse): google.cloud.automl.v1.ListDatasetsResponse;
+
+ /**
+ * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.automl.v1.ListDatasetsResponse.verify|verify} messages.
+ * @param message ListDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ListDatasetsResponse.verify|verify} messages.
+ * @param message ListDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ListDatasetsResponse;
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ListDatasetsResponse;
+
+ /**
+ * Verifies a ListDatasetsResponse 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 ListDatasetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ListDatasetsResponse;
+
+ /**
+ * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified.
+ * @param message ListDatasetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDatasetRequest. */
+ interface IUpdateDatasetRequest {
+
+ /** UpdateDatasetRequest dataset */
+ dataset?: (google.cloud.automl.v1.IDataset|null);
+
+ /** UpdateDatasetRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateDatasetRequest. */
+ class UpdateDatasetRequest implements IUpdateDatasetRequest {
+
+ /**
+ * Constructs a new UpdateDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IUpdateDatasetRequest);
+
+ /** UpdateDatasetRequest dataset. */
+ public dataset?: (google.cloud.automl.v1.IDataset|null);
+
+ /** UpdateDatasetRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IUpdateDatasetRequest): google.cloud.automl.v1.UpdateDatasetRequest;
+
+ /**
+ * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1.UpdateDatasetRequest.verify|verify} messages.
+ * @param message UpdateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.UpdateDatasetRequest.verify|verify} messages.
+ * @param message UpdateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.UpdateDatasetRequest;
+
+ /**
+ * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.UpdateDatasetRequest;
+
+ /**
+ * Verifies an UpdateDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.UpdateDatasetRequest;
+
+ /**
+ * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified.
+ * @param message UpdateDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDatasetRequest. */
+ interface IDeleteDatasetRequest {
+
+ /** DeleteDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteDatasetRequest. */
+ class DeleteDatasetRequest implements IDeleteDatasetRequest {
+
+ /**
+ * Constructs a new DeleteDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDeleteDatasetRequest);
+
+ /** DeleteDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDeleteDatasetRequest): google.cloud.automl.v1.DeleteDatasetRequest;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DeleteDatasetRequest;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DeleteDatasetRequest;
+
+ /**
+ * Verifies a DeleteDatasetRequest 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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DeleteDatasetRequest;
+
+ /**
+ * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified.
+ * @param message DeleteDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataRequest. */
+ interface IImportDataRequest {
+
+ /** ImportDataRequest name */
+ name?: (string|null);
+
+ /** ImportDataRequest inputConfig */
+ inputConfig?: (google.cloud.automl.v1.IInputConfig|null);
+ }
+
+ /** Represents an ImportDataRequest. */
+ class ImportDataRequest implements IImportDataRequest {
+
+ /**
+ * Constructs a new ImportDataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IImportDataRequest);
+
+ /** ImportDataRequest name. */
+ public name: string;
+
+ /** ImportDataRequest inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1.IInputConfig|null);
+
+ /**
+ * Creates a new ImportDataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IImportDataRequest): google.cloud.automl.v1.ImportDataRequest;
+
+ /**
+ * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.automl.v1.ImportDataRequest.verify|verify} messages.
+ * @param message ImportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImportDataRequest.verify|verify} messages.
+ * @param message ImportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ImportDataRequest;
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ImportDataRequest;
+
+ /**
+ * Verifies an ImportDataRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ImportDataRequest;
+
+ /**
+ * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified.
+ * @param message ImportDataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataRequest. */
+ interface IExportDataRequest {
+
+ /** ExportDataRequest name */
+ name?: (string|null);
+
+ /** ExportDataRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1.IOutputConfig|null);
+ }
+
+ /** Represents an ExportDataRequest. */
+ class ExportDataRequest implements IExportDataRequest {
+
+ /**
+ * Constructs a new ExportDataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IExportDataRequest);
+
+ /** ExportDataRequest name. */
+ public name: string;
+
+ /** ExportDataRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1.IOutputConfig|null);
+
+ /**
+ * Creates a new ExportDataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IExportDataRequest): google.cloud.automl.v1.ExportDataRequest;
+
+ /**
+ * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.automl.v1.ExportDataRequest.verify|verify} messages.
+ * @param message ExportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExportDataRequest.verify|verify} messages.
+ * @param message ExportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExportDataRequest;
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExportDataRequest;
+
+ /**
+ * Verifies an ExportDataRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExportDataRequest;
+
+ /**
+ * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified.
+ * @param message ExportDataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAnnotationSpecRequest. */
+ interface IGetAnnotationSpecRequest {
+
+ /** GetAnnotationSpecRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAnnotationSpecRequest. */
+ class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest {
+
+ /**
+ * Constructs a new GetAnnotationSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IGetAnnotationSpecRequest);
+
+ /** GetAnnotationSpecRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAnnotationSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAnnotationSpecRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IGetAnnotationSpecRequest): google.cloud.automl.v1.GetAnnotationSpecRequest;
+
+ /**
+ * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.automl.v1.GetAnnotationSpecRequest.verify|verify} messages.
+ * @param message GetAnnotationSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.GetAnnotationSpecRequest.verify|verify} messages.
+ * @param message GetAnnotationSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAnnotationSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.GetAnnotationSpecRequest;
+
+ /**
+ * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAnnotationSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.GetAnnotationSpecRequest;
+
+ /**
+ * Verifies a GetAnnotationSpecRequest 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 GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAnnotationSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.GetAnnotationSpecRequest;
+
+ /**
+ * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified.
+ * @param message GetAnnotationSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAnnotationSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAnnotationSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateModelRequest. */
+ interface ICreateModelRequest {
+
+ /** CreateModelRequest parent */
+ parent?: (string|null);
+
+ /** CreateModelRequest model */
+ model?: (google.cloud.automl.v1.IModel|null);
+ }
+
+ /** Represents a CreateModelRequest. */
+ class CreateModelRequest implements ICreateModelRequest {
+
+ /**
+ * Constructs a new CreateModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.ICreateModelRequest);
+
+ /** CreateModelRequest parent. */
+ public parent: string;
+
+ /** CreateModelRequest model. */
+ public model?: (google.cloud.automl.v1.IModel|null);
+
+ /**
+ * Creates a new CreateModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.ICreateModelRequest): google.cloud.automl.v1.CreateModelRequest;
+
+ /**
+ * Encodes the specified CreateModelRequest message. Does not implicitly {@link google.cloud.automl.v1.CreateModelRequest.verify|verify} messages.
+ * @param message CreateModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.ICreateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.CreateModelRequest.verify|verify} messages.
+ * @param message CreateModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.ICreateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.CreateModelRequest;
+
+ /**
+ * Decodes a CreateModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.CreateModelRequest;
+
+ /**
+ * Verifies a CreateModelRequest 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 CreateModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.CreateModelRequest;
+
+ /**
+ * Creates a plain object from a CreateModelRequest message. Also converts values to other types if specified.
+ * @param message CreateModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.CreateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetModelRequest. */
+ interface IGetModelRequest {
+
+ /** GetModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetModelRequest. */
+ class GetModelRequest implements IGetModelRequest {
+
+ /**
+ * Constructs a new GetModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IGetModelRequest);
+
+ /** GetModelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IGetModelRequest): google.cloud.automl.v1.GetModelRequest;
+
+ /**
+ * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.automl.v1.GetModelRequest.verify|verify} messages.
+ * @param message GetModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.GetModelRequest.verify|verify} messages.
+ * @param message GetModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.GetModelRequest;
+
+ /**
+ * Decodes a GetModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.GetModelRequest;
+
+ /**
+ * Verifies a GetModelRequest 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 GetModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.GetModelRequest;
+
+ /**
+ * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified.
+ * @param message GetModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelsRequest. */
+ interface IListModelsRequest {
+
+ /** ListModelsRequest parent */
+ parent?: (string|null);
+
+ /** ListModelsRequest filter */
+ filter?: (string|null);
+
+ /** ListModelsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListModelsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListModelsRequest. */
+ class ListModelsRequest implements IListModelsRequest {
+
+ /**
+ * Constructs a new ListModelsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IListModelsRequest);
+
+ /** ListModelsRequest parent. */
+ public parent: string;
+
+ /** ListModelsRequest filter. */
+ public filter: string;
+
+ /** ListModelsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListModelsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListModelsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IListModelsRequest): google.cloud.automl.v1.ListModelsRequest;
+
+ /**
+ * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.automl.v1.ListModelsRequest.verify|verify} messages.
+ * @param message ListModelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ListModelsRequest.verify|verify} messages.
+ * @param message ListModelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ListModelsRequest;
+
+ /**
+ * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ListModelsRequest;
+
+ /**
+ * Verifies a ListModelsRequest 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 ListModelsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ListModelsRequest;
+
+ /**
+ * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified.
+ * @param message ListModelsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelsResponse. */
+ interface IListModelsResponse {
+
+ /** ListModelsResponse model */
+ model?: (google.cloud.automl.v1.IModel[]|null);
+
+ /** ListModelsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListModelsResponse. */
+ class ListModelsResponse implements IListModelsResponse {
+
+ /**
+ * Constructs a new ListModelsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IListModelsResponse);
+
+ /** ListModelsResponse model. */
+ public model: google.cloud.automl.v1.IModel[];
+
+ /** ListModelsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListModelsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IListModelsResponse): google.cloud.automl.v1.ListModelsResponse;
+
+ /**
+ * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.automl.v1.ListModelsResponse.verify|verify} messages.
+ * @param message ListModelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ListModelsResponse.verify|verify} messages.
+ * @param message ListModelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ListModelsResponse;
+
+ /**
+ * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ListModelsResponse;
+
+ /**
+ * Verifies a ListModelsResponse 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 ListModelsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ListModelsResponse;
+
+ /**
+ * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified.
+ * @param message ListModelsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteModelRequest. */
+ interface IDeleteModelRequest {
+
+ /** DeleteModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteModelRequest. */
+ class DeleteModelRequest implements IDeleteModelRequest {
+
+ /**
+ * Constructs a new DeleteModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDeleteModelRequest);
+
+ /** DeleteModelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDeleteModelRequest): google.cloud.automl.v1.DeleteModelRequest;
+
+ /**
+ * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.automl.v1.DeleteModelRequest.verify|verify} messages.
+ * @param message DeleteModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DeleteModelRequest.verify|verify} messages.
+ * @param message DeleteModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DeleteModelRequest;
+
+ /**
+ * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DeleteModelRequest;
+
+ /**
+ * Verifies a DeleteModelRequest 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DeleteModelRequest;
+
+ /**
+ * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified.
+ * @param message DeleteModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateModelRequest. */
+ interface IUpdateModelRequest {
+
+ /** UpdateModelRequest model */
+ model?: (google.cloud.automl.v1.IModel|null);
+
+ /** UpdateModelRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateModelRequest. */
+ class UpdateModelRequest implements IUpdateModelRequest {
+
+ /**
+ * Constructs a new UpdateModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IUpdateModelRequest);
+
+ /** UpdateModelRequest model. */
+ public model?: (google.cloud.automl.v1.IModel|null);
+
+ /** UpdateModelRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IUpdateModelRequest): google.cloud.automl.v1.UpdateModelRequest;
+
+ /**
+ * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.automl.v1.UpdateModelRequest.verify|verify} messages.
+ * @param message UpdateModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.UpdateModelRequest.verify|verify} messages.
+ * @param message UpdateModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.UpdateModelRequest;
+
+ /**
+ * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.UpdateModelRequest;
+
+ /**
+ * Verifies an UpdateModelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.UpdateModelRequest;
+
+ /**
+ * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified.
+ * @param message UpdateModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployModelRequest. */
+ interface IDeployModelRequest {
+
+ /** DeployModelRequest imageObjectDetectionModelDeploymentMetadata */
+ imageObjectDetectionModelDeploymentMetadata?: (google.cloud.automl.v1.IImageObjectDetectionModelDeploymentMetadata|null);
+
+ /** DeployModelRequest imageClassificationModelDeploymentMetadata */
+ imageClassificationModelDeploymentMetadata?: (google.cloud.automl.v1.IImageClassificationModelDeploymentMetadata|null);
+
+ /** DeployModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeployModelRequest. */
+ class DeployModelRequest implements IDeployModelRequest {
+
+ /**
+ * Constructs a new DeployModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IDeployModelRequest);
+
+ /** DeployModelRequest imageObjectDetectionModelDeploymentMetadata. */
+ public imageObjectDetectionModelDeploymentMetadata?: (google.cloud.automl.v1.IImageObjectDetectionModelDeploymentMetadata|null);
+
+ /** DeployModelRequest imageClassificationModelDeploymentMetadata. */
+ public imageClassificationModelDeploymentMetadata?: (google.cloud.automl.v1.IImageClassificationModelDeploymentMetadata|null);
+
+ /** DeployModelRequest name. */
+ public name: string;
+
+ /** DeployModelRequest modelDeploymentMetadata. */
+ public modelDeploymentMetadata?: ("imageObjectDetectionModelDeploymentMetadata"|"imageClassificationModelDeploymentMetadata");
+
+ /**
+ * Creates a new DeployModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IDeployModelRequest): google.cloud.automl.v1.DeployModelRequest;
+
+ /**
+ * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.automl.v1.DeployModelRequest.verify|verify} messages.
+ * @param message DeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DeployModelRequest.verify|verify} messages.
+ * @param message DeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.DeployModelRequest;
+
+ /**
+ * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.DeployModelRequest;
+
+ /**
+ * Verifies a DeployModelRequest 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 DeployModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.DeployModelRequest;
+
+ /**
+ * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified.
+ * @param message DeployModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployModelRequest. */
+ interface IUndeployModelRequest {
+
+ /** UndeployModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an UndeployModelRequest. */
+ class UndeployModelRequest implements IUndeployModelRequest {
+
+ /**
+ * Constructs a new UndeployModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IUndeployModelRequest);
+
+ /** UndeployModelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new UndeployModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IUndeployModelRequest): google.cloud.automl.v1.UndeployModelRequest;
+
+ /**
+ * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.automl.v1.UndeployModelRequest.verify|verify} messages.
+ * @param message UndeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.UndeployModelRequest.verify|verify} messages.
+ * @param message UndeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.UndeployModelRequest;
+
+ /**
+ * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.UndeployModelRequest;
+
+ /**
+ * Verifies an UndeployModelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.UndeployModelRequest;
+
+ /**
+ * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified.
+ * @param message UndeployModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportModelRequest. */
+ interface IExportModelRequest {
+
+ /** ExportModelRequest name */
+ name?: (string|null);
+
+ /** ExportModelRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1.IModelExportOutputConfig|null);
+ }
+
+ /** Represents an ExportModelRequest. */
+ class ExportModelRequest implements IExportModelRequest {
+
+ /**
+ * Constructs a new ExportModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IExportModelRequest);
+
+ /** ExportModelRequest name. */
+ public name: string;
+
+ /** ExportModelRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1.IModelExportOutputConfig|null);
+
+ /**
+ * Creates a new ExportModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IExportModelRequest): google.cloud.automl.v1.ExportModelRequest;
+
+ /**
+ * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.automl.v1.ExportModelRequest.verify|verify} messages.
+ * @param message ExportModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExportModelRequest.verify|verify} messages.
+ * @param message ExportModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ExportModelRequest;
+
+ /**
+ * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ExportModelRequest;
+
+ /**
+ * Verifies an ExportModelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ExportModelRequest;
+
+ /**
+ * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified.
+ * @param message ExportModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetModelEvaluationRequest. */
+ interface IGetModelEvaluationRequest {
+
+ /** GetModelEvaluationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetModelEvaluationRequest. */
+ class GetModelEvaluationRequest implements IGetModelEvaluationRequest {
+
+ /**
+ * Constructs a new GetModelEvaluationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IGetModelEvaluationRequest);
+
+ /** GetModelEvaluationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetModelEvaluationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetModelEvaluationRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IGetModelEvaluationRequest): google.cloud.automl.v1.GetModelEvaluationRequest;
+
+ /**
+ * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.automl.v1.GetModelEvaluationRequest.verify|verify} messages.
+ * @param message GetModelEvaluationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.GetModelEvaluationRequest.verify|verify} messages.
+ * @param message GetModelEvaluationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetModelEvaluationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetModelEvaluationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.GetModelEvaluationRequest;
+
+ /**
+ * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetModelEvaluationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.GetModelEvaluationRequest;
+
+ /**
+ * Verifies a GetModelEvaluationRequest 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 GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetModelEvaluationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.GetModelEvaluationRequest;
+
+ /**
+ * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified.
+ * @param message GetModelEvaluationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetModelEvaluationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetModelEvaluationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelEvaluationsRequest. */
+ interface IListModelEvaluationsRequest {
+
+ /** ListModelEvaluationsRequest parent */
+ parent?: (string|null);
+
+ /** ListModelEvaluationsRequest filter */
+ filter?: (string|null);
+
+ /** ListModelEvaluationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListModelEvaluationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListModelEvaluationsRequest. */
+ class ListModelEvaluationsRequest implements IListModelEvaluationsRequest {
+
+ /**
+ * Constructs a new ListModelEvaluationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IListModelEvaluationsRequest);
+
+ /** ListModelEvaluationsRequest parent. */
+ public parent: string;
+
+ /** ListModelEvaluationsRequest filter. */
+ public filter: string;
+
+ /** ListModelEvaluationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListModelEvaluationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListModelEvaluationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelEvaluationsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IListModelEvaluationsRequest): google.cloud.automl.v1.ListModelEvaluationsRequest;
+
+ /**
+ * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.automl.v1.ListModelEvaluationsRequest.verify|verify} messages.
+ * @param message ListModelEvaluationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ListModelEvaluationsRequest.verify|verify} messages.
+ * @param message ListModelEvaluationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelEvaluationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ListModelEvaluationsRequest;
+
+ /**
+ * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelEvaluationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ListModelEvaluationsRequest;
+
+ /**
+ * Verifies a ListModelEvaluationsRequest 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 ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelEvaluationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ListModelEvaluationsRequest;
+
+ /**
+ * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified.
+ * @param message ListModelEvaluationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelEvaluationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelEvaluationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelEvaluationsResponse. */
+ interface IListModelEvaluationsResponse {
+
+ /** ListModelEvaluationsResponse modelEvaluation */
+ modelEvaluation?: (google.cloud.automl.v1.IModelEvaluation[]|null);
+
+ /** ListModelEvaluationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListModelEvaluationsResponse. */
+ class ListModelEvaluationsResponse implements IListModelEvaluationsResponse {
+
+ /**
+ * Constructs a new ListModelEvaluationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1.IListModelEvaluationsResponse);
+
+ /** ListModelEvaluationsResponse modelEvaluation. */
+ public modelEvaluation: google.cloud.automl.v1.IModelEvaluation[];
+
+ /** ListModelEvaluationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListModelEvaluationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelEvaluationsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1.IListModelEvaluationsResponse): google.cloud.automl.v1.ListModelEvaluationsResponse;
+
+ /**
+ * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.automl.v1.ListModelEvaluationsResponse.verify|verify} messages.
+ * @param message ListModelEvaluationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ListModelEvaluationsResponse.verify|verify} messages.
+ * @param message ListModelEvaluationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelEvaluationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1.ListModelEvaluationsResponse;
+
+ /**
+ * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelEvaluationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1.ListModelEvaluationsResponse;
+
+ /**
+ * Verifies a ListModelEvaluationsResponse 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 ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelEvaluationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1.ListModelEvaluationsResponse;
+
+ /**
+ * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified.
+ * @param message ListModelEvaluationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelEvaluationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelEvaluationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** Properties of an AnnotationPayload. */
+ interface IAnnotationPayload {
+
+ /** AnnotationPayload translation */
+ translation?: (google.cloud.automl.v1beta1.ITranslationAnnotation|null);
+
+ /** AnnotationPayload classification */
+ classification?: (google.cloud.automl.v1beta1.IClassificationAnnotation|null);
+
+ /** AnnotationPayload imageObjectDetection */
+ imageObjectDetection?: (google.cloud.automl.v1beta1.IImageObjectDetectionAnnotation|null);
+
+ /** AnnotationPayload videoClassification */
+ videoClassification?: (google.cloud.automl.v1beta1.IVideoClassificationAnnotation|null);
+
+ /** AnnotationPayload videoObjectTracking */
+ videoObjectTracking?: (google.cloud.automl.v1beta1.IVideoObjectTrackingAnnotation|null);
+
+ /** AnnotationPayload textExtraction */
+ textExtraction?: (google.cloud.automl.v1beta1.ITextExtractionAnnotation|null);
+
+ /** AnnotationPayload textSentiment */
+ textSentiment?: (google.cloud.automl.v1beta1.ITextSentimentAnnotation|null);
+
+ /** AnnotationPayload tables */
+ tables?: (google.cloud.automl.v1beta1.ITablesAnnotation|null);
+
+ /** AnnotationPayload annotationSpecId */
+ annotationSpecId?: (string|null);
+
+ /** AnnotationPayload displayName */
+ displayName?: (string|null);
+ }
+
+ /** Represents an AnnotationPayload. */
+ class AnnotationPayload implements IAnnotationPayload {
+
+ /**
+ * Constructs a new AnnotationPayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IAnnotationPayload);
+
+ /** AnnotationPayload translation. */
+ public translation?: (google.cloud.automl.v1beta1.ITranslationAnnotation|null);
+
+ /** AnnotationPayload classification. */
+ public classification?: (google.cloud.automl.v1beta1.IClassificationAnnotation|null);
+
+ /** AnnotationPayload imageObjectDetection. */
+ public imageObjectDetection?: (google.cloud.automl.v1beta1.IImageObjectDetectionAnnotation|null);
+
+ /** AnnotationPayload videoClassification. */
+ public videoClassification?: (google.cloud.automl.v1beta1.IVideoClassificationAnnotation|null);
+
+ /** AnnotationPayload videoObjectTracking. */
+ public videoObjectTracking?: (google.cloud.automl.v1beta1.IVideoObjectTrackingAnnotation|null);
+
+ /** AnnotationPayload textExtraction. */
+ public textExtraction?: (google.cloud.automl.v1beta1.ITextExtractionAnnotation|null);
+
+ /** AnnotationPayload textSentiment. */
+ public textSentiment?: (google.cloud.automl.v1beta1.ITextSentimentAnnotation|null);
+
+ /** AnnotationPayload tables. */
+ public tables?: (google.cloud.automl.v1beta1.ITablesAnnotation|null);
+
+ /** AnnotationPayload annotationSpecId. */
+ public annotationSpecId: string;
+
+ /** AnnotationPayload displayName. */
+ public displayName: string;
+
+ /** AnnotationPayload detail. */
+ public detail?: ("translation"|"classification"|"imageObjectDetection"|"videoClassification"|"videoObjectTracking"|"textExtraction"|"textSentiment"|"tables");
+
+ /**
+ * Creates a new AnnotationPayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationPayload instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IAnnotationPayload): google.cloud.automl.v1beta1.AnnotationPayload;
+
+ /**
+ * Encodes the specified AnnotationPayload message. Does not implicitly {@link google.cloud.automl.v1beta1.AnnotationPayload.verify|verify} messages.
+ * @param message AnnotationPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IAnnotationPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationPayload message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.AnnotationPayload.verify|verify} messages.
+ * @param message AnnotationPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IAnnotationPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationPayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.AnnotationPayload;
+
+ /**
+ * Decodes an AnnotationPayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.AnnotationPayload;
+
+ /**
+ * Verifies an AnnotationPayload message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an AnnotationPayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationPayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.AnnotationPayload;
+
+ /**
+ * Creates a plain object from an AnnotationPayload message. Also converts values to other types if specified.
+ * @param message AnnotationPayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.AnnotationPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationPayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationPayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** ClassificationType enum. */
+ enum ClassificationType {
+ CLASSIFICATION_TYPE_UNSPECIFIED = 0,
+ MULTICLASS = 1,
+ MULTILABEL = 2
+ }
+
+ /** Properties of a ClassificationAnnotation. */
+ interface IClassificationAnnotation {
+
+ /** ClassificationAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents a ClassificationAnnotation. */
+ class ClassificationAnnotation implements IClassificationAnnotation {
+
+ /**
+ * Constructs a new ClassificationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IClassificationAnnotation);
+
+ /** ClassificationAnnotation score. */
+ public score: number;
+
+ /**
+ * Creates a new ClassificationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClassificationAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IClassificationAnnotation): google.cloud.automl.v1beta1.ClassificationAnnotation;
+
+ /**
+ * Encodes the specified ClassificationAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationAnnotation.verify|verify} messages.
+ * @param message ClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationAnnotation.verify|verify} messages.
+ * @param message ClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClassificationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ClassificationAnnotation;
+
+ /**
+ * Decodes a ClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ClassificationAnnotation;
+
+ /**
+ * Verifies a ClassificationAnnotation 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 ClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClassificationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ClassificationAnnotation;
+
+ /**
+ * Creates a plain object from a ClassificationAnnotation message. Also converts values to other types if specified.
+ * @param message ClassificationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClassificationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClassificationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoClassificationAnnotation. */
+ interface IVideoClassificationAnnotation {
+
+ /** VideoClassificationAnnotation type */
+ type?: (string|null);
+
+ /** VideoClassificationAnnotation classificationAnnotation */
+ classificationAnnotation?: (google.cloud.automl.v1beta1.IClassificationAnnotation|null);
+
+ /** VideoClassificationAnnotation timeSegment */
+ timeSegment?: (google.cloud.automl.v1beta1.ITimeSegment|null);
+ }
+
+ /** Represents a VideoClassificationAnnotation. */
+ class VideoClassificationAnnotation implements IVideoClassificationAnnotation {
+
+ /**
+ * Constructs a new VideoClassificationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoClassificationAnnotation);
+
+ /** VideoClassificationAnnotation type. */
+ public type: string;
+
+ /** VideoClassificationAnnotation classificationAnnotation. */
+ public classificationAnnotation?: (google.cloud.automl.v1beta1.IClassificationAnnotation|null);
+
+ /** VideoClassificationAnnotation timeSegment. */
+ public timeSegment?: (google.cloud.automl.v1beta1.ITimeSegment|null);
+
+ /**
+ * Creates a new VideoClassificationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoClassificationAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoClassificationAnnotation): google.cloud.automl.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Encodes the specified VideoClassificationAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoClassificationAnnotation.verify|verify} messages.
+ * @param message VideoClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoClassificationAnnotation.verify|verify} messages.
+ * @param message VideoClassificationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoClassificationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Decodes a VideoClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Verifies a VideoClassificationAnnotation 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 VideoClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoClassificationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoClassificationAnnotation;
+
+ /**
+ * Creates a plain object from a VideoClassificationAnnotation message. Also converts values to other types if specified.
+ * @param message VideoClassificationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoClassificationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoClassificationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClassificationEvaluationMetrics. */
+ interface IClassificationEvaluationMetrics {
+
+ /** ClassificationEvaluationMetrics auPrc */
+ auPrc?: (number|null);
+
+ /** ClassificationEvaluationMetrics baseAuPrc */
+ baseAuPrc?: (number|null);
+
+ /** ClassificationEvaluationMetrics auRoc */
+ auRoc?: (number|null);
+
+ /** ClassificationEvaluationMetrics logLoss */
+ logLoss?: (number|null);
+
+ /** ClassificationEvaluationMetrics confidenceMetricsEntry */
+ confidenceMetricsEntry?: (google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry[]|null);
+
+ /** ClassificationEvaluationMetrics confusionMatrix */
+ confusionMatrix?: (google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /** ClassificationEvaluationMetrics annotationSpecId */
+ annotationSpecId?: (string[]|null);
+ }
+
+ /** Represents a ClassificationEvaluationMetrics. */
+ class ClassificationEvaluationMetrics implements IClassificationEvaluationMetrics {
+
+ /**
+ * Constructs a new ClassificationEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IClassificationEvaluationMetrics);
+
+ /** ClassificationEvaluationMetrics auPrc. */
+ public auPrc: number;
+
+ /** ClassificationEvaluationMetrics baseAuPrc. */
+ public baseAuPrc: number;
+
+ /** ClassificationEvaluationMetrics auRoc. */
+ public auRoc: number;
+
+ /** ClassificationEvaluationMetrics logLoss. */
+ public logLoss: number;
+
+ /** ClassificationEvaluationMetrics confidenceMetricsEntry. */
+ public confidenceMetricsEntry: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry[];
+
+ /** ClassificationEvaluationMetrics confusionMatrix. */
+ public confusionMatrix?: (google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /** ClassificationEvaluationMetrics annotationSpecId. */
+ public annotationSpecId: string[];
+
+ /**
+ * Creates a new ClassificationEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClassificationEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IClassificationEvaluationMetrics): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics;
+
+ /**
+ * Encodes the specified ClassificationEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.verify|verify} messages.
+ * @param message ClassificationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IClassificationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClassificationEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.verify|verify} messages.
+ * @param message ClassificationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IClassificationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClassificationEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClassificationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics;
+
+ /**
+ * Decodes a ClassificationEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClassificationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics;
+
+ /**
+ * Verifies a ClassificationEvaluationMetrics 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 ClassificationEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClassificationEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a ClassificationEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message ClassificationEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClassificationEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClassificationEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ClassificationEvaluationMetrics {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry positionThreshold */
+ positionThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry falsePositiveRate */
+ falsePositiveRate?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+
+ /** ConfidenceMetricsEntry recallAt1 */
+ recallAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry precisionAt1 */
+ precisionAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry falsePositiveRateAt1 */
+ falsePositiveRateAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry f1ScoreAt1 */
+ f1ScoreAt1?: (number|null);
+
+ /** ConfidenceMetricsEntry truePositiveCount */
+ truePositiveCount?: (number|Long|string|null);
+
+ /** ConfidenceMetricsEntry falsePositiveCount */
+ falsePositiveCount?: (number|Long|string|null);
+
+ /** ConfidenceMetricsEntry falseNegativeCount */
+ falseNegativeCount?: (number|Long|string|null);
+
+ /** ConfidenceMetricsEntry trueNegativeCount */
+ trueNegativeCount?: (number|Long|string|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry positionThreshold. */
+ public positionThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry falsePositiveRate. */
+ public falsePositiveRate: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /** ConfidenceMetricsEntry recallAt1. */
+ public recallAt1: number;
+
+ /** ConfidenceMetricsEntry precisionAt1. */
+ public precisionAt1: number;
+
+ /** ConfidenceMetricsEntry falsePositiveRateAt1. */
+ public falsePositiveRateAt1: number;
+
+ /** ConfidenceMetricsEntry f1ScoreAt1. */
+ public f1ScoreAt1: number;
+
+ /** ConfidenceMetricsEntry truePositiveCount. */
+ public truePositiveCount: (number|Long|string);
+
+ /** ConfidenceMetricsEntry falsePositiveCount. */
+ public falsePositiveCount: (number|Long|string);
+
+ /** ConfidenceMetricsEntry falseNegativeCount. */
+ public falseNegativeCount: (number|Long|string);
+
+ /** ConfidenceMetricsEntry trueNegativeCount. */
+ public trueNegativeCount: (number|Long|string);
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry 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 ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConfusionMatrix. */
+ interface IConfusionMatrix {
+
+ /** ConfusionMatrix annotationSpecId */
+ annotationSpecId?: (string[]|null);
+
+ /** ConfusionMatrix displayName */
+ displayName?: (string[]|null);
+
+ /** ConfusionMatrix row */
+ row?: (google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow[]|null);
+ }
+
+ /** Represents a ConfusionMatrix. */
+ class ConfusionMatrix implements IConfusionMatrix {
+
+ /**
+ * Constructs a new ConfusionMatrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix);
+
+ /** ConfusionMatrix annotationSpecId. */
+ public annotationSpecId: string[];
+
+ /** ConfusionMatrix displayName. */
+ public displayName: string[];
+
+ /** ConfusionMatrix row. */
+ public row: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow[];
+
+ /**
+ * Creates a new ConfusionMatrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfusionMatrix instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Encodes the specified ConfusionMatrix message. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfusionMatrix message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Verifies a ConfusionMatrix 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 ConfusionMatrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfusionMatrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix;
+
+ /**
+ * Creates a plain object from a ConfusionMatrix message. Also converts values to other types if specified.
+ * @param message ConfusionMatrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfusionMatrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfusionMatrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConfusionMatrix {
+
+ /** Properties of a Row. */
+ interface IRow {
+
+ /** Row exampleCount */
+ exampleCount?: (number[]|null);
+ }
+
+ /** Represents a Row. */
+ class Row implements IRow {
+
+ /**
+ * Constructs a new Row.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow);
+
+ /** Row exampleCount. */
+ public exampleCount: number[];
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Row instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Verifies a Row 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 Row message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Row
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @param message Row
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Row to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Row
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a TimeSegment. */
+ interface ITimeSegment {
+
+ /** TimeSegment startTimeOffset */
+ startTimeOffset?: (google.protobuf.IDuration|null);
+
+ /** TimeSegment endTimeOffset */
+ endTimeOffset?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a TimeSegment. */
+ class TimeSegment implements ITimeSegment {
+
+ /**
+ * Constructs a new TimeSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITimeSegment);
+
+ /** TimeSegment startTimeOffset. */
+ public startTimeOffset?: (google.protobuf.IDuration|null);
+
+ /** TimeSegment endTimeOffset. */
+ public endTimeOffset?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new TimeSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeSegment instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITimeSegment): google.cloud.automl.v1beta1.TimeSegment;
+
+ /**
+ * Encodes the specified TimeSegment message. Does not implicitly {@link google.cloud.automl.v1beta1.TimeSegment.verify|verify} messages.
+ * @param message TimeSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITimeSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeSegment message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TimeSegment.verify|verify} messages.
+ * @param message TimeSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITimeSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TimeSegment;
+
+ /**
+ * Decodes a TimeSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TimeSegment;
+
+ /**
+ * Verifies a TimeSegment 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 TimeSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TimeSegment;
+
+ /**
+ * Creates a plain object from a TimeSegment message. Also converts values to other types if specified.
+ * @param message TimeSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TimeSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimeSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionAnnotation. */
+ interface IImageObjectDetectionAnnotation {
+
+ /** ImageObjectDetectionAnnotation boundingBox */
+ boundingBox?: (google.cloud.automl.v1beta1.IBoundingPoly|null);
+
+ /** ImageObjectDetectionAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents an ImageObjectDetectionAnnotation. */
+ class ImageObjectDetectionAnnotation implements IImageObjectDetectionAnnotation {
+
+ /**
+ * Constructs a new ImageObjectDetectionAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionAnnotation);
+
+ /** ImageObjectDetectionAnnotation boundingBox. */
+ public boundingBox?: (google.cloud.automl.v1beta1.IBoundingPoly|null);
+
+ /** ImageObjectDetectionAnnotation score. */
+ public score: number;
+
+ /**
+ * Creates a new ImageObjectDetectionAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionAnnotation): google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Encodes the specified ImageObjectDetectionAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.verify|verify} messages.
+ * @param message ImageObjectDetectionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageObjectDetectionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.verify|verify} messages.
+ * @param message ImageObjectDetectionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageObjectDetectionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Decodes an ImageObjectDetectionAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Verifies an ImageObjectDetectionAnnotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionAnnotation message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoObjectTrackingAnnotation. */
+ interface IVideoObjectTrackingAnnotation {
+
+ /** VideoObjectTrackingAnnotation instanceId */
+ instanceId?: (string|null);
+
+ /** VideoObjectTrackingAnnotation timeOffset */
+ timeOffset?: (google.protobuf.IDuration|null);
+
+ /** VideoObjectTrackingAnnotation boundingBox */
+ boundingBox?: (google.cloud.automl.v1beta1.IBoundingPoly|null);
+
+ /** VideoObjectTrackingAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents a VideoObjectTrackingAnnotation. */
+ class VideoObjectTrackingAnnotation implements IVideoObjectTrackingAnnotation {
+
+ /**
+ * Constructs a new VideoObjectTrackingAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingAnnotation);
+
+ /** VideoObjectTrackingAnnotation instanceId. */
+ public instanceId: string;
+
+ /** VideoObjectTrackingAnnotation timeOffset. */
+ public timeOffset?: (google.protobuf.IDuration|null);
+
+ /** VideoObjectTrackingAnnotation boundingBox. */
+ public boundingBox?: (google.cloud.automl.v1beta1.IBoundingPoly|null);
+
+ /** VideoObjectTrackingAnnotation score. */
+ public score: number;
+
+ /**
+ * Creates a new VideoObjectTrackingAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoObjectTrackingAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingAnnotation): google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Encodes the specified VideoObjectTrackingAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.verify|verify} messages.
+ * @param message VideoObjectTrackingAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoObjectTrackingAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoObjectTrackingAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.verify|verify} messages.
+ * @param message VideoObjectTrackingAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoObjectTrackingAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoObjectTrackingAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoObjectTrackingAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Verifies a VideoObjectTrackingAnnotation 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 VideoObjectTrackingAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoObjectTrackingAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation;
+
+ /**
+ * Creates a plain object from a VideoObjectTrackingAnnotation message. Also converts values to other types if specified.
+ * @param message VideoObjectTrackingAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoObjectTrackingAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoObjectTrackingAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingBoxMetricsEntry. */
+ interface IBoundingBoxMetricsEntry {
+
+ /** BoundingBoxMetricsEntry iouThreshold */
+ iouThreshold?: (number|null);
+
+ /** BoundingBoxMetricsEntry meanAveragePrecision */
+ meanAveragePrecision?: (number|null);
+
+ /** BoundingBoxMetricsEntry confidenceMetricsEntries */
+ confidenceMetricsEntries?: (google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry[]|null);
+ }
+
+ /** Represents a BoundingBoxMetricsEntry. */
+ class BoundingBoxMetricsEntry implements IBoundingBoxMetricsEntry {
+
+ /**
+ * Constructs a new BoundingBoxMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry);
+
+ /** BoundingBoxMetricsEntry iouThreshold. */
+ public iouThreshold: number;
+
+ /** BoundingBoxMetricsEntry meanAveragePrecision. */
+ public meanAveragePrecision: number;
+
+ /** BoundingBoxMetricsEntry confidenceMetricsEntries. */
+ public confidenceMetricsEntries: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry[];
+
+ /**
+ * Creates a new BoundingBoxMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingBoxMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry;
+
+ /**
+ * Encodes the specified BoundingBoxMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.verify|verify} messages.
+ * @param message BoundingBoxMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingBoxMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.verify|verify} messages.
+ * @param message BoundingBoxMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingBoxMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingBoxMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry;
+
+ /**
+ * Decodes a BoundingBoxMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingBoxMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry;
+
+ /**
+ * Verifies a BoundingBoxMetricsEntry 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 BoundingBoxMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingBoxMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry;
+
+ /**
+ * Creates a plain object from a BoundingBoxMetricsEntry message. Also converts values to other types if specified.
+ * @param message BoundingBoxMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingBoxMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingBoxMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BoundingBoxMetricsEntry {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry 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 ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ImageObjectDetectionEvaluationMetrics. */
+ interface IImageObjectDetectionEvaluationMetrics {
+
+ /** ImageObjectDetectionEvaluationMetrics evaluatedBoundingBoxCount */
+ evaluatedBoundingBoxCount?: (number|null);
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMetricsEntries */
+ boundingBoxMetricsEntries?: (google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry[]|null);
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMeanAveragePrecision */
+ boundingBoxMeanAveragePrecision?: (number|null);
+ }
+
+ /** Represents an ImageObjectDetectionEvaluationMetrics. */
+ class ImageObjectDetectionEvaluationMetrics implements IImageObjectDetectionEvaluationMetrics {
+
+ /**
+ * Constructs a new ImageObjectDetectionEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics);
+
+ /** ImageObjectDetectionEvaluationMetrics evaluatedBoundingBoxCount. */
+ public evaluatedBoundingBoxCount: number;
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMetricsEntries. */
+ public boundingBoxMetricsEntries: google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry[];
+
+ /** ImageObjectDetectionEvaluationMetrics boundingBoxMeanAveragePrecision. */
+ public boundingBoxMeanAveragePrecision: number;
+
+ /**
+ * Creates a new ImageObjectDetectionEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics): google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Encodes the specified ImageObjectDetectionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.verify|verify} messages.
+ * @param message ImageObjectDetectionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.verify|verify} messages.
+ * @param message ImageObjectDetectionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Decodes an ImageObjectDetectionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Verifies an ImageObjectDetectionEvaluationMetrics message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoObjectTrackingEvaluationMetrics. */
+ interface IVideoObjectTrackingEvaluationMetrics {
+
+ /** VideoObjectTrackingEvaluationMetrics evaluatedFrameCount */
+ evaluatedFrameCount?: (number|null);
+
+ /** VideoObjectTrackingEvaluationMetrics evaluatedBoundingBoxCount */
+ evaluatedBoundingBoxCount?: (number|null);
+
+ /** VideoObjectTrackingEvaluationMetrics boundingBoxMetricsEntries */
+ boundingBoxMetricsEntries?: (google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry[]|null);
+
+ /** VideoObjectTrackingEvaluationMetrics boundingBoxMeanAveragePrecision */
+ boundingBoxMeanAveragePrecision?: (number|null);
+ }
+
+ /** Represents a VideoObjectTrackingEvaluationMetrics. */
+ class VideoObjectTrackingEvaluationMetrics implements IVideoObjectTrackingEvaluationMetrics {
+
+ /**
+ * Constructs a new VideoObjectTrackingEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics);
+
+ /** VideoObjectTrackingEvaluationMetrics evaluatedFrameCount. */
+ public evaluatedFrameCount: number;
+
+ /** VideoObjectTrackingEvaluationMetrics evaluatedBoundingBoxCount. */
+ public evaluatedBoundingBoxCount: number;
+
+ /** VideoObjectTrackingEvaluationMetrics boundingBoxMetricsEntries. */
+ public boundingBoxMetricsEntries: google.cloud.automl.v1beta1.IBoundingBoxMetricsEntry[];
+
+ /** VideoObjectTrackingEvaluationMetrics boundingBoxMeanAveragePrecision. */
+ public boundingBoxMeanAveragePrecision: number;
+
+ /**
+ * Creates a new VideoObjectTrackingEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoObjectTrackingEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics): google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics;
+
+ /**
+ * Encodes the specified VideoObjectTrackingEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.verify|verify} messages.
+ * @param message VideoObjectTrackingEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoObjectTrackingEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics.verify|verify} messages.
+ * @param message VideoObjectTrackingEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoObjectTrackingEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoObjectTrackingEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics;
+
+ /**
+ * Decodes a VideoObjectTrackingEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoObjectTrackingEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics;
+
+ /**
+ * Verifies a VideoObjectTrackingEvaluationMetrics 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 VideoObjectTrackingEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoObjectTrackingEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a VideoObjectTrackingEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message VideoObjectTrackingEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoObjectTrackingEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoObjectTrackingEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NormalizedVertex. */
+ interface INormalizedVertex {
+
+ /** NormalizedVertex x */
+ x?: (number|null);
+
+ /** NormalizedVertex y */
+ y?: (number|null);
+ }
+
+ /** Represents a NormalizedVertex. */
+ class NormalizedVertex implements INormalizedVertex {
+
+ /**
+ * Constructs a new NormalizedVertex.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.INormalizedVertex);
+
+ /** NormalizedVertex x. */
+ public x: number;
+
+ /** NormalizedVertex y. */
+ public y: number;
+
+ /**
+ * Creates a new NormalizedVertex instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NormalizedVertex instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.INormalizedVertex): google.cloud.automl.v1beta1.NormalizedVertex;
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.automl.v1beta1.NormalizedVertex.verify|verify} messages.
+ * @param message NormalizedVertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.NormalizedVertex.verify|verify} messages.
+ * @param message NormalizedVertex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.INormalizedVertex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.NormalizedVertex;
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.NormalizedVertex;
+
+ /**
+ * Verifies a NormalizedVertex 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 NormalizedVertex message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NormalizedVertex
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.NormalizedVertex;
+
+ /**
+ * Creates a plain object from a NormalizedVertex message. Also converts values to other types if specified.
+ * @param message NormalizedVertex
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.NormalizedVertex, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NormalizedVertex to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NormalizedVertex
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoundingPoly. */
+ interface IBoundingPoly {
+
+ /** BoundingPoly normalizedVertices */
+ normalizedVertices?: (google.cloud.automl.v1beta1.INormalizedVertex[]|null);
+ }
+
+ /** Represents a BoundingPoly. */
+ class BoundingPoly implements IBoundingPoly {
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBoundingPoly);
+
+ /** BoundingPoly normalizedVertices. */
+ public normalizedVertices: google.cloud.automl.v1beta1.INormalizedVertex[];
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoundingPoly instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBoundingPoly): google.cloud.automl.v1beta1.BoundingPoly;
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.automl.v1beta1.BoundingPoly.verify|verify} messages.
+ * @param message BoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BoundingPoly.verify|verify} messages.
+ * @param message BoundingPoly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBoundingPoly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BoundingPoly;
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BoundingPoly;
+
+ /**
+ * Verifies a BoundingPoly 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 BoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoundingPoly
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BoundingPoly;
+
+ /**
+ * Creates a plain object from a BoundingPoly message. Also converts values to other types if specified.
+ * @param message BoundingPoly
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BoundingPoly, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoundingPoly to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoundingPoly
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TablesDatasetMetadata. */
+ interface ITablesDatasetMetadata {
+
+ /** TablesDatasetMetadata primaryTableSpecId */
+ primaryTableSpecId?: (string|null);
+
+ /** TablesDatasetMetadata targetColumnSpecId */
+ targetColumnSpecId?: (string|null);
+
+ /** TablesDatasetMetadata weightColumnSpecId */
+ weightColumnSpecId?: (string|null);
+
+ /** TablesDatasetMetadata mlUseColumnSpecId */
+ mlUseColumnSpecId?: (string|null);
+
+ /** TablesDatasetMetadata targetColumnCorrelations */
+ targetColumnCorrelations?: ({ [k: string]: google.cloud.automl.v1beta1.ICorrelationStats }|null);
+
+ /** TablesDatasetMetadata statsUpdateTime */
+ statsUpdateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TablesDatasetMetadata. */
+ class TablesDatasetMetadata implements ITablesDatasetMetadata {
+
+ /**
+ * Constructs a new TablesDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITablesDatasetMetadata);
+
+ /** TablesDatasetMetadata primaryTableSpecId. */
+ public primaryTableSpecId: string;
+
+ /** TablesDatasetMetadata targetColumnSpecId. */
+ public targetColumnSpecId: string;
+
+ /** TablesDatasetMetadata weightColumnSpecId. */
+ public weightColumnSpecId: string;
+
+ /** TablesDatasetMetadata mlUseColumnSpecId. */
+ public mlUseColumnSpecId: string;
+
+ /** TablesDatasetMetadata targetColumnCorrelations. */
+ public targetColumnCorrelations: { [k: string]: google.cloud.automl.v1beta1.ICorrelationStats };
+
+ /** TablesDatasetMetadata statsUpdateTime. */
+ public statsUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TablesDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TablesDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITablesDatasetMetadata): google.cloud.automl.v1beta1.TablesDatasetMetadata;
+
+ /**
+ * Encodes the specified TablesDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TablesDatasetMetadata.verify|verify} messages.
+ * @param message TablesDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITablesDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TablesDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TablesDatasetMetadata.verify|verify} messages.
+ * @param message TablesDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITablesDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TablesDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TablesDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TablesDatasetMetadata;
+
+ /**
+ * Decodes a TablesDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TablesDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TablesDatasetMetadata;
+
+ /**
+ * Verifies a TablesDatasetMetadata 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 TablesDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TablesDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TablesDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TablesDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TablesDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TablesDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TablesDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TablesDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TablesModelMetadata. */
+ interface ITablesModelMetadata {
+
+ /** TablesModelMetadata optimizationObjectiveRecallValue */
+ optimizationObjectiveRecallValue?: (number|null);
+
+ /** TablesModelMetadata optimizationObjectivePrecisionValue */
+ optimizationObjectivePrecisionValue?: (number|null);
+
+ /** TablesModelMetadata targetColumnSpec */
+ targetColumnSpec?: (google.cloud.automl.v1beta1.IColumnSpec|null);
+
+ /** TablesModelMetadata inputFeatureColumnSpecs */
+ inputFeatureColumnSpecs?: (google.cloud.automl.v1beta1.IColumnSpec[]|null);
+
+ /** TablesModelMetadata optimizationObjective */
+ optimizationObjective?: (string|null);
+
+ /** TablesModelMetadata tablesModelColumnInfo */
+ tablesModelColumnInfo?: (google.cloud.automl.v1beta1.ITablesModelColumnInfo[]|null);
+
+ /** TablesModelMetadata trainBudgetMilliNodeHours */
+ trainBudgetMilliNodeHours?: (number|Long|string|null);
+
+ /** TablesModelMetadata trainCostMilliNodeHours */
+ trainCostMilliNodeHours?: (number|Long|string|null);
+
+ /** TablesModelMetadata disableEarlyStopping */
+ disableEarlyStopping?: (boolean|null);
+ }
+
+ /** Represents a TablesModelMetadata. */
+ class TablesModelMetadata implements ITablesModelMetadata {
+
+ /**
+ * Constructs a new TablesModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITablesModelMetadata);
+
+ /** TablesModelMetadata optimizationObjectiveRecallValue. */
+ public optimizationObjectiveRecallValue?: (number|null);
+
+ /** TablesModelMetadata optimizationObjectivePrecisionValue. */
+ public optimizationObjectivePrecisionValue?: (number|null);
+
+ /** TablesModelMetadata targetColumnSpec. */
+ public targetColumnSpec?: (google.cloud.automl.v1beta1.IColumnSpec|null);
+
+ /** TablesModelMetadata inputFeatureColumnSpecs. */
+ public inputFeatureColumnSpecs: google.cloud.automl.v1beta1.IColumnSpec[];
+
+ /** TablesModelMetadata optimizationObjective. */
+ public optimizationObjective: string;
+
+ /** TablesModelMetadata tablesModelColumnInfo. */
+ public tablesModelColumnInfo: google.cloud.automl.v1beta1.ITablesModelColumnInfo[];
+
+ /** TablesModelMetadata trainBudgetMilliNodeHours. */
+ public trainBudgetMilliNodeHours: (number|Long|string);
+
+ /** TablesModelMetadata trainCostMilliNodeHours. */
+ public trainCostMilliNodeHours: (number|Long|string);
+
+ /** TablesModelMetadata disableEarlyStopping. */
+ public disableEarlyStopping: boolean;
+
+ /** TablesModelMetadata additionalOptimizationObjectiveConfig. */
+ public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue");
+
+ /**
+ * Creates a new TablesModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TablesModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITablesModelMetadata): google.cloud.automl.v1beta1.TablesModelMetadata;
+
+ /**
+ * Encodes the specified TablesModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TablesModelMetadata.verify|verify} messages.
+ * @param message TablesModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITablesModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TablesModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TablesModelMetadata.verify|verify} messages.
+ * @param message TablesModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITablesModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TablesModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TablesModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TablesModelMetadata;
+
+ /**
+ * Decodes a TablesModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TablesModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TablesModelMetadata;
+
+ /**
+ * Verifies a TablesModelMetadata 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 TablesModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TablesModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TablesModelMetadata;
+
+ /**
+ * Creates a plain object from a TablesModelMetadata message. Also converts values to other types if specified.
+ * @param message TablesModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TablesModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TablesModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TablesModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TablesAnnotation. */
+ interface ITablesAnnotation {
+
+ /** TablesAnnotation score */
+ score?: (number|null);
+
+ /** TablesAnnotation predictionInterval */
+ predictionInterval?: (google.cloud.automl.v1beta1.IDoubleRange|null);
+
+ /** TablesAnnotation value */
+ value?: (google.protobuf.IValue|null);
+
+ /** TablesAnnotation tablesModelColumnInfo */
+ tablesModelColumnInfo?: (google.cloud.automl.v1beta1.ITablesModelColumnInfo[]|null);
+
+ /** TablesAnnotation baselineScore */
+ baselineScore?: (number|null);
+ }
+
+ /** Represents a TablesAnnotation. */
+ class TablesAnnotation implements ITablesAnnotation {
+
+ /**
+ * Constructs a new TablesAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITablesAnnotation);
+
+ /** TablesAnnotation score. */
+ public score: number;
+
+ /** TablesAnnotation predictionInterval. */
+ public predictionInterval?: (google.cloud.automl.v1beta1.IDoubleRange|null);
+
+ /** TablesAnnotation value. */
+ public value?: (google.protobuf.IValue|null);
+
+ /** TablesAnnotation tablesModelColumnInfo. */
+ public tablesModelColumnInfo: google.cloud.automl.v1beta1.ITablesModelColumnInfo[];
+
+ /** TablesAnnotation baselineScore. */
+ public baselineScore: number;
+
+ /**
+ * Creates a new TablesAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TablesAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITablesAnnotation): google.cloud.automl.v1beta1.TablesAnnotation;
+
+ /**
+ * Encodes the specified TablesAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.TablesAnnotation.verify|verify} messages.
+ * @param message TablesAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITablesAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TablesAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TablesAnnotation.verify|verify} messages.
+ * @param message TablesAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITablesAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TablesAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TablesAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TablesAnnotation;
+
+ /**
+ * Decodes a TablesAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TablesAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TablesAnnotation;
+
+ /**
+ * Verifies a TablesAnnotation 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 TablesAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TablesAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TablesAnnotation;
+
+ /**
+ * Creates a plain object from a TablesAnnotation message. Also converts values to other types if specified.
+ * @param message TablesAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TablesAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TablesAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TablesAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TablesModelColumnInfo. */
+ interface ITablesModelColumnInfo {
+
+ /** TablesModelColumnInfo columnSpecName */
+ columnSpecName?: (string|null);
+
+ /** TablesModelColumnInfo columnDisplayName */
+ columnDisplayName?: (string|null);
+
+ /** TablesModelColumnInfo featureImportance */
+ featureImportance?: (number|null);
+ }
+
+ /** Represents a TablesModelColumnInfo. */
+ class TablesModelColumnInfo implements ITablesModelColumnInfo {
+
+ /**
+ * Constructs a new TablesModelColumnInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITablesModelColumnInfo);
+
+ /** TablesModelColumnInfo columnSpecName. */
+ public columnSpecName: string;
+
+ /** TablesModelColumnInfo columnDisplayName. */
+ public columnDisplayName: string;
+
+ /** TablesModelColumnInfo featureImportance. */
+ public featureImportance: number;
+
+ /**
+ * Creates a new TablesModelColumnInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TablesModelColumnInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITablesModelColumnInfo): google.cloud.automl.v1beta1.TablesModelColumnInfo;
+
+ /**
+ * Encodes the specified TablesModelColumnInfo message. Does not implicitly {@link google.cloud.automl.v1beta1.TablesModelColumnInfo.verify|verify} messages.
+ * @param message TablesModelColumnInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITablesModelColumnInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TablesModelColumnInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TablesModelColumnInfo.verify|verify} messages.
+ * @param message TablesModelColumnInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITablesModelColumnInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TablesModelColumnInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TablesModelColumnInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TablesModelColumnInfo;
+
+ /**
+ * Decodes a TablesModelColumnInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TablesModelColumnInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TablesModelColumnInfo;
+
+ /**
+ * Verifies a TablesModelColumnInfo 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 TablesModelColumnInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TablesModelColumnInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TablesModelColumnInfo;
+
+ /**
+ * Creates a plain object from a TablesModelColumnInfo message. Also converts values to other types if specified.
+ * @param message TablesModelColumnInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TablesModelColumnInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TablesModelColumnInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TablesModelColumnInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ColumnSpec. */
+ interface IColumnSpec {
+
+ /** ColumnSpec name */
+ name?: (string|null);
+
+ /** ColumnSpec dataType */
+ dataType?: (google.cloud.automl.v1beta1.IDataType|null);
+
+ /** ColumnSpec displayName */
+ displayName?: (string|null);
+
+ /** ColumnSpec dataStats */
+ dataStats?: (google.cloud.automl.v1beta1.IDataStats|null);
+
+ /** ColumnSpec topCorrelatedColumns */
+ topCorrelatedColumns?: (google.cloud.automl.v1beta1.ColumnSpec.ICorrelatedColumn[]|null);
+
+ /** ColumnSpec etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a ColumnSpec. */
+ class ColumnSpec implements IColumnSpec {
+
+ /**
+ * Constructs a new ColumnSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IColumnSpec);
+
+ /** ColumnSpec name. */
+ public name: string;
+
+ /** ColumnSpec dataType. */
+ public dataType?: (google.cloud.automl.v1beta1.IDataType|null);
+
+ /** ColumnSpec displayName. */
+ public displayName: string;
+
+ /** ColumnSpec dataStats. */
+ public dataStats?: (google.cloud.automl.v1beta1.IDataStats|null);
+
+ /** ColumnSpec topCorrelatedColumns. */
+ public topCorrelatedColumns: google.cloud.automl.v1beta1.ColumnSpec.ICorrelatedColumn[];
+
+ /** ColumnSpec etag. */
+ public etag: string;
+
+ /**
+ * Creates a new ColumnSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ColumnSpec instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IColumnSpec): google.cloud.automl.v1beta1.ColumnSpec;
+
+ /**
+ * Encodes the specified ColumnSpec message. Does not implicitly {@link google.cloud.automl.v1beta1.ColumnSpec.verify|verify} messages.
+ * @param message ColumnSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IColumnSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ColumnSpec message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ColumnSpec.verify|verify} messages.
+ * @param message ColumnSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IColumnSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ColumnSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ColumnSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ColumnSpec;
+
+ /**
+ * Decodes a ColumnSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ColumnSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ColumnSpec;
+
+ /**
+ * Verifies a ColumnSpec 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 ColumnSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ColumnSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ColumnSpec;
+
+ /**
+ * Creates a plain object from a ColumnSpec message. Also converts values to other types if specified.
+ * @param message ColumnSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ColumnSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ColumnSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ColumnSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ColumnSpec {
+
+ /** Properties of a CorrelatedColumn. */
+ interface ICorrelatedColumn {
+
+ /** CorrelatedColumn columnSpecId */
+ columnSpecId?: (string|null);
+
+ /** CorrelatedColumn correlationStats */
+ correlationStats?: (google.cloud.automl.v1beta1.ICorrelationStats|null);
+ }
+
+ /** Represents a CorrelatedColumn. */
+ class CorrelatedColumn implements ICorrelatedColumn {
+
+ /**
+ * Constructs a new CorrelatedColumn.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ColumnSpec.ICorrelatedColumn);
+
+ /** CorrelatedColumn columnSpecId. */
+ public columnSpecId: string;
+
+ /** CorrelatedColumn correlationStats. */
+ public correlationStats?: (google.cloud.automl.v1beta1.ICorrelationStats|null);
+
+ /**
+ * Creates a new CorrelatedColumn instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CorrelatedColumn instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ColumnSpec.ICorrelatedColumn): google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn;
+
+ /**
+ * Encodes the specified CorrelatedColumn message. Does not implicitly {@link google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.verify|verify} messages.
+ * @param message CorrelatedColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ColumnSpec.ICorrelatedColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CorrelatedColumn message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.verify|verify} messages.
+ * @param message CorrelatedColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ColumnSpec.ICorrelatedColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CorrelatedColumn message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CorrelatedColumn
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn;
+
+ /**
+ * Decodes a CorrelatedColumn message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CorrelatedColumn
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn;
+
+ /**
+ * Verifies a CorrelatedColumn 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 CorrelatedColumn message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CorrelatedColumn
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn;
+
+ /**
+ * Creates a plain object from a CorrelatedColumn message. Also converts values to other types if specified.
+ * @param message CorrelatedColumn
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CorrelatedColumn to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CorrelatedColumn
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DataStats. */
+ interface IDataStats {
+
+ /** DataStats float64Stats */
+ float64Stats?: (google.cloud.automl.v1beta1.IFloat64Stats|null);
+
+ /** DataStats stringStats */
+ stringStats?: (google.cloud.automl.v1beta1.IStringStats|null);
+
+ /** DataStats timestampStats */
+ timestampStats?: (google.cloud.automl.v1beta1.ITimestampStats|null);
+
+ /** DataStats arrayStats */
+ arrayStats?: (google.cloud.automl.v1beta1.IArrayStats|null);
+
+ /** DataStats structStats */
+ structStats?: (google.cloud.automl.v1beta1.IStructStats|null);
+
+ /** DataStats categoryStats */
+ categoryStats?: (google.cloud.automl.v1beta1.ICategoryStats|null);
+
+ /** DataStats distinctValueCount */
+ distinctValueCount?: (number|Long|string|null);
+
+ /** DataStats nullValueCount */
+ nullValueCount?: (number|Long|string|null);
+
+ /** DataStats validValueCount */
+ validValueCount?: (number|Long|string|null);
+ }
+
+ /** Represents a DataStats. */
+ class DataStats implements IDataStats {
+
+ /**
+ * Constructs a new DataStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDataStats);
+
+ /** DataStats float64Stats. */
+ public float64Stats?: (google.cloud.automl.v1beta1.IFloat64Stats|null);
+
+ /** DataStats stringStats. */
+ public stringStats?: (google.cloud.automl.v1beta1.IStringStats|null);
+
+ /** DataStats timestampStats. */
+ public timestampStats?: (google.cloud.automl.v1beta1.ITimestampStats|null);
+
+ /** DataStats arrayStats. */
+ public arrayStats?: (google.cloud.automl.v1beta1.IArrayStats|null);
+
+ /** DataStats structStats. */
+ public structStats?: (google.cloud.automl.v1beta1.IStructStats|null);
+
+ /** DataStats categoryStats. */
+ public categoryStats?: (google.cloud.automl.v1beta1.ICategoryStats|null);
+
+ /** DataStats distinctValueCount. */
+ public distinctValueCount: (number|Long|string);
+
+ /** DataStats nullValueCount. */
+ public nullValueCount: (number|Long|string);
+
+ /** DataStats validValueCount. */
+ public validValueCount: (number|Long|string);
+
+ /** DataStats stats. */
+ public stats?: ("float64Stats"|"stringStats"|"timestampStats"|"arrayStats"|"structStats"|"categoryStats");
+
+ /**
+ * Creates a new DataStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDataStats): google.cloud.automl.v1beta1.DataStats;
+
+ /**
+ * Encodes the specified DataStats message. Does not implicitly {@link google.cloud.automl.v1beta1.DataStats.verify|verify} messages.
+ * @param message DataStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDataStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DataStats.verify|verify} messages.
+ * @param message DataStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDataStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DataStats;
+
+ /**
+ * Decodes a DataStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DataStats;
+
+ /**
+ * Verifies a DataStats 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 DataStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DataStats;
+
+ /**
+ * Creates a plain object from a DataStats message. Also converts values to other types if specified.
+ * @param message DataStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DataStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Float64Stats. */
+ interface IFloat64Stats {
+
+ /** Float64Stats mean */
+ mean?: (number|null);
+
+ /** Float64Stats standardDeviation */
+ standardDeviation?: (number|null);
+
+ /** Float64Stats quantiles */
+ quantiles?: (number[]|null);
+
+ /** Float64Stats histogramBuckets */
+ histogramBuckets?: (google.cloud.automl.v1beta1.Float64Stats.IHistogramBucket[]|null);
+ }
+
+ /** Represents a Float64Stats. */
+ class Float64Stats implements IFloat64Stats {
+
+ /**
+ * Constructs a new Float64Stats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IFloat64Stats);
+
+ /** Float64Stats mean. */
+ public mean: number;
+
+ /** Float64Stats standardDeviation. */
+ public standardDeviation: number;
+
+ /** Float64Stats quantiles. */
+ public quantiles: number[];
+
+ /** Float64Stats histogramBuckets. */
+ public histogramBuckets: google.cloud.automl.v1beta1.Float64Stats.IHistogramBucket[];
+
+ /**
+ * Creates a new Float64Stats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Float64Stats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IFloat64Stats): google.cloud.automl.v1beta1.Float64Stats;
+
+ /**
+ * Encodes the specified Float64Stats message. Does not implicitly {@link google.cloud.automl.v1beta1.Float64Stats.verify|verify} messages.
+ * @param message Float64Stats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IFloat64Stats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Float64Stats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Float64Stats.verify|verify} messages.
+ * @param message Float64Stats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IFloat64Stats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Float64Stats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Float64Stats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Float64Stats;
+
+ /**
+ * Decodes a Float64Stats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Float64Stats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Float64Stats;
+
+ /**
+ * Verifies a Float64Stats 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 Float64Stats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Float64Stats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Float64Stats;
+
+ /**
+ * Creates a plain object from a Float64Stats message. Also converts values to other types if specified.
+ * @param message Float64Stats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Float64Stats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Float64Stats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Float64Stats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Float64Stats {
+
+ /** Properties of a HistogramBucket. */
+ interface IHistogramBucket {
+
+ /** HistogramBucket min */
+ min?: (number|null);
+
+ /** HistogramBucket max */
+ max?: (number|null);
+
+ /** HistogramBucket count */
+ count?: (number|Long|string|null);
+ }
+
+ /** Represents a HistogramBucket. */
+ class HistogramBucket implements IHistogramBucket {
+
+ /**
+ * Constructs a new HistogramBucket.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.Float64Stats.IHistogramBucket);
+
+ /** HistogramBucket min. */
+ public min: number;
+
+ /** HistogramBucket max. */
+ public max: number;
+
+ /** HistogramBucket count. */
+ public count: (number|Long|string);
+
+ /**
+ * Creates a new HistogramBucket instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HistogramBucket instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.Float64Stats.IHistogramBucket): google.cloud.automl.v1beta1.Float64Stats.HistogramBucket;
+
+ /**
+ * Encodes the specified HistogramBucket message. Does not implicitly {@link google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.verify|verify} messages.
+ * @param message HistogramBucket message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.Float64Stats.IHistogramBucket, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HistogramBucket message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.verify|verify} messages.
+ * @param message HistogramBucket message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.Float64Stats.IHistogramBucket, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HistogramBucket message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HistogramBucket
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Float64Stats.HistogramBucket;
+
+ /**
+ * Decodes a HistogramBucket message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HistogramBucket
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Float64Stats.HistogramBucket;
+
+ /**
+ * Verifies a HistogramBucket 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 HistogramBucket message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HistogramBucket
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Float64Stats.HistogramBucket;
+
+ /**
+ * Creates a plain object from a HistogramBucket message. Also converts values to other types if specified.
+ * @param message HistogramBucket
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Float64Stats.HistogramBucket, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HistogramBucket to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HistogramBucket
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a StringStats. */
+ interface IStringStats {
+
+ /** StringStats topUnigramStats */
+ topUnigramStats?: (google.cloud.automl.v1beta1.StringStats.IUnigramStats[]|null);
+ }
+
+ /** Represents a StringStats. */
+ class StringStats implements IStringStats {
+
+ /**
+ * Constructs a new StringStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IStringStats);
+
+ /** StringStats topUnigramStats. */
+ public topUnigramStats: google.cloud.automl.v1beta1.StringStats.IUnigramStats[];
+
+ /**
+ * Creates a new StringStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IStringStats): google.cloud.automl.v1beta1.StringStats;
+
+ /**
+ * Encodes the specified StringStats message. Does not implicitly {@link google.cloud.automl.v1beta1.StringStats.verify|verify} messages.
+ * @param message StringStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IStringStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.StringStats.verify|verify} messages.
+ * @param message StringStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IStringStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.StringStats;
+
+ /**
+ * Decodes a StringStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.StringStats;
+
+ /**
+ * Verifies a StringStats 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 StringStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.StringStats;
+
+ /**
+ * Creates a plain object from a StringStats message. Also converts values to other types if specified.
+ * @param message StringStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.StringStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StringStats {
+
+ /** Properties of an UnigramStats. */
+ interface IUnigramStats {
+
+ /** UnigramStats value */
+ value?: (string|null);
+
+ /** UnigramStats count */
+ count?: (number|Long|string|null);
+ }
+
+ /** Represents an UnigramStats. */
+ class UnigramStats implements IUnigramStats {
+
+ /**
+ * Constructs a new UnigramStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.StringStats.IUnigramStats);
+
+ /** UnigramStats value. */
+ public value: string;
+
+ /** UnigramStats count. */
+ public count: (number|Long|string);
+
+ /**
+ * Creates a new UnigramStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UnigramStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.StringStats.IUnigramStats): google.cloud.automl.v1beta1.StringStats.UnigramStats;
+
+ /**
+ * Encodes the specified UnigramStats message. Does not implicitly {@link google.cloud.automl.v1beta1.StringStats.UnigramStats.verify|verify} messages.
+ * @param message UnigramStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.StringStats.IUnigramStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UnigramStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.StringStats.UnigramStats.verify|verify} messages.
+ * @param message UnigramStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.StringStats.IUnigramStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UnigramStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UnigramStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.StringStats.UnigramStats;
+
+ /**
+ * Decodes an UnigramStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UnigramStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.StringStats.UnigramStats;
+
+ /**
+ * Verifies an UnigramStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UnigramStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UnigramStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.StringStats.UnigramStats;
+
+ /**
+ * Creates a plain object from an UnigramStats message. Also converts values to other types if specified.
+ * @param message UnigramStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.StringStats.UnigramStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UnigramStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UnigramStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TimestampStats. */
+ interface ITimestampStats {
+
+ /** TimestampStats granularStats */
+ granularStats?: ({ [k: string]: google.cloud.automl.v1beta1.TimestampStats.IGranularStats }|null);
+ }
+
+ /** Represents a TimestampStats. */
+ class TimestampStats implements ITimestampStats {
+
+ /**
+ * Constructs a new TimestampStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITimestampStats);
+
+ /** TimestampStats granularStats. */
+ public granularStats: { [k: string]: google.cloud.automl.v1beta1.TimestampStats.IGranularStats };
+
+ /**
+ * Creates a new TimestampStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimestampStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITimestampStats): google.cloud.automl.v1beta1.TimestampStats;
+
+ /**
+ * Encodes the specified TimestampStats message. Does not implicitly {@link google.cloud.automl.v1beta1.TimestampStats.verify|verify} messages.
+ * @param message TimestampStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITimestampStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimestampStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TimestampStats.verify|verify} messages.
+ * @param message TimestampStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITimestampStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimestampStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimestampStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TimestampStats;
+
+ /**
+ * Decodes a TimestampStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimestampStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TimestampStats;
+
+ /**
+ * Verifies a TimestampStats 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 TimestampStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimestampStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TimestampStats;
+
+ /**
+ * Creates a plain object from a TimestampStats message. Also converts values to other types if specified.
+ * @param message TimestampStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TimestampStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimestampStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimestampStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TimestampStats {
+
+ /** Properties of a GranularStats. */
+ interface IGranularStats {
+
+ /** GranularStats buckets */
+ buckets?: ({ [k: string]: (number|Long|string) }|null);
+ }
+
+ /** Represents a GranularStats. */
+ class GranularStats implements IGranularStats {
+
+ /**
+ * Constructs a new GranularStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.TimestampStats.IGranularStats);
+
+ /** GranularStats buckets. */
+ public buckets: { [k: string]: (number|Long|string) };
+
+ /**
+ * Creates a new GranularStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GranularStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.TimestampStats.IGranularStats): google.cloud.automl.v1beta1.TimestampStats.GranularStats;
+
+ /**
+ * Encodes the specified GranularStats message. Does not implicitly {@link google.cloud.automl.v1beta1.TimestampStats.GranularStats.verify|verify} messages.
+ * @param message GranularStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.TimestampStats.IGranularStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GranularStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TimestampStats.GranularStats.verify|verify} messages.
+ * @param message GranularStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.TimestampStats.IGranularStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GranularStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GranularStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TimestampStats.GranularStats;
+
+ /**
+ * Decodes a GranularStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GranularStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TimestampStats.GranularStats;
+
+ /**
+ * Verifies a GranularStats 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 GranularStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GranularStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TimestampStats.GranularStats;
+
+ /**
+ * Creates a plain object from a GranularStats message. Also converts values to other types if specified.
+ * @param message GranularStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TimestampStats.GranularStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GranularStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GranularStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ArrayStats. */
+ interface IArrayStats {
+
+ /** ArrayStats memberStats */
+ memberStats?: (google.cloud.automl.v1beta1.IDataStats|null);
+ }
+
+ /** Represents an ArrayStats. */
+ class ArrayStats implements IArrayStats {
+
+ /**
+ * Constructs a new ArrayStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IArrayStats);
+
+ /** ArrayStats memberStats. */
+ public memberStats?: (google.cloud.automl.v1beta1.IDataStats|null);
+
+ /**
+ * Creates a new ArrayStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArrayStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IArrayStats): google.cloud.automl.v1beta1.ArrayStats;
+
+ /**
+ * Encodes the specified ArrayStats message. Does not implicitly {@link google.cloud.automl.v1beta1.ArrayStats.verify|verify} messages.
+ * @param message ArrayStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IArrayStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArrayStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ArrayStats.verify|verify} messages.
+ * @param message ArrayStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IArrayStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArrayStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArrayStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ArrayStats;
+
+ /**
+ * Decodes an ArrayStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArrayStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ArrayStats;
+
+ /**
+ * Verifies an ArrayStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ArrayStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArrayStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ArrayStats;
+
+ /**
+ * Creates a plain object from an ArrayStats message. Also converts values to other types if specified.
+ * @param message ArrayStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ArrayStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArrayStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArrayStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StructStats. */
+ interface IStructStats {
+
+ /** StructStats fieldStats */
+ fieldStats?: ({ [k: string]: google.cloud.automl.v1beta1.IDataStats }|null);
+ }
+
+ /** Represents a StructStats. */
+ class StructStats implements IStructStats {
+
+ /**
+ * Constructs a new StructStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IStructStats);
+
+ /** StructStats fieldStats. */
+ public fieldStats: { [k: string]: google.cloud.automl.v1beta1.IDataStats };
+
+ /**
+ * Creates a new StructStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StructStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IStructStats): google.cloud.automl.v1beta1.StructStats;
+
+ /**
+ * Encodes the specified StructStats message. Does not implicitly {@link google.cloud.automl.v1beta1.StructStats.verify|verify} messages.
+ * @param message StructStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IStructStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StructStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.StructStats.verify|verify} messages.
+ * @param message StructStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IStructStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StructStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StructStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.StructStats;
+
+ /**
+ * Decodes a StructStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StructStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.StructStats;
+
+ /**
+ * Verifies a StructStats 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 StructStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StructStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.StructStats;
+
+ /**
+ * Creates a plain object from a StructStats message. Also converts values to other types if specified.
+ * @param message StructStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.StructStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StructStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StructStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CategoryStats. */
+ interface ICategoryStats {
+
+ /** CategoryStats topCategoryStats */
+ topCategoryStats?: (google.cloud.automl.v1beta1.CategoryStats.ISingleCategoryStats[]|null);
+ }
+
+ /** Represents a CategoryStats. */
+ class CategoryStats implements ICategoryStats {
+
+ /**
+ * Constructs a new CategoryStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ICategoryStats);
+
+ /** CategoryStats topCategoryStats. */
+ public topCategoryStats: google.cloud.automl.v1beta1.CategoryStats.ISingleCategoryStats[];
+
+ /**
+ * Creates a new CategoryStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CategoryStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ICategoryStats): google.cloud.automl.v1beta1.CategoryStats;
+
+ /**
+ * Encodes the specified CategoryStats message. Does not implicitly {@link google.cloud.automl.v1beta1.CategoryStats.verify|verify} messages.
+ * @param message CategoryStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ICategoryStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CategoryStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.CategoryStats.verify|verify} messages.
+ * @param message CategoryStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ICategoryStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CategoryStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CategoryStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.CategoryStats;
+
+ /**
+ * Decodes a CategoryStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CategoryStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.CategoryStats;
+
+ /**
+ * Verifies a CategoryStats 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 CategoryStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CategoryStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.CategoryStats;
+
+ /**
+ * Creates a plain object from a CategoryStats message. Also converts values to other types if specified.
+ * @param message CategoryStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.CategoryStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CategoryStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CategoryStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CategoryStats {
+
+ /** Properties of a SingleCategoryStats. */
+ interface ISingleCategoryStats {
+
+ /** SingleCategoryStats value */
+ value?: (string|null);
+
+ /** SingleCategoryStats count */
+ count?: (number|Long|string|null);
+ }
+
+ /** Represents a SingleCategoryStats. */
+ class SingleCategoryStats implements ISingleCategoryStats {
+
+ /**
+ * Constructs a new SingleCategoryStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.CategoryStats.ISingleCategoryStats);
+
+ /** SingleCategoryStats value. */
+ public value: string;
+
+ /** SingleCategoryStats count. */
+ public count: (number|Long|string);
+
+ /**
+ * Creates a new SingleCategoryStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SingleCategoryStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.CategoryStats.ISingleCategoryStats): google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats;
+
+ /**
+ * Encodes the specified SingleCategoryStats message. Does not implicitly {@link google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.verify|verify} messages.
+ * @param message SingleCategoryStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.CategoryStats.ISingleCategoryStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SingleCategoryStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.verify|verify} messages.
+ * @param message SingleCategoryStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.CategoryStats.ISingleCategoryStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SingleCategoryStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SingleCategoryStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats;
+
+ /**
+ * Decodes a SingleCategoryStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SingleCategoryStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats;
+
+ /**
+ * Verifies a SingleCategoryStats 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 SingleCategoryStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SingleCategoryStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats;
+
+ /**
+ * Creates a plain object from a SingleCategoryStats message. Also converts values to other types if specified.
+ * @param message SingleCategoryStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SingleCategoryStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SingleCategoryStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a CorrelationStats. */
+ interface ICorrelationStats {
+
+ /** CorrelationStats cramersV */
+ cramersV?: (number|null);
+ }
+
+ /** Represents a CorrelationStats. */
+ class CorrelationStats implements ICorrelationStats {
+
+ /**
+ * Constructs a new CorrelationStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ICorrelationStats);
+
+ /** CorrelationStats cramersV. */
+ public cramersV: number;
+
+ /**
+ * Creates a new CorrelationStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CorrelationStats instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ICorrelationStats): google.cloud.automl.v1beta1.CorrelationStats;
+
+ /**
+ * Encodes the specified CorrelationStats message. Does not implicitly {@link google.cloud.automl.v1beta1.CorrelationStats.verify|verify} messages.
+ * @param message CorrelationStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ICorrelationStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CorrelationStats message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.CorrelationStats.verify|verify} messages.
+ * @param message CorrelationStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ICorrelationStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CorrelationStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CorrelationStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.CorrelationStats;
+
+ /**
+ * Decodes a CorrelationStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CorrelationStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.CorrelationStats;
+
+ /**
+ * Verifies a CorrelationStats 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 CorrelationStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CorrelationStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.CorrelationStats;
+
+ /**
+ * Creates a plain object from a CorrelationStats message. Also converts values to other types if specified.
+ * @param message CorrelationStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.CorrelationStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CorrelationStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CorrelationStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** TypeCode enum. */
+ enum TypeCode {
+ TYPE_CODE_UNSPECIFIED = 0,
+ FLOAT64 = 3,
+ TIMESTAMP = 4,
+ STRING = 6,
+ ARRAY = 8,
+ STRUCT = 9,
+ CATEGORY = 10
+ }
+
+ /** Properties of a DataType. */
+ interface IDataType {
+
+ /** DataType listElementType */
+ listElementType?: (google.cloud.automl.v1beta1.IDataType|null);
+
+ /** DataType structType */
+ structType?: (google.cloud.automl.v1beta1.IStructType|null);
+
+ /** DataType timeFormat */
+ timeFormat?: (string|null);
+
+ /** DataType typeCode */
+ typeCode?: (google.cloud.automl.v1beta1.TypeCode|keyof typeof google.cloud.automl.v1beta1.TypeCode|null);
+
+ /** DataType nullable */
+ nullable?: (boolean|null);
+ }
+
+ /** Represents a DataType. */
+ class DataType implements IDataType {
+
+ /**
+ * Constructs a new DataType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDataType);
+
+ /** DataType listElementType. */
+ public listElementType?: (google.cloud.automl.v1beta1.IDataType|null);
+
+ /** DataType structType. */
+ public structType?: (google.cloud.automl.v1beta1.IStructType|null);
+
+ /** DataType timeFormat. */
+ public timeFormat?: (string|null);
+
+ /** DataType typeCode. */
+ public typeCode: (google.cloud.automl.v1beta1.TypeCode|keyof typeof google.cloud.automl.v1beta1.TypeCode);
+
+ /** DataType nullable. */
+ public nullable: boolean;
+
+ /** DataType details. */
+ public details?: ("listElementType"|"structType"|"timeFormat");
+
+ /**
+ * Creates a new DataType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataType instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDataType): google.cloud.automl.v1beta1.DataType;
+
+ /**
+ * Encodes the specified DataType message. Does not implicitly {@link google.cloud.automl.v1beta1.DataType.verify|verify} messages.
+ * @param message DataType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDataType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataType message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DataType.verify|verify} messages.
+ * @param message DataType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDataType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DataType;
+
+ /**
+ * Decodes a DataType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DataType;
+
+ /**
+ * Verifies a DataType 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 DataType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DataType;
+
+ /**
+ * Creates a plain object from a DataType message. Also converts values to other types if specified.
+ * @param message DataType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DataType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StructType. */
+ interface IStructType {
+
+ /** StructType fields */
+ fields?: ({ [k: string]: google.cloud.automl.v1beta1.IDataType }|null);
+ }
+
+ /** Represents a StructType. */
+ class StructType implements IStructType {
+
+ /**
+ * Constructs a new StructType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IStructType);
+
+ /** StructType fields. */
+ public fields: { [k: string]: google.cloud.automl.v1beta1.IDataType };
+
+ /**
+ * Creates a new StructType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StructType instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IStructType): google.cloud.automl.v1beta1.StructType;
+
+ /**
+ * Encodes the specified StructType message. Does not implicitly {@link google.cloud.automl.v1beta1.StructType.verify|verify} messages.
+ * @param message StructType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IStructType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StructType message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.StructType.verify|verify} messages.
+ * @param message StructType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IStructType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StructType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StructType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.StructType;
+
+ /**
+ * Decodes a StructType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StructType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.StructType;
+
+ /**
+ * Verifies a StructType 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 StructType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StructType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.StructType;
+
+ /**
+ * Creates a plain object from a StructType message. Also converts values to other types if specified.
+ * @param message StructType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.StructType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StructType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StructType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Image. */
+ interface IImage {
+
+ /** Image imageBytes */
+ imageBytes?: (Uint8Array|string|null);
+
+ /** Image inputConfig */
+ inputConfig?: (google.cloud.automl.v1beta1.IInputConfig|null);
+
+ /** Image thumbnailUri */
+ thumbnailUri?: (string|null);
+ }
+
+ /** Represents an Image. */
+ class Image implements IImage {
+
+ /**
+ * Constructs a new Image.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImage);
+
+ /** Image imageBytes. */
+ public imageBytes?: (Uint8Array|string|null);
+
+ /** Image inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1beta1.IInputConfig|null);
+
+ /** Image thumbnailUri. */
+ public thumbnailUri: string;
+
+ /** Image data. */
+ public data?: ("imageBytes"|"inputConfig");
+
+ /**
+ * Creates a new Image instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Image instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImage): google.cloud.automl.v1beta1.Image;
+
+ /**
+ * Encodes the specified Image message. Does not implicitly {@link google.cloud.automl.v1beta1.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Image message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Image.verify|verify} messages.
+ * @param message Image message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Image;
+
+ /**
+ * Decodes an Image message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Image;
+
+ /**
+ * Verifies an Image message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Image message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Image
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Image;
+
+ /**
+ * Creates a plain object from an Image message. Also converts values to other types if specified.
+ * @param message Image
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Image, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Image to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Image
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSnippet. */
+ interface ITextSnippet {
+
+ /** TextSnippet content */
+ content?: (string|null);
+
+ /** TextSnippet mimeType */
+ mimeType?: (string|null);
+
+ /** TextSnippet contentUri */
+ contentUri?: (string|null);
+ }
+
+ /** Represents a TextSnippet. */
+ class TextSnippet implements ITextSnippet {
+
+ /**
+ * Constructs a new TextSnippet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextSnippet);
+
+ /** TextSnippet content. */
+ public content: string;
+
+ /** TextSnippet mimeType. */
+ public mimeType: string;
+
+ /** TextSnippet contentUri. */
+ public contentUri: string;
+
+ /**
+ * Creates a new TextSnippet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSnippet instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextSnippet): google.cloud.automl.v1beta1.TextSnippet;
+
+ /**
+ * Encodes the specified TextSnippet message. Does not implicitly {@link google.cloud.automl.v1beta1.TextSnippet.verify|verify} messages.
+ * @param message TextSnippet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextSnippet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSnippet message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextSnippet.verify|verify} messages.
+ * @param message TextSnippet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextSnippet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSnippet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSnippet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextSnippet;
+
+ /**
+ * Decodes a TextSnippet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSnippet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextSnippet;
+
+ /**
+ * Verifies a TextSnippet 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 TextSnippet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSnippet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextSnippet;
+
+ /**
+ * Creates a plain object from a TextSnippet message. Also converts values to other types if specified.
+ * @param message TextSnippet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextSnippet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSnippet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSnippet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentDimensions. */
+ interface IDocumentDimensions {
+
+ /** DocumentDimensions unit */
+ unit?: (google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit|keyof typeof google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit|null);
+
+ /** DocumentDimensions width */
+ width?: (number|null);
+
+ /** DocumentDimensions height */
+ height?: (number|null);
+ }
+
+ /** Represents a DocumentDimensions. */
+ class DocumentDimensions implements IDocumentDimensions {
+
+ /**
+ * Constructs a new DocumentDimensions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDocumentDimensions);
+
+ /** DocumentDimensions unit. */
+ public unit: (google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit|keyof typeof google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit);
+
+ /** DocumentDimensions width. */
+ public width: number;
+
+ /** DocumentDimensions height. */
+ public height: number;
+
+ /**
+ * Creates a new DocumentDimensions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentDimensions instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDocumentDimensions): google.cloud.automl.v1beta1.DocumentDimensions;
+
+ /**
+ * Encodes the specified DocumentDimensions message. Does not implicitly {@link google.cloud.automl.v1beta1.DocumentDimensions.verify|verify} messages.
+ * @param message DocumentDimensions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDocumentDimensions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentDimensions message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DocumentDimensions.verify|verify} messages.
+ * @param message DocumentDimensions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDocumentDimensions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentDimensions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentDimensions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DocumentDimensions;
+
+ /**
+ * Decodes a DocumentDimensions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentDimensions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DocumentDimensions;
+
+ /**
+ * Verifies a DocumentDimensions 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 DocumentDimensions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentDimensions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DocumentDimensions;
+
+ /**
+ * Creates a plain object from a DocumentDimensions message. Also converts values to other types if specified.
+ * @param message DocumentDimensions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DocumentDimensions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentDimensions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentDimensions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentDimensions {
+
+ /** DocumentDimensionUnit enum. */
+ enum DocumentDimensionUnit {
+ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0,
+ INCH = 1,
+ CENTIMETER = 2,
+ POINT = 3
+ }
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document inputConfig */
+ inputConfig?: (google.cloud.automl.v1beta1.IDocumentInputConfig|null);
+
+ /** Document documentText */
+ documentText?: (google.cloud.automl.v1beta1.ITextSnippet|null);
+
+ /** Document layout */
+ layout?: (google.cloud.automl.v1beta1.Document.ILayout[]|null);
+
+ /** Document documentDimensions */
+ documentDimensions?: (google.cloud.automl.v1beta1.IDocumentDimensions|null);
+
+ /** Document pageCount */
+ pageCount?: (number|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDocument);
+
+ /** Document inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1beta1.IDocumentInputConfig|null);
+
+ /** Document documentText. */
+ public documentText?: (google.cloud.automl.v1beta1.ITextSnippet|null);
+
+ /** Document layout. */
+ public layout: google.cloud.automl.v1beta1.Document.ILayout[];
+
+ /** Document documentDimensions. */
+ public documentDimensions?: (google.cloud.automl.v1beta1.IDocumentDimensions|null);
+
+ /** Document pageCount. */
+ public pageCount: number;
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDocument): google.cloud.automl.v1beta1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.automl.v1beta1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Document;
+
+ /**
+ * Verifies a Document 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 Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Document {
+
+ /** Properties of a Layout. */
+ interface ILayout {
+
+ /** Layout textSegment */
+ textSegment?: (google.cloud.automl.v1beta1.ITextSegment|null);
+
+ /** Layout pageNumber */
+ pageNumber?: (number|null);
+
+ /** Layout boundingPoly */
+ boundingPoly?: (google.cloud.automl.v1beta1.IBoundingPoly|null);
+
+ /** Layout textSegmentType */
+ textSegmentType?: (google.cloud.automl.v1beta1.Document.Layout.TextSegmentType|keyof typeof google.cloud.automl.v1beta1.Document.Layout.TextSegmentType|null);
+ }
+
+ /** Represents a Layout. */
+ class Layout implements ILayout {
+
+ /**
+ * Constructs a new Layout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.Document.ILayout);
+
+ /** Layout textSegment. */
+ public textSegment?: (google.cloud.automl.v1beta1.ITextSegment|null);
+
+ /** Layout pageNumber. */
+ public pageNumber: number;
+
+ /** Layout boundingPoly. */
+ public boundingPoly?: (google.cloud.automl.v1beta1.IBoundingPoly|null);
+
+ /** Layout textSegmentType. */
+ public textSegmentType: (google.cloud.automl.v1beta1.Document.Layout.TextSegmentType|keyof typeof google.cloud.automl.v1beta1.Document.Layout.TextSegmentType);
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Layout instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.Document.ILayout): google.cloud.automl.v1beta1.Document.Layout;
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.automl.v1beta1.Document.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.Document.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Document.Layout.verify|verify} messages.
+ * @param message Layout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.Document.ILayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Document.Layout;
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Document.Layout;
+
+ /**
+ * Verifies a Layout 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 Layout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Layout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Document.Layout;
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @param message Layout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Document.Layout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Layout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Layout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Layout {
+
+ /** TextSegmentType enum. */
+ enum TextSegmentType {
+ TEXT_SEGMENT_TYPE_UNSPECIFIED = 0,
+ TOKEN = 1,
+ PARAGRAPH = 2,
+ FORM_FIELD = 3,
+ FORM_FIELD_NAME = 4,
+ FORM_FIELD_CONTENTS = 5,
+ TABLE = 6,
+ TABLE_HEADER = 7,
+ TABLE_ROW = 8,
+ TABLE_CELL = 9
+ }
+ }
+ }
+
+ /** Properties of a Row. */
+ interface IRow {
+
+ /** Row columnSpecIds */
+ columnSpecIds?: (string[]|null);
+
+ /** Row values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a Row. */
+ class Row implements IRow {
+
+ /**
+ * Constructs a new Row.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IRow);
+
+ /** Row columnSpecIds. */
+ public columnSpecIds: string[];
+
+ /** Row values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Row instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IRow): google.cloud.automl.v1beta1.Row;
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.cloud.automl.v1beta1.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Row;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Row;
+
+ /**
+ * Verifies a Row 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 Row message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Row
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Row;
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @param message Row
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Row, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Row to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Row
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExamplePayload. */
+ interface IExamplePayload {
+
+ /** ExamplePayload image */
+ image?: (google.cloud.automl.v1beta1.IImage|null);
+
+ /** ExamplePayload textSnippet */
+ textSnippet?: (google.cloud.automl.v1beta1.ITextSnippet|null);
+
+ /** ExamplePayload document */
+ document?: (google.cloud.automl.v1beta1.IDocument|null);
+
+ /** ExamplePayload row */
+ row?: (google.cloud.automl.v1beta1.IRow|null);
+ }
+
+ /** Represents an ExamplePayload. */
+ class ExamplePayload implements IExamplePayload {
+
+ /**
+ * Constructs a new ExamplePayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExamplePayload);
+
+ /** ExamplePayload image. */
+ public image?: (google.cloud.automl.v1beta1.IImage|null);
+
+ /** ExamplePayload textSnippet. */
+ public textSnippet?: (google.cloud.automl.v1beta1.ITextSnippet|null);
+
+ /** ExamplePayload document. */
+ public document?: (google.cloud.automl.v1beta1.IDocument|null);
+
+ /** ExamplePayload row. */
+ public row?: (google.cloud.automl.v1beta1.IRow|null);
+
+ /** ExamplePayload payload. */
+ public payload?: ("image"|"textSnippet"|"document"|"row");
+
+ /**
+ * Creates a new ExamplePayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExamplePayload instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExamplePayload): google.cloud.automl.v1beta1.ExamplePayload;
+
+ /**
+ * Encodes the specified ExamplePayload message. Does not implicitly {@link google.cloud.automl.v1beta1.ExamplePayload.verify|verify} messages.
+ * @param message ExamplePayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExamplePayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExamplePayload message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExamplePayload.verify|verify} messages.
+ * @param message ExamplePayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExamplePayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExamplePayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExamplePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExamplePayload;
+
+ /**
+ * Decodes an ExamplePayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExamplePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExamplePayload;
+
+ /**
+ * Verifies an ExamplePayload message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExamplePayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExamplePayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExamplePayload;
+
+ /**
+ * Creates a plain object from an ExamplePayload message. Also converts values to other types if specified.
+ * @param message ExamplePayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExamplePayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExamplePayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExamplePayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InputConfig. */
+ interface IInputConfig {
+
+ /** InputConfig gcsSource */
+ gcsSource?: (google.cloud.automl.v1beta1.IGcsSource|null);
+
+ /** InputConfig bigquerySource */
+ bigquerySource?: (google.cloud.automl.v1beta1.IBigQuerySource|null);
+
+ /** InputConfig params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an InputConfig. */
+ class InputConfig implements IInputConfig {
+
+ /**
+ * Constructs a new InputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IInputConfig);
+
+ /** InputConfig gcsSource. */
+ public gcsSource?: (google.cloud.automl.v1beta1.IGcsSource|null);
+
+ /** InputConfig bigquerySource. */
+ public bigquerySource?: (google.cloud.automl.v1beta1.IBigQuerySource|null);
+
+ /** InputConfig params. */
+ public params: { [k: string]: string };
+
+ /** InputConfig source. */
+ public source?: ("gcsSource"|"bigquerySource");
+
+ /**
+ * Creates a new InputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IInputConfig): google.cloud.automl.v1beta1.InputConfig;
+
+ /**
+ * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.InputConfig.verify|verify} messages.
+ * @param message InputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.InputConfig.verify|verify} messages.
+ * @param message InputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.InputConfig;
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.InputConfig;
+
+ /**
+ * Verifies an InputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an InputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.InputConfig;
+
+ /**
+ * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
+ * @param message InputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictInputConfig. */
+ interface IBatchPredictInputConfig {
+
+ /** BatchPredictInputConfig gcsSource */
+ gcsSource?: (google.cloud.automl.v1beta1.IGcsSource|null);
+
+ /** BatchPredictInputConfig bigquerySource */
+ bigquerySource?: (google.cloud.automl.v1beta1.IBigQuerySource|null);
+ }
+
+ /** Represents a BatchPredictInputConfig. */
+ class BatchPredictInputConfig implements IBatchPredictInputConfig {
+
+ /**
+ * Constructs a new BatchPredictInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBatchPredictInputConfig);
+
+ /** BatchPredictInputConfig gcsSource. */
+ public gcsSource?: (google.cloud.automl.v1beta1.IGcsSource|null);
+
+ /** BatchPredictInputConfig bigquerySource. */
+ public bigquerySource?: (google.cloud.automl.v1beta1.IBigQuerySource|null);
+
+ /** BatchPredictInputConfig source. */
+ public source?: ("gcsSource"|"bigquerySource");
+
+ /**
+ * Creates a new BatchPredictInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictInputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBatchPredictInputConfig): google.cloud.automl.v1beta1.BatchPredictInputConfig;
+
+ /**
+ * Encodes the specified BatchPredictInputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictInputConfig.verify|verify} messages.
+ * @param message BatchPredictInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBatchPredictInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictInputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictInputConfig.verify|verify} messages.
+ * @param message BatchPredictInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBatchPredictInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BatchPredictInputConfig;
+
+ /**
+ * Decodes a BatchPredictInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BatchPredictInputConfig;
+
+ /**
+ * Verifies a BatchPredictInputConfig 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 BatchPredictInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BatchPredictInputConfig;
+
+ /**
+ * Creates a plain object from a BatchPredictInputConfig message. Also converts values to other types if specified.
+ * @param message BatchPredictInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BatchPredictInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentInputConfig. */
+ interface IDocumentInputConfig {
+
+ /** DocumentInputConfig gcsSource */
+ gcsSource?: (google.cloud.automl.v1beta1.IGcsSource|null);
+ }
+
+ /** Represents a DocumentInputConfig. */
+ class DocumentInputConfig implements IDocumentInputConfig {
+
+ /**
+ * Constructs a new DocumentInputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDocumentInputConfig);
+
+ /** DocumentInputConfig gcsSource. */
+ public gcsSource?: (google.cloud.automl.v1beta1.IGcsSource|null);
+
+ /**
+ * Creates a new DocumentInputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentInputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDocumentInputConfig): google.cloud.automl.v1beta1.DocumentInputConfig;
+
+ /**
+ * Encodes the specified DocumentInputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.DocumentInputConfig.verify|verify} messages.
+ * @param message DocumentInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DocumentInputConfig.verify|verify} messages.
+ * @param message DocumentInputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentInputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DocumentInputConfig;
+
+ /**
+ * Decodes a DocumentInputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DocumentInputConfig;
+
+ /**
+ * Verifies a DocumentInputConfig 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 DocumentInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentInputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DocumentInputConfig;
+
+ /**
+ * Creates a plain object from a DocumentInputConfig message. Also converts values to other types if specified.
+ * @param message DocumentInputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentInputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentInputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OutputConfig. */
+ interface IOutputConfig {
+
+ /** OutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.automl.v1beta1.IGcsDestination|null);
+
+ /** OutputConfig bigqueryDestination */
+ bigqueryDestination?: (google.cloud.automl.v1beta1.IBigQueryDestination|null);
+ }
+
+ /** Represents an OutputConfig. */
+ class OutputConfig implements IOutputConfig {
+
+ /**
+ * Constructs a new OutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IOutputConfig);
+
+ /** OutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.automl.v1beta1.IGcsDestination|null);
+
+ /** OutputConfig bigqueryDestination. */
+ public bigqueryDestination?: (google.cloud.automl.v1beta1.IBigQueryDestination|null);
+
+ /** OutputConfig destination. */
+ public destination?: ("gcsDestination"|"bigqueryDestination");
+
+ /**
+ * Creates a new OutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IOutputConfig): google.cloud.automl.v1beta1.OutputConfig;
+
+ /**
+ * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.OutputConfig.verify|verify} messages.
+ * @param message OutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.OutputConfig.verify|verify} messages.
+ * @param message OutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.OutputConfig;
+
+ /**
+ * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.OutputConfig;
+
+ /**
+ * Verifies an OutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.OutputConfig;
+
+ /**
+ * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
+ * @param message OutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictOutputConfig. */
+ interface IBatchPredictOutputConfig {
+
+ /** BatchPredictOutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.automl.v1beta1.IGcsDestination|null);
+
+ /** BatchPredictOutputConfig bigqueryDestination */
+ bigqueryDestination?: (google.cloud.automl.v1beta1.IBigQueryDestination|null);
+ }
+
+ /** Represents a BatchPredictOutputConfig. */
+ class BatchPredictOutputConfig implements IBatchPredictOutputConfig {
+
+ /**
+ * Constructs a new BatchPredictOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBatchPredictOutputConfig);
+
+ /** BatchPredictOutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.automl.v1beta1.IGcsDestination|null);
+
+ /** BatchPredictOutputConfig bigqueryDestination. */
+ public bigqueryDestination?: (google.cloud.automl.v1beta1.IBigQueryDestination|null);
+
+ /** BatchPredictOutputConfig destination. */
+ public destination?: ("gcsDestination"|"bigqueryDestination");
+
+ /**
+ * Creates a new BatchPredictOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictOutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBatchPredictOutputConfig): google.cloud.automl.v1beta1.BatchPredictOutputConfig;
+
+ /**
+ * Encodes the specified BatchPredictOutputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictOutputConfig.verify|verify} messages.
+ * @param message BatchPredictOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBatchPredictOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictOutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictOutputConfig.verify|verify} messages.
+ * @param message BatchPredictOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBatchPredictOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BatchPredictOutputConfig;
+
+ /**
+ * Decodes a BatchPredictOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BatchPredictOutputConfig;
+
+ /**
+ * Verifies a BatchPredictOutputConfig 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 BatchPredictOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BatchPredictOutputConfig;
+
+ /**
+ * Creates a plain object from a BatchPredictOutputConfig message. Also converts values to other types if specified.
+ * @param message BatchPredictOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BatchPredictOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ModelExportOutputConfig. */
+ interface IModelExportOutputConfig {
+
+ /** ModelExportOutputConfig gcsDestination */
+ gcsDestination?: (google.cloud.automl.v1beta1.IGcsDestination|null);
+
+ /** ModelExportOutputConfig gcrDestination */
+ gcrDestination?: (google.cloud.automl.v1beta1.IGcrDestination|null);
+
+ /** ModelExportOutputConfig modelFormat */
+ modelFormat?: (string|null);
+
+ /** ModelExportOutputConfig params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a ModelExportOutputConfig. */
+ class ModelExportOutputConfig implements IModelExportOutputConfig {
+
+ /**
+ * Constructs a new ModelExportOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IModelExportOutputConfig);
+
+ /** ModelExportOutputConfig gcsDestination. */
+ public gcsDestination?: (google.cloud.automl.v1beta1.IGcsDestination|null);
+
+ /** ModelExportOutputConfig gcrDestination. */
+ public gcrDestination?: (google.cloud.automl.v1beta1.IGcrDestination|null);
+
+ /** ModelExportOutputConfig modelFormat. */
+ public modelFormat: string;
+
+ /** ModelExportOutputConfig params. */
+ public params: { [k: string]: string };
+
+ /** ModelExportOutputConfig destination. */
+ public destination?: ("gcsDestination"|"gcrDestination");
+
+ /**
+ * Creates a new ModelExportOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelExportOutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IModelExportOutputConfig): google.cloud.automl.v1beta1.ModelExportOutputConfig;
+
+ /**
+ * Encodes the specified ModelExportOutputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.ModelExportOutputConfig.verify|verify} messages.
+ * @param message ModelExportOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IModelExportOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelExportOutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ModelExportOutputConfig.verify|verify} messages.
+ * @param message ModelExportOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IModelExportOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelExportOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelExportOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ModelExportOutputConfig;
+
+ /**
+ * Decodes a ModelExportOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelExportOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ModelExportOutputConfig;
+
+ /**
+ * Verifies a ModelExportOutputConfig 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 ModelExportOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelExportOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ModelExportOutputConfig;
+
+ /**
+ * Creates a plain object from a ModelExportOutputConfig message. Also converts values to other types if specified.
+ * @param message ModelExportOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ModelExportOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelExportOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelExportOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportEvaluatedExamplesOutputConfig. */
+ interface IExportEvaluatedExamplesOutputConfig {
+
+ /** ExportEvaluatedExamplesOutputConfig bigqueryDestination */
+ bigqueryDestination?: (google.cloud.automl.v1beta1.IBigQueryDestination|null);
+ }
+
+ /** Represents an ExportEvaluatedExamplesOutputConfig. */
+ class ExportEvaluatedExamplesOutputConfig implements IExportEvaluatedExamplesOutputConfig {
+
+ /**
+ * Constructs a new ExportEvaluatedExamplesOutputConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOutputConfig);
+
+ /** ExportEvaluatedExamplesOutputConfig bigqueryDestination. */
+ public bigqueryDestination?: (google.cloud.automl.v1beta1.IBigQueryDestination|null);
+
+ /** ExportEvaluatedExamplesOutputConfig destination. */
+ public destination?: "bigqueryDestination";
+
+ /**
+ * Creates a new ExportEvaluatedExamplesOutputConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportEvaluatedExamplesOutputConfig instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOutputConfig): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesOutputConfig message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesOutputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesOutputConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesOutputConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportEvaluatedExamplesOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesOutputConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportEvaluatedExamplesOutputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig;
+
+ /**
+ * Verifies an ExportEvaluatedExamplesOutputConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportEvaluatedExamplesOutputConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportEvaluatedExamplesOutputConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig;
+
+ /**
+ * Creates a plain object from an ExportEvaluatedExamplesOutputConfig message. Also converts values to other types if specified.
+ * @param message ExportEvaluatedExamplesOutputConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportEvaluatedExamplesOutputConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportEvaluatedExamplesOutputConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsSource. */
+ interface IGcsSource {
+
+ /** GcsSource inputUris */
+ inputUris?: (string[]|null);
+ }
+
+ /** Represents a GcsSource. */
+ class GcsSource implements IGcsSource {
+
+ /**
+ * Constructs a new GcsSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGcsSource);
+
+ /** GcsSource inputUris. */
+ public inputUris: string[];
+
+ /**
+ * Creates a new GcsSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsSource instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGcsSource): google.cloud.automl.v1beta1.GcsSource;
+
+ /**
+ * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.automl.v1beta1.GcsSource.verify|verify} messages.
+ * @param message GcsSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GcsSource.verify|verify} messages.
+ * @param message GcsSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GcsSource;
+
+ /**
+ * Decodes a GcsSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GcsSource;
+
+ /**
+ * Verifies a GcsSource 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 GcsSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GcsSource;
+
+ /**
+ * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
+ * @param message GcsSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigQuerySource. */
+ interface IBigQuerySource {
+
+ /** BigQuerySource inputUri */
+ inputUri?: (string|null);
+ }
+
+ /** Represents a BigQuerySource. */
+ class BigQuerySource implements IBigQuerySource {
+
+ /**
+ * Constructs a new BigQuerySource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBigQuerySource);
+
+ /** BigQuerySource inputUri. */
+ public inputUri: string;
+
+ /**
+ * Creates a new BigQuerySource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigQuerySource instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBigQuerySource): google.cloud.automl.v1beta1.BigQuerySource;
+
+ /**
+ * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.automl.v1beta1.BigQuerySource.verify|verify} messages.
+ * @param message BigQuerySource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BigQuerySource.verify|verify} messages.
+ * @param message BigQuerySource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigQuerySource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigQuerySource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BigQuerySource;
+
+ /**
+ * Decodes a BigQuerySource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigQuerySource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BigQuerySource;
+
+ /**
+ * Verifies a BigQuerySource 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 BigQuerySource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigQuerySource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BigQuerySource;
+
+ /**
+ * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified.
+ * @param message BigQuerySource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigQuerySource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigQuerySource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcsDestination. */
+ interface IGcsDestination {
+
+ /** GcsDestination outputUriPrefix */
+ outputUriPrefix?: (string|null);
+ }
+
+ /** Represents a GcsDestination. */
+ class GcsDestination implements IGcsDestination {
+
+ /**
+ * Constructs a new GcsDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGcsDestination);
+
+ /** GcsDestination outputUriPrefix. */
+ public outputUriPrefix: string;
+
+ /**
+ * Creates a new GcsDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsDestination instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGcsDestination): google.cloud.automl.v1beta1.GcsDestination;
+
+ /**
+ * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.automl.v1beta1.GcsDestination.verify|verify} messages.
+ * @param message GcsDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GcsDestination.verify|verify} messages.
+ * @param message GcsDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GcsDestination;
+
+ /**
+ * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GcsDestination;
+
+ /**
+ * Verifies a GcsDestination 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 GcsDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GcsDestination;
+
+ /**
+ * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
+ * @param message GcsDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigQueryDestination. */
+ interface IBigQueryDestination {
+
+ /** BigQueryDestination outputUri */
+ outputUri?: (string|null);
+ }
+
+ /** Represents a BigQueryDestination. */
+ class BigQueryDestination implements IBigQueryDestination {
+
+ /**
+ * Constructs a new BigQueryDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBigQueryDestination);
+
+ /** BigQueryDestination outputUri. */
+ public outputUri: string;
+
+ /**
+ * Creates a new BigQueryDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigQueryDestination instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBigQueryDestination): google.cloud.automl.v1beta1.BigQueryDestination;
+
+ /**
+ * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.cloud.automl.v1beta1.BigQueryDestination.verify|verify} messages.
+ * @param message BigQueryDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BigQueryDestination.verify|verify} messages.
+ * @param message BigQueryDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigQueryDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigQueryDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BigQueryDestination;
+
+ /**
+ * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigQueryDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BigQueryDestination;
+
+ /**
+ * Verifies a BigQueryDestination 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 BigQueryDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigQueryDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BigQueryDestination;
+
+ /**
+ * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified.
+ * @param message BigQueryDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BigQueryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigQueryDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigQueryDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcrDestination. */
+ interface IGcrDestination {
+
+ /** GcrDestination outputUri */
+ outputUri?: (string|null);
+ }
+
+ /** Represents a GcrDestination. */
+ class GcrDestination implements IGcrDestination {
+
+ /**
+ * Constructs a new GcrDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGcrDestination);
+
+ /** GcrDestination outputUri. */
+ public outputUri: string;
+
+ /**
+ * Creates a new GcrDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcrDestination instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGcrDestination): google.cloud.automl.v1beta1.GcrDestination;
+
+ /**
+ * Encodes the specified GcrDestination message. Does not implicitly {@link google.cloud.automl.v1beta1.GcrDestination.verify|verify} messages.
+ * @param message GcrDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGcrDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcrDestination message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GcrDestination.verify|verify} messages.
+ * @param message GcrDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGcrDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcrDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcrDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GcrDestination;
+
+ /**
+ * Decodes a GcrDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcrDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GcrDestination;
+
+ /**
+ * Verifies a GcrDestination 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 GcrDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcrDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GcrDestination;
+
+ /**
+ * Creates a plain object from a GcrDestination message. Also converts values to other types if specified.
+ * @param message GcrDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GcrDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcrDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcrDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSegment. */
+ interface ITextSegment {
+
+ /** TextSegment content */
+ content?: (string|null);
+
+ /** TextSegment startOffset */
+ startOffset?: (number|Long|string|null);
+
+ /** TextSegment endOffset */
+ endOffset?: (number|Long|string|null);
+ }
+
+ /** Represents a TextSegment. */
+ class TextSegment implements ITextSegment {
+
+ /**
+ * Constructs a new TextSegment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextSegment);
+
+ /** TextSegment content. */
+ public content: string;
+
+ /** TextSegment startOffset. */
+ public startOffset: (number|Long|string);
+
+ /** TextSegment endOffset. */
+ public endOffset: (number|Long|string);
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSegment instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextSegment): google.cloud.automl.v1beta1.TextSegment;
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.automl.v1beta1.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextSegment.verify|verify} messages.
+ * @param message TextSegment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextSegment;
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextSegment;
+
+ /**
+ * Verifies a TextSegment 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 TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSegment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextSegment;
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @param message TextSegment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DoubleRange. */
+ interface IDoubleRange {
+
+ /** DoubleRange start */
+ start?: (number|null);
+
+ /** DoubleRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a DoubleRange. */
+ class DoubleRange implements IDoubleRange {
+
+ /**
+ * Constructs a new DoubleRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDoubleRange);
+
+ /** DoubleRange start. */
+ public start: number;
+
+ /** DoubleRange end. */
+ public end: number;
+
+ /**
+ * Creates a new DoubleRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleRange instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDoubleRange): google.cloud.automl.v1beta1.DoubleRange;
+
+ /**
+ * Encodes the specified DoubleRange message. Does not implicitly {@link google.cloud.automl.v1beta1.DoubleRange.verify|verify} messages.
+ * @param message DoubleRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDoubleRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleRange message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DoubleRange.verify|verify} messages.
+ * @param message DoubleRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDoubleRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DoubleRange;
+
+ /**
+ * Decodes a DoubleRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DoubleRange;
+
+ /**
+ * Verifies a DoubleRange 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 DoubleRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DoubleRange;
+
+ /**
+ * Creates a plain object from a DoubleRange message. Also converts values to other types if specified.
+ * @param message DoubleRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DoubleRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RegressionEvaluationMetrics. */
+ interface IRegressionEvaluationMetrics {
+
+ /** RegressionEvaluationMetrics rootMeanSquaredError */
+ rootMeanSquaredError?: (number|null);
+
+ /** RegressionEvaluationMetrics meanAbsoluteError */
+ meanAbsoluteError?: (number|null);
+
+ /** RegressionEvaluationMetrics meanAbsolutePercentageError */
+ meanAbsolutePercentageError?: (number|null);
+
+ /** RegressionEvaluationMetrics rSquared */
+ rSquared?: (number|null);
+
+ /** RegressionEvaluationMetrics rootMeanSquaredLogError */
+ rootMeanSquaredLogError?: (number|null);
+ }
+
+ /** Represents a RegressionEvaluationMetrics. */
+ class RegressionEvaluationMetrics implements IRegressionEvaluationMetrics {
+
+ /**
+ * Constructs a new RegressionEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IRegressionEvaluationMetrics);
+
+ /** RegressionEvaluationMetrics rootMeanSquaredError. */
+ public rootMeanSquaredError: number;
+
+ /** RegressionEvaluationMetrics meanAbsoluteError. */
+ public meanAbsoluteError: number;
+
+ /** RegressionEvaluationMetrics meanAbsolutePercentageError. */
+ public meanAbsolutePercentageError: number;
+
+ /** RegressionEvaluationMetrics rSquared. */
+ public rSquared: number;
+
+ /** RegressionEvaluationMetrics rootMeanSquaredLogError. */
+ public rootMeanSquaredLogError: number;
+
+ /**
+ * Creates a new RegressionEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RegressionEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IRegressionEvaluationMetrics): google.cloud.automl.v1beta1.RegressionEvaluationMetrics;
+
+ /**
+ * Encodes the specified RegressionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.RegressionEvaluationMetrics.verify|verify} messages.
+ * @param message RegressionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IRegressionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RegressionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.RegressionEvaluationMetrics.verify|verify} messages.
+ * @param message RegressionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IRegressionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RegressionEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RegressionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.RegressionEvaluationMetrics;
+
+ /**
+ * Decodes a RegressionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RegressionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.RegressionEvaluationMetrics;
+
+ /**
+ * Verifies a RegressionEvaluationMetrics 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 RegressionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RegressionEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.RegressionEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a RegressionEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message RegressionEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.RegressionEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RegressionEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RegressionEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionAnnotation. */
+ interface ITextExtractionAnnotation {
+
+ /** TextExtractionAnnotation textSegment */
+ textSegment?: (google.cloud.automl.v1beta1.ITextSegment|null);
+
+ /** TextExtractionAnnotation score */
+ score?: (number|null);
+ }
+
+ /** Represents a TextExtractionAnnotation. */
+ class TextExtractionAnnotation implements ITextExtractionAnnotation {
+
+ /**
+ * Constructs a new TextExtractionAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextExtractionAnnotation);
+
+ /** TextExtractionAnnotation textSegment. */
+ public textSegment?: (google.cloud.automl.v1beta1.ITextSegment|null);
+
+ /** TextExtractionAnnotation score. */
+ public score: number;
+
+ /** TextExtractionAnnotation annotation. */
+ public annotation?: "textSegment";
+
+ /**
+ * Creates a new TextExtractionAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextExtractionAnnotation): google.cloud.automl.v1beta1.TextExtractionAnnotation;
+
+ /**
+ * Encodes the specified TextExtractionAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionAnnotation.verify|verify} messages.
+ * @param message TextExtractionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionAnnotation.verify|verify} messages.
+ * @param message TextExtractionAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextExtractionAnnotation;
+
+ /**
+ * Decodes a TextExtractionAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextExtractionAnnotation;
+
+ /**
+ * Verifies a TextExtractionAnnotation 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 TextExtractionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextExtractionAnnotation;
+
+ /**
+ * Creates a plain object from a TextExtractionAnnotation message. Also converts values to other types if specified.
+ * @param message TextExtractionAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextExtractionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionEvaluationMetrics. */
+ interface ITextExtractionEvaluationMetrics {
+
+ /** TextExtractionEvaluationMetrics auPrc */
+ auPrc?: (number|null);
+
+ /** TextExtractionEvaluationMetrics confidenceMetricsEntries */
+ confidenceMetricsEntries?: (google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry[]|null);
+ }
+
+ /** Represents a TextExtractionEvaluationMetrics. */
+ class TextExtractionEvaluationMetrics implements ITextExtractionEvaluationMetrics {
+
+ /**
+ * Constructs a new TextExtractionEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics);
+
+ /** TextExtractionEvaluationMetrics auPrc. */
+ public auPrc: number;
+
+ /** TextExtractionEvaluationMetrics confidenceMetricsEntries. */
+ public confidenceMetricsEntries: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry[];
+
+ /**
+ * Creates a new TextExtractionEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Encodes the specified TextExtractionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.verify|verify} messages.
+ * @param message TextExtractionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.verify|verify} messages.
+ * @param message TextExtractionEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Decodes a TextExtractionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Verifies a TextExtractionEvaluationMetrics 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 TextExtractionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a TextExtractionEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message TextExtractionEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TextExtractionEvaluationMetrics {
+
+ /** Properties of a ConfidenceMetricsEntry. */
+ interface IConfidenceMetricsEntry {
+
+ /** ConfidenceMetricsEntry confidenceThreshold */
+ confidenceThreshold?: (number|null);
+
+ /** ConfidenceMetricsEntry recall */
+ recall?: (number|null);
+
+ /** ConfidenceMetricsEntry precision */
+ precision?: (number|null);
+
+ /** ConfidenceMetricsEntry f1Score */
+ f1Score?: (number|null);
+ }
+
+ /** Represents a ConfidenceMetricsEntry. */
+ class ConfidenceMetricsEntry implements IConfidenceMetricsEntry {
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry);
+
+ /** ConfidenceMetricsEntry confidenceThreshold. */
+ public confidenceThreshold: number;
+
+ /** ConfidenceMetricsEntry recall. */
+ public recall: number;
+
+ /** ConfidenceMetricsEntry precision. */
+ public precision: number;
+
+ /** ConfidenceMetricsEntry f1Score. */
+ public f1Score: number;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfidenceMetricsEntry instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @param message ConfidenceMetricsEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Verifies a ConfidenceMetricsEntry 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 ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfidenceMetricsEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry;
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @param message ConfidenceMetricsEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TextSentimentAnnotation. */
+ interface ITextSentimentAnnotation {
+
+ /** TextSentimentAnnotation sentiment */
+ sentiment?: (number|null);
+ }
+
+ /** Represents a TextSentimentAnnotation. */
+ class TextSentimentAnnotation implements ITextSentimentAnnotation {
+
+ /**
+ * Constructs a new TextSentimentAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextSentimentAnnotation);
+
+ /** TextSentimentAnnotation sentiment. */
+ public sentiment: number;
+
+ /**
+ * Creates a new TextSentimentAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextSentimentAnnotation): google.cloud.automl.v1beta1.TextSentimentAnnotation;
+
+ /**
+ * Encodes the specified TextSentimentAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentAnnotation.verify|verify} messages.
+ * @param message TextSentimentAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextSentimentAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentAnnotation.verify|verify} messages.
+ * @param message TextSentimentAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextSentimentAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextSentimentAnnotation;
+
+ /**
+ * Decodes a TextSentimentAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextSentimentAnnotation;
+
+ /**
+ * Verifies a TextSentimentAnnotation 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 TextSentimentAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextSentimentAnnotation;
+
+ /**
+ * Creates a plain object from a TextSentimentAnnotation message. Also converts values to other types if specified.
+ * @param message TextSentimentAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextSentimentAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentEvaluationMetrics. */
+ interface ITextSentimentEvaluationMetrics {
+
+ /** TextSentimentEvaluationMetrics precision */
+ precision?: (number|null);
+
+ /** TextSentimentEvaluationMetrics recall */
+ recall?: (number|null);
+
+ /** TextSentimentEvaluationMetrics f1Score */
+ f1Score?: (number|null);
+
+ /** TextSentimentEvaluationMetrics meanAbsoluteError */
+ meanAbsoluteError?: (number|null);
+
+ /** TextSentimentEvaluationMetrics meanSquaredError */
+ meanSquaredError?: (number|null);
+
+ /** TextSentimentEvaluationMetrics linearKappa */
+ linearKappa?: (number|null);
+
+ /** TextSentimentEvaluationMetrics quadraticKappa */
+ quadraticKappa?: (number|null);
+
+ /** TextSentimentEvaluationMetrics confusionMatrix */
+ confusionMatrix?: (google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /** TextSentimentEvaluationMetrics annotationSpecId */
+ annotationSpecId?: (string[]|null);
+ }
+
+ /** Represents a TextSentimentEvaluationMetrics. */
+ class TextSentimentEvaluationMetrics implements ITextSentimentEvaluationMetrics {
+
+ /**
+ * Constructs a new TextSentimentEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics);
+
+ /** TextSentimentEvaluationMetrics precision. */
+ public precision: number;
+
+ /** TextSentimentEvaluationMetrics recall. */
+ public recall: number;
+
+ /** TextSentimentEvaluationMetrics f1Score. */
+ public f1Score: number;
+
+ /** TextSentimentEvaluationMetrics meanAbsoluteError. */
+ public meanAbsoluteError: number;
+
+ /** TextSentimentEvaluationMetrics meanSquaredError. */
+ public meanSquaredError: number;
+
+ /** TextSentimentEvaluationMetrics linearKappa. */
+ public linearKappa: number;
+
+ /** TextSentimentEvaluationMetrics quadraticKappa. */
+ public quadraticKappa: number;
+
+ /** TextSentimentEvaluationMetrics confusionMatrix. */
+ public confusionMatrix?: (google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.IConfusionMatrix|null);
+
+ /** TextSentimentEvaluationMetrics annotationSpecId. */
+ public annotationSpecId: string[];
+
+ /**
+ * Creates a new TextSentimentEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics): google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Encodes the specified TextSentimentEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.verify|verify} messages.
+ * @param message TextSentimentEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.verify|verify} messages.
+ * @param message TextSentimentEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Decodes a TextSentimentEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Verifies a TextSentimentEvaluationMetrics 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 TextSentimentEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a TextSentimentEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message TextSentimentEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationDatasetMetadata. */
+ interface ITranslationDatasetMetadata {
+
+ /** TranslationDatasetMetadata sourceLanguageCode */
+ sourceLanguageCode?: (string|null);
+
+ /** TranslationDatasetMetadata targetLanguageCode */
+ targetLanguageCode?: (string|null);
+ }
+
+ /** Represents a TranslationDatasetMetadata. */
+ class TranslationDatasetMetadata implements ITranslationDatasetMetadata {
+
+ /**
+ * Constructs a new TranslationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITranslationDatasetMetadata);
+
+ /** TranslationDatasetMetadata sourceLanguageCode. */
+ public sourceLanguageCode: string;
+
+ /** TranslationDatasetMetadata targetLanguageCode. */
+ public targetLanguageCode: string;
+
+ /**
+ * Creates a new TranslationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITranslationDatasetMetadata): google.cloud.automl.v1beta1.TranslationDatasetMetadata;
+
+ /**
+ * Encodes the specified TranslationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationDatasetMetadata.verify|verify} messages.
+ * @param message TranslationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITranslationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationDatasetMetadata.verify|verify} messages.
+ * @param message TranslationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITranslationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TranslationDatasetMetadata;
+
+ /**
+ * Decodes a TranslationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TranslationDatasetMetadata;
+
+ /**
+ * Verifies a TranslationDatasetMetadata 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 TranslationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TranslationDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TranslationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TranslationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TranslationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationEvaluationMetrics. */
+ interface ITranslationEvaluationMetrics {
+
+ /** TranslationEvaluationMetrics bleuScore */
+ bleuScore?: (number|null);
+
+ /** TranslationEvaluationMetrics baseBleuScore */
+ baseBleuScore?: (number|null);
+ }
+
+ /** Represents a TranslationEvaluationMetrics. */
+ class TranslationEvaluationMetrics implements ITranslationEvaluationMetrics {
+
+ /**
+ * Constructs a new TranslationEvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITranslationEvaluationMetrics);
+
+ /** TranslationEvaluationMetrics bleuScore. */
+ public bleuScore: number;
+
+ /** TranslationEvaluationMetrics baseBleuScore. */
+ public baseBleuScore: number;
+
+ /**
+ * Creates a new TranslationEvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationEvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITranslationEvaluationMetrics): google.cloud.automl.v1beta1.TranslationEvaluationMetrics;
+
+ /**
+ * Encodes the specified TranslationEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationEvaluationMetrics.verify|verify} messages.
+ * @param message TranslationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITranslationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationEvaluationMetrics.verify|verify} messages.
+ * @param message TranslationEvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITranslationEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationEvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TranslationEvaluationMetrics;
+
+ /**
+ * Decodes a TranslationEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TranslationEvaluationMetrics;
+
+ /**
+ * Verifies a TranslationEvaluationMetrics 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 TranslationEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationEvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TranslationEvaluationMetrics;
+
+ /**
+ * Creates a plain object from a TranslationEvaluationMetrics message. Also converts values to other types if specified.
+ * @param message TranslationEvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TranslationEvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationEvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationEvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationModelMetadata. */
+ interface ITranslationModelMetadata {
+
+ /** TranslationModelMetadata baseModel */
+ baseModel?: (string|null);
+
+ /** TranslationModelMetadata sourceLanguageCode */
+ sourceLanguageCode?: (string|null);
+
+ /** TranslationModelMetadata targetLanguageCode */
+ targetLanguageCode?: (string|null);
+ }
+
+ /** Represents a TranslationModelMetadata. */
+ class TranslationModelMetadata implements ITranslationModelMetadata {
+
+ /**
+ * Constructs a new TranslationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITranslationModelMetadata);
+
+ /** TranslationModelMetadata baseModel. */
+ public baseModel: string;
+
+ /** TranslationModelMetadata sourceLanguageCode. */
+ public sourceLanguageCode: string;
+
+ /** TranslationModelMetadata targetLanguageCode. */
+ public targetLanguageCode: string;
+
+ /**
+ * Creates a new TranslationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITranslationModelMetadata): google.cloud.automl.v1beta1.TranslationModelMetadata;
+
+ /**
+ * Encodes the specified TranslationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationModelMetadata.verify|verify} messages.
+ * @param message TranslationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITranslationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationModelMetadata.verify|verify} messages.
+ * @param message TranslationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITranslationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TranslationModelMetadata;
+
+ /**
+ * Decodes a TranslationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TranslationModelMetadata;
+
+ /**
+ * Verifies a TranslationModelMetadata 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 TranslationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TranslationModelMetadata;
+
+ /**
+ * Creates a plain object from a TranslationModelMetadata message. Also converts values to other types if specified.
+ * @param message TranslationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TranslationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TranslationAnnotation. */
+ interface ITranslationAnnotation {
+
+ /** TranslationAnnotation translatedContent */
+ translatedContent?: (google.cloud.automl.v1beta1.ITextSnippet|null);
+ }
+
+ /** Represents a TranslationAnnotation. */
+ class TranslationAnnotation implements ITranslationAnnotation {
+
+ /**
+ * Constructs a new TranslationAnnotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITranslationAnnotation);
+
+ /** TranslationAnnotation translatedContent. */
+ public translatedContent?: (google.cloud.automl.v1beta1.ITextSnippet|null);
+
+ /**
+ * Creates a new TranslationAnnotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TranslationAnnotation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITranslationAnnotation): google.cloud.automl.v1beta1.TranslationAnnotation;
+
+ /**
+ * Encodes the specified TranslationAnnotation message. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationAnnotation.verify|verify} messages.
+ * @param message TranslationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITranslationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TranslationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TranslationAnnotation.verify|verify} messages.
+ * @param message TranslationAnnotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITranslationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TranslationAnnotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TranslationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TranslationAnnotation;
+
+ /**
+ * Decodes a TranslationAnnotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TranslationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TranslationAnnotation;
+
+ /**
+ * Verifies a TranslationAnnotation 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 TranslationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TranslationAnnotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TranslationAnnotation;
+
+ /**
+ * Creates a plain object from a TranslationAnnotation message. Also converts values to other types if specified.
+ * @param message TranslationAnnotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TranslationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TranslationAnnotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TranslationAnnotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnnotationSpec. */
+ interface IAnnotationSpec {
+
+ /** AnnotationSpec name */
+ name?: (string|null);
+
+ /** AnnotationSpec displayName */
+ displayName?: (string|null);
+
+ /** AnnotationSpec exampleCount */
+ exampleCount?: (number|null);
+ }
+
+ /** Represents an AnnotationSpec. */
+ class AnnotationSpec implements IAnnotationSpec {
+
+ /**
+ * Constructs a new AnnotationSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IAnnotationSpec);
+
+ /** AnnotationSpec name. */
+ public name: string;
+
+ /** AnnotationSpec displayName. */
+ public displayName: string;
+
+ /** AnnotationSpec exampleCount. */
+ public exampleCount: number;
+
+ /**
+ * Creates a new AnnotationSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnnotationSpec instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IAnnotationSpec): google.cloud.automl.v1beta1.AnnotationSpec;
+
+ /**
+ * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.automl.v1beta1.AnnotationSpec.verify|verify} messages.
+ * @param message AnnotationSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.AnnotationSpec.verify|verify} messages.
+ * @param message AnnotationSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.AnnotationSpec;
+
+ /**
+ * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnnotationSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.AnnotationSpec;
+
+ /**
+ * Verifies an AnnotationSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an AnnotationSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnnotationSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.AnnotationSpec;
+
+ /**
+ * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified.
+ * @param message AnnotationSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnnotationSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnnotationSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Dataset. */
+ interface IDataset {
+
+ /** Dataset translationDatasetMetadata */
+ translationDatasetMetadata?: (google.cloud.automl.v1beta1.ITranslationDatasetMetadata|null);
+
+ /** Dataset imageClassificationDatasetMetadata */
+ imageClassificationDatasetMetadata?: (google.cloud.automl.v1beta1.IImageClassificationDatasetMetadata|null);
+
+ /** Dataset textClassificationDatasetMetadata */
+ textClassificationDatasetMetadata?: (google.cloud.automl.v1beta1.ITextClassificationDatasetMetadata|null);
+
+ /** Dataset imageObjectDetectionDatasetMetadata */
+ imageObjectDetectionDatasetMetadata?: (google.cloud.automl.v1beta1.IImageObjectDetectionDatasetMetadata|null);
+
+ /** Dataset videoClassificationDatasetMetadata */
+ videoClassificationDatasetMetadata?: (google.cloud.automl.v1beta1.IVideoClassificationDatasetMetadata|null);
+
+ /** Dataset videoObjectTrackingDatasetMetadata */
+ videoObjectTrackingDatasetMetadata?: (google.cloud.automl.v1beta1.IVideoObjectTrackingDatasetMetadata|null);
+
+ /** Dataset textExtractionDatasetMetadata */
+ textExtractionDatasetMetadata?: (google.cloud.automl.v1beta1.ITextExtractionDatasetMetadata|null);
+
+ /** Dataset textSentimentDatasetMetadata */
+ textSentimentDatasetMetadata?: (google.cloud.automl.v1beta1.ITextSentimentDatasetMetadata|null);
+
+ /** Dataset tablesDatasetMetadata */
+ tablesDatasetMetadata?: (google.cloud.automl.v1beta1.ITablesDatasetMetadata|null);
+
+ /** Dataset name */
+ name?: (string|null);
+
+ /** Dataset displayName */
+ displayName?: (string|null);
+
+ /** Dataset description */
+ description?: (string|null);
+
+ /** Dataset exampleCount */
+ exampleCount?: (number|null);
+
+ /** Dataset createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Dataset etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a Dataset. */
+ class Dataset implements IDataset {
+
+ /**
+ * Constructs a new Dataset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDataset);
+
+ /** Dataset translationDatasetMetadata. */
+ public translationDatasetMetadata?: (google.cloud.automl.v1beta1.ITranslationDatasetMetadata|null);
+
+ /** Dataset imageClassificationDatasetMetadata. */
+ public imageClassificationDatasetMetadata?: (google.cloud.automl.v1beta1.IImageClassificationDatasetMetadata|null);
+
+ /** Dataset textClassificationDatasetMetadata. */
+ public textClassificationDatasetMetadata?: (google.cloud.automl.v1beta1.ITextClassificationDatasetMetadata|null);
+
+ /** Dataset imageObjectDetectionDatasetMetadata. */
+ public imageObjectDetectionDatasetMetadata?: (google.cloud.automl.v1beta1.IImageObjectDetectionDatasetMetadata|null);
+
+ /** Dataset videoClassificationDatasetMetadata. */
+ public videoClassificationDatasetMetadata?: (google.cloud.automl.v1beta1.IVideoClassificationDatasetMetadata|null);
+
+ /** Dataset videoObjectTrackingDatasetMetadata. */
+ public videoObjectTrackingDatasetMetadata?: (google.cloud.automl.v1beta1.IVideoObjectTrackingDatasetMetadata|null);
+
+ /** Dataset textExtractionDatasetMetadata. */
+ public textExtractionDatasetMetadata?: (google.cloud.automl.v1beta1.ITextExtractionDatasetMetadata|null);
+
+ /** Dataset textSentimentDatasetMetadata. */
+ public textSentimentDatasetMetadata?: (google.cloud.automl.v1beta1.ITextSentimentDatasetMetadata|null);
+
+ /** Dataset tablesDatasetMetadata. */
+ public tablesDatasetMetadata?: (google.cloud.automl.v1beta1.ITablesDatasetMetadata|null);
+
+ /** Dataset name. */
+ public name: string;
+
+ /** Dataset displayName. */
+ public displayName: string;
+
+ /** Dataset description. */
+ public description: string;
+
+ /** Dataset exampleCount. */
+ public exampleCount: number;
+
+ /** Dataset createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Dataset etag. */
+ public etag: string;
+
+ /** Dataset datasetMetadata. */
+ public datasetMetadata?: ("translationDatasetMetadata"|"imageClassificationDatasetMetadata"|"textClassificationDatasetMetadata"|"imageObjectDetectionDatasetMetadata"|"videoClassificationDatasetMetadata"|"videoObjectTrackingDatasetMetadata"|"textExtractionDatasetMetadata"|"textSentimentDatasetMetadata"|"tablesDatasetMetadata");
+
+ /**
+ * Creates a new Dataset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dataset instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDataset): google.cloud.automl.v1beta1.Dataset;
+
+ /**
+ * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.automl.v1beta1.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Dataset;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Dataset;
+
+ /**
+ * Verifies a Dataset 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 Dataset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dataset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Dataset;
+
+ /**
+ * Creates a plain object from a Dataset message. Also converts values to other types if specified.
+ * @param message Dataset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dataset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dataset
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationDatasetMetadata. */
+ interface IImageClassificationDatasetMetadata {
+
+ /** ImageClassificationDatasetMetadata classificationType */
+ classificationType?: (google.cloud.automl.v1beta1.ClassificationType|keyof typeof google.cloud.automl.v1beta1.ClassificationType|null);
+ }
+
+ /** Represents an ImageClassificationDatasetMetadata. */
+ class ImageClassificationDatasetMetadata implements IImageClassificationDatasetMetadata {
+
+ /**
+ * Constructs a new ImageClassificationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageClassificationDatasetMetadata);
+
+ /** ImageClassificationDatasetMetadata classificationType. */
+ public classificationType: (google.cloud.automl.v1beta1.ClassificationType|keyof typeof google.cloud.automl.v1beta1.ClassificationType);
+
+ /**
+ * Creates a new ImageClassificationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageClassificationDatasetMetadata): google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Encodes the specified ImageClassificationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.verify|verify} messages.
+ * @param message ImageClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.verify|verify} messages.
+ * @param message ImageClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Decodes an ImageClassificationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Verifies an ImageClassificationDatasetMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageClassificationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata;
+
+ /**
+ * Creates a plain object from an ImageClassificationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message ImageClassificationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionDatasetMetadata. */
+ interface IImageObjectDetectionDatasetMetadata {
+ }
+
+ /** Represents an ImageObjectDetectionDatasetMetadata. */
+ class ImageObjectDetectionDatasetMetadata implements IImageObjectDetectionDatasetMetadata {
+
+ /**
+ * Constructs a new ImageObjectDetectionDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionDatasetMetadata);
+
+ /**
+ * Creates a new ImageObjectDetectionDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionDatasetMetadata): google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Encodes the specified ImageObjectDetectionDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageObjectDetectionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageObjectDetectionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Decodes an ImageObjectDetectionDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Verifies an ImageObjectDetectionDatasetMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionDatasetMetadata message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationModelMetadata. */
+ interface IImageClassificationModelMetadata {
+
+ /** ImageClassificationModelMetadata baseModelId */
+ baseModelId?: (string|null);
+
+ /** ImageClassificationModelMetadata trainBudget */
+ trainBudget?: (number|Long|string|null);
+
+ /** ImageClassificationModelMetadata trainCost */
+ trainCost?: (number|Long|string|null);
+
+ /** ImageClassificationModelMetadata stopReason */
+ stopReason?: (string|null);
+
+ /** ImageClassificationModelMetadata modelType */
+ modelType?: (string|null);
+
+ /** ImageClassificationModelMetadata nodeQps */
+ nodeQps?: (number|null);
+
+ /** ImageClassificationModelMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageClassificationModelMetadata. */
+ class ImageClassificationModelMetadata implements IImageClassificationModelMetadata {
+
+ /**
+ * Constructs a new ImageClassificationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageClassificationModelMetadata);
+
+ /** ImageClassificationModelMetadata baseModelId. */
+ public baseModelId: string;
+
+ /** ImageClassificationModelMetadata trainBudget. */
+ public trainBudget: (number|Long|string);
+
+ /** ImageClassificationModelMetadata trainCost. */
+ public trainCost: (number|Long|string);
+
+ /** ImageClassificationModelMetadata stopReason. */
+ public stopReason: string;
+
+ /** ImageClassificationModelMetadata modelType. */
+ public modelType: string;
+
+ /** ImageClassificationModelMetadata nodeQps. */
+ public nodeQps: number;
+
+ /** ImageClassificationModelMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /**
+ * Creates a new ImageClassificationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageClassificationModelMetadata): google.cloud.automl.v1beta1.ImageClassificationModelMetadata;
+
+ /**
+ * Encodes the specified ImageClassificationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageClassificationModelMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageClassificationModelMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageClassificationModelMetadata;
+
+ /**
+ * Decodes an ImageClassificationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageClassificationModelMetadata;
+
+ /**
+ * Verifies an ImageClassificationModelMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageClassificationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageClassificationModelMetadata;
+
+ /**
+ * Creates a plain object from an ImageClassificationModelMetadata message. Also converts values to other types if specified.
+ * @param message ImageClassificationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageClassificationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionModelMetadata. */
+ interface IImageObjectDetectionModelMetadata {
+
+ /** ImageObjectDetectionModelMetadata modelType */
+ modelType?: (string|null);
+
+ /** ImageObjectDetectionModelMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+
+ /** ImageObjectDetectionModelMetadata nodeQps */
+ nodeQps?: (number|null);
+
+ /** ImageObjectDetectionModelMetadata stopReason */
+ stopReason?: (string|null);
+
+ /** ImageObjectDetectionModelMetadata trainBudgetMilliNodeHours */
+ trainBudgetMilliNodeHours?: (number|Long|string|null);
+
+ /** ImageObjectDetectionModelMetadata trainCostMilliNodeHours */
+ trainCostMilliNodeHours?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageObjectDetectionModelMetadata. */
+ class ImageObjectDetectionModelMetadata implements IImageObjectDetectionModelMetadata {
+
+ /**
+ * Constructs a new ImageObjectDetectionModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionModelMetadata);
+
+ /** ImageObjectDetectionModelMetadata modelType. */
+ public modelType: string;
+
+ /** ImageObjectDetectionModelMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /** ImageObjectDetectionModelMetadata nodeQps. */
+ public nodeQps: number;
+
+ /** ImageObjectDetectionModelMetadata stopReason. */
+ public stopReason: string;
+
+ /** ImageObjectDetectionModelMetadata trainBudgetMilliNodeHours. */
+ public trainBudgetMilliNodeHours: (number|Long|string);
+
+ /** ImageObjectDetectionModelMetadata trainCostMilliNodeHours. */
+ public trainCostMilliNodeHours: (number|Long|string);
+
+ /**
+ * Creates a new ImageObjectDetectionModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionModelMetadata): google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageObjectDetectionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageObjectDetectionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Decodes an ImageObjectDetectionModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Verifies an ImageObjectDetectionModelMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionModelMetadata message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageClassificationModelDeploymentMetadata. */
+ interface IImageClassificationModelDeploymentMetadata {
+
+ /** ImageClassificationModelDeploymentMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageClassificationModelDeploymentMetadata. */
+ class ImageClassificationModelDeploymentMetadata implements IImageClassificationModelDeploymentMetadata {
+
+ /**
+ * Constructs a new ImageClassificationModelDeploymentMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageClassificationModelDeploymentMetadata);
+
+ /** ImageClassificationModelDeploymentMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /**
+ * Creates a new ImageClassificationModelDeploymentMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageClassificationModelDeploymentMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageClassificationModelDeploymentMetadata): google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Encodes the specified ImageClassificationModelDeploymentMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageClassificationModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageClassificationModelDeploymentMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageClassificationModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageClassificationModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageClassificationModelDeploymentMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageClassificationModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Decodes an ImageClassificationModelDeploymentMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageClassificationModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Verifies an ImageClassificationModelDeploymentMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageClassificationModelDeploymentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageClassificationModelDeploymentMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata;
+
+ /**
+ * Creates a plain object from an ImageClassificationModelDeploymentMetadata message. Also converts values to other types if specified.
+ * @param message ImageClassificationModelDeploymentMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageClassificationModelDeploymentMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageClassificationModelDeploymentMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageObjectDetectionModelDeploymentMetadata. */
+ interface IImageObjectDetectionModelDeploymentMetadata {
+
+ /** ImageObjectDetectionModelDeploymentMetadata nodeCount */
+ nodeCount?: (number|Long|string|null);
+ }
+
+ /** Represents an ImageObjectDetectionModelDeploymentMetadata. */
+ class ImageObjectDetectionModelDeploymentMetadata implements IImageObjectDetectionModelDeploymentMetadata {
+
+ /**
+ * Constructs a new ImageObjectDetectionModelDeploymentMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionModelDeploymentMetadata);
+
+ /** ImageObjectDetectionModelDeploymentMetadata nodeCount. */
+ public nodeCount: (number|Long|string);
+
+ /**
+ * Creates a new ImageObjectDetectionModelDeploymentMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageObjectDetectionModelDeploymentMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImageObjectDetectionModelDeploymentMetadata): google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelDeploymentMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImageObjectDetectionModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageObjectDetectionModelDeploymentMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.verify|verify} messages.
+ * @param message ImageObjectDetectionModelDeploymentMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImageObjectDetectionModelDeploymentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageObjectDetectionModelDeploymentMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageObjectDetectionModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Decodes an ImageObjectDetectionModelDeploymentMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageObjectDetectionModelDeploymentMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Verifies an ImageObjectDetectionModelDeploymentMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImageObjectDetectionModelDeploymentMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageObjectDetectionModelDeploymentMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata;
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionModelDeploymentMetadata message. Also converts values to other types if specified.
+ * @param message ImageObjectDetectionModelDeploymentMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageObjectDetectionModelDeploymentMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionModelDeploymentMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextClassificationDatasetMetadata. */
+ interface ITextClassificationDatasetMetadata {
+
+ /** TextClassificationDatasetMetadata classificationType */
+ classificationType?: (google.cloud.automl.v1beta1.ClassificationType|keyof typeof google.cloud.automl.v1beta1.ClassificationType|null);
+ }
+
+ /** Represents a TextClassificationDatasetMetadata. */
+ class TextClassificationDatasetMetadata implements ITextClassificationDatasetMetadata {
+
+ /**
+ * Constructs a new TextClassificationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextClassificationDatasetMetadata);
+
+ /** TextClassificationDatasetMetadata classificationType. */
+ public classificationType: (google.cloud.automl.v1beta1.ClassificationType|keyof typeof google.cloud.automl.v1beta1.ClassificationType);
+
+ /**
+ * Creates a new TextClassificationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextClassificationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextClassificationDatasetMetadata): google.cloud.automl.v1beta1.TextClassificationDatasetMetadata;
+
+ /**
+ * Encodes the specified TextClassificationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.verify|verify} messages.
+ * @param message TextClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextClassificationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.verify|verify} messages.
+ * @param message TextClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextClassificationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextClassificationDatasetMetadata;
+
+ /**
+ * Decodes a TextClassificationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextClassificationDatasetMetadata;
+
+ /**
+ * Verifies a TextClassificationDatasetMetadata 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 TextClassificationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextClassificationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextClassificationDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TextClassificationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TextClassificationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextClassificationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextClassificationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextClassificationModelMetadata. */
+ interface ITextClassificationModelMetadata {
+
+ /** TextClassificationModelMetadata classificationType */
+ classificationType?: (google.cloud.automl.v1beta1.ClassificationType|keyof typeof google.cloud.automl.v1beta1.ClassificationType|null);
+ }
+
+ /** Represents a TextClassificationModelMetadata. */
+ class TextClassificationModelMetadata implements ITextClassificationModelMetadata {
+
+ /**
+ * Constructs a new TextClassificationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextClassificationModelMetadata);
+
+ /** TextClassificationModelMetadata classificationType. */
+ public classificationType: (google.cloud.automl.v1beta1.ClassificationType|keyof typeof google.cloud.automl.v1beta1.ClassificationType);
+
+ /**
+ * Creates a new TextClassificationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextClassificationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextClassificationModelMetadata): google.cloud.automl.v1beta1.TextClassificationModelMetadata;
+
+ /**
+ * Encodes the specified TextClassificationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TextClassificationModelMetadata.verify|verify} messages.
+ * @param message TextClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextClassificationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextClassificationModelMetadata.verify|verify} messages.
+ * @param message TextClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextClassificationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextClassificationModelMetadata;
+
+ /**
+ * Decodes a TextClassificationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextClassificationModelMetadata;
+
+ /**
+ * Verifies a TextClassificationModelMetadata 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 TextClassificationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextClassificationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextClassificationModelMetadata;
+
+ /**
+ * Creates a plain object from a TextClassificationModelMetadata message. Also converts values to other types if specified.
+ * @param message TextClassificationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextClassificationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextClassificationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextClassificationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionDatasetMetadata. */
+ interface ITextExtractionDatasetMetadata {
+ }
+
+ /** Represents a TextExtractionDatasetMetadata. */
+ class TextExtractionDatasetMetadata implements ITextExtractionDatasetMetadata {
+
+ /**
+ * Constructs a new TextExtractionDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextExtractionDatasetMetadata);
+
+ /**
+ * Creates a new TextExtractionDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextExtractionDatasetMetadata): google.cloud.automl.v1beta1.TextExtractionDatasetMetadata;
+
+ /**
+ * Encodes the specified TextExtractionDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.verify|verify} messages.
+ * @param message TextExtractionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextExtractionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.verify|verify} messages.
+ * @param message TextExtractionDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextExtractionDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextExtractionDatasetMetadata;
+
+ /**
+ * Decodes a TextExtractionDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextExtractionDatasetMetadata;
+
+ /**
+ * Verifies a TextExtractionDatasetMetadata 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 TextExtractionDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextExtractionDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TextExtractionDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TextExtractionDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextExtractionDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextExtractionModelMetadata. */
+ interface ITextExtractionModelMetadata {
+
+ /** TextExtractionModelMetadata modelHint */
+ modelHint?: (string|null);
+ }
+
+ /** Represents a TextExtractionModelMetadata. */
+ class TextExtractionModelMetadata implements ITextExtractionModelMetadata {
+
+ /**
+ * Constructs a new TextExtractionModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextExtractionModelMetadata);
+
+ /** TextExtractionModelMetadata modelHint. */
+ public modelHint: string;
+
+ /**
+ * Creates a new TextExtractionModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextExtractionModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextExtractionModelMetadata): google.cloud.automl.v1beta1.TextExtractionModelMetadata;
+
+ /**
+ * Encodes the specified TextExtractionModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionModelMetadata.verify|verify} messages.
+ * @param message TextExtractionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextExtractionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextExtractionModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextExtractionModelMetadata.verify|verify} messages.
+ * @param message TextExtractionModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextExtractionModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextExtractionModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextExtractionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextExtractionModelMetadata;
+
+ /**
+ * Decodes a TextExtractionModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextExtractionModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextExtractionModelMetadata;
+
+ /**
+ * Verifies a TextExtractionModelMetadata 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 TextExtractionModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextExtractionModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextExtractionModelMetadata;
+
+ /**
+ * Creates a plain object from a TextExtractionModelMetadata message. Also converts values to other types if specified.
+ * @param message TextExtractionModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextExtractionModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextExtractionModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextExtractionModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentDatasetMetadata. */
+ interface ITextSentimentDatasetMetadata {
+
+ /** TextSentimentDatasetMetadata sentimentMax */
+ sentimentMax?: (number|null);
+ }
+
+ /** Represents a TextSentimentDatasetMetadata. */
+ class TextSentimentDatasetMetadata implements ITextSentimentDatasetMetadata {
+
+ /**
+ * Constructs a new TextSentimentDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextSentimentDatasetMetadata);
+
+ /** TextSentimentDatasetMetadata sentimentMax. */
+ public sentimentMax: number;
+
+ /**
+ * Creates a new TextSentimentDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextSentimentDatasetMetadata): google.cloud.automl.v1beta1.TextSentimentDatasetMetadata;
+
+ /**
+ * Encodes the specified TextSentimentDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.verify|verify} messages.
+ * @param message TextSentimentDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextSentimentDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.verify|verify} messages.
+ * @param message TextSentimentDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextSentimentDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextSentimentDatasetMetadata;
+
+ /**
+ * Decodes a TextSentimentDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextSentimentDatasetMetadata;
+
+ /**
+ * Verifies a TextSentimentDatasetMetadata 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 TextSentimentDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextSentimentDatasetMetadata;
+
+ /**
+ * Creates a plain object from a TextSentimentDatasetMetadata message. Also converts values to other types if specified.
+ * @param message TextSentimentDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextSentimentDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TextSentimentModelMetadata. */
+ interface ITextSentimentModelMetadata {
+ }
+
+ /** Represents a TextSentimentModelMetadata. */
+ class TextSentimentModelMetadata implements ITextSentimentModelMetadata {
+
+ /**
+ * Constructs a new TextSentimentModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITextSentimentModelMetadata);
+
+ /**
+ * Creates a new TextSentimentModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TextSentimentModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITextSentimentModelMetadata): google.cloud.automl.v1beta1.TextSentimentModelMetadata;
+
+ /**
+ * Encodes the specified TextSentimentModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentModelMetadata.verify|verify} messages.
+ * @param message TextSentimentModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITextSentimentModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TextSentimentModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TextSentimentModelMetadata.verify|verify} messages.
+ * @param message TextSentimentModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITextSentimentModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TextSentimentModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TextSentimentModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TextSentimentModelMetadata;
+
+ /**
+ * Decodes a TextSentimentModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TextSentimentModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TextSentimentModelMetadata;
+
+ /**
+ * Verifies a TextSentimentModelMetadata 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 TextSentimentModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TextSentimentModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TextSentimentModelMetadata;
+
+ /**
+ * Creates a plain object from a TextSentimentModelMetadata message. Also converts values to other types if specified.
+ * @param message TextSentimentModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TextSentimentModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TextSentimentModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TextSentimentModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoClassificationDatasetMetadata. */
+ interface IVideoClassificationDatasetMetadata {
+ }
+
+ /** Represents a VideoClassificationDatasetMetadata. */
+ class VideoClassificationDatasetMetadata implements IVideoClassificationDatasetMetadata {
+
+ /**
+ * Constructs a new VideoClassificationDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoClassificationDatasetMetadata);
+
+ /**
+ * Creates a new VideoClassificationDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoClassificationDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoClassificationDatasetMetadata): google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata;
+
+ /**
+ * Encodes the specified VideoClassificationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.verify|verify} messages.
+ * @param message VideoClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoClassificationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.verify|verify} messages.
+ * @param message VideoClassificationDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoClassificationDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoClassificationDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata;
+
+ /**
+ * Decodes a VideoClassificationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoClassificationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata;
+
+ /**
+ * Verifies a VideoClassificationDatasetMetadata 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 VideoClassificationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoClassificationDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata;
+
+ /**
+ * Creates a plain object from a VideoClassificationDatasetMetadata message. Also converts values to other types if specified.
+ * @param message VideoClassificationDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoClassificationDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoClassificationDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoObjectTrackingDatasetMetadata. */
+ interface IVideoObjectTrackingDatasetMetadata {
+ }
+
+ /** Represents a VideoObjectTrackingDatasetMetadata. */
+ class VideoObjectTrackingDatasetMetadata implements IVideoObjectTrackingDatasetMetadata {
+
+ /**
+ * Constructs a new VideoObjectTrackingDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingDatasetMetadata);
+
+ /**
+ * Creates a new VideoObjectTrackingDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoObjectTrackingDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingDatasetMetadata): google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata;
+
+ /**
+ * Encodes the specified VideoObjectTrackingDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.verify|verify} messages.
+ * @param message VideoObjectTrackingDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoObjectTrackingDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoObjectTrackingDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata.verify|verify} messages.
+ * @param message VideoObjectTrackingDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoObjectTrackingDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoObjectTrackingDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoObjectTrackingDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata;
+
+ /**
+ * Decodes a VideoObjectTrackingDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoObjectTrackingDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata;
+
+ /**
+ * Verifies a VideoObjectTrackingDatasetMetadata 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 VideoObjectTrackingDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoObjectTrackingDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata;
+
+ /**
+ * Creates a plain object from a VideoObjectTrackingDatasetMetadata message. Also converts values to other types if specified.
+ * @param message VideoObjectTrackingDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoObjectTrackingDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoObjectTrackingDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoClassificationModelMetadata. */
+ interface IVideoClassificationModelMetadata {
+ }
+
+ /** Represents a VideoClassificationModelMetadata. */
+ class VideoClassificationModelMetadata implements IVideoClassificationModelMetadata {
+
+ /**
+ * Constructs a new VideoClassificationModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoClassificationModelMetadata);
+
+ /**
+ * Creates a new VideoClassificationModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoClassificationModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoClassificationModelMetadata): google.cloud.automl.v1beta1.VideoClassificationModelMetadata;
+
+ /**
+ * Encodes the specified VideoClassificationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoClassificationModelMetadata.verify|verify} messages.
+ * @param message VideoClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoClassificationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoClassificationModelMetadata.verify|verify} messages.
+ * @param message VideoClassificationModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoClassificationModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoClassificationModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoClassificationModelMetadata;
+
+ /**
+ * Decodes a VideoClassificationModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoClassificationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoClassificationModelMetadata;
+
+ /**
+ * Verifies a VideoClassificationModelMetadata 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 VideoClassificationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoClassificationModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoClassificationModelMetadata;
+
+ /**
+ * Creates a plain object from a VideoClassificationModelMetadata message. Also converts values to other types if specified.
+ * @param message VideoClassificationModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoClassificationModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoClassificationModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoClassificationModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VideoObjectTrackingModelMetadata. */
+ interface IVideoObjectTrackingModelMetadata {
+ }
+
+ /** Represents a VideoObjectTrackingModelMetadata. */
+ class VideoObjectTrackingModelMetadata implements IVideoObjectTrackingModelMetadata {
+
+ /**
+ * Constructs a new VideoObjectTrackingModelMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingModelMetadata);
+
+ /**
+ * Creates a new VideoObjectTrackingModelMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VideoObjectTrackingModelMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IVideoObjectTrackingModelMetadata): google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata;
+
+ /**
+ * Encodes the specified VideoObjectTrackingModelMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.verify|verify} messages.
+ * @param message VideoObjectTrackingModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IVideoObjectTrackingModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VideoObjectTrackingModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata.verify|verify} messages.
+ * @param message VideoObjectTrackingModelMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IVideoObjectTrackingModelMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VideoObjectTrackingModelMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VideoObjectTrackingModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata;
+
+ /**
+ * Decodes a VideoObjectTrackingModelMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VideoObjectTrackingModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata;
+
+ /**
+ * Verifies a VideoObjectTrackingModelMetadata 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 VideoObjectTrackingModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VideoObjectTrackingModelMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata;
+
+ /**
+ * Creates a plain object from a VideoObjectTrackingModelMetadata message. Also converts values to other types if specified.
+ * @param message VideoObjectTrackingModelMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VideoObjectTrackingModelMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VideoObjectTrackingModelMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Model. */
+ interface IModel {
+
+ /** Model translationModelMetadata */
+ translationModelMetadata?: (google.cloud.automl.v1beta1.ITranslationModelMetadata|null);
+
+ /** Model imageClassificationModelMetadata */
+ imageClassificationModelMetadata?: (google.cloud.automl.v1beta1.IImageClassificationModelMetadata|null);
+
+ /** Model textClassificationModelMetadata */
+ textClassificationModelMetadata?: (google.cloud.automl.v1beta1.ITextClassificationModelMetadata|null);
+
+ /** Model imageObjectDetectionModelMetadata */
+ imageObjectDetectionModelMetadata?: (google.cloud.automl.v1beta1.IImageObjectDetectionModelMetadata|null);
+
+ /** Model videoClassificationModelMetadata */
+ videoClassificationModelMetadata?: (google.cloud.automl.v1beta1.IVideoClassificationModelMetadata|null);
+
+ /** Model videoObjectTrackingModelMetadata */
+ videoObjectTrackingModelMetadata?: (google.cloud.automl.v1beta1.IVideoObjectTrackingModelMetadata|null);
+
+ /** Model textExtractionModelMetadata */
+ textExtractionModelMetadata?: (google.cloud.automl.v1beta1.ITextExtractionModelMetadata|null);
+
+ /** Model tablesModelMetadata */
+ tablesModelMetadata?: (google.cloud.automl.v1beta1.ITablesModelMetadata|null);
+
+ /** Model textSentimentModelMetadata */
+ textSentimentModelMetadata?: (google.cloud.automl.v1beta1.ITextSentimentModelMetadata|null);
+
+ /** Model name */
+ name?: (string|null);
+
+ /** Model displayName */
+ displayName?: (string|null);
+
+ /** Model datasetId */
+ datasetId?: (string|null);
+
+ /** Model createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model deploymentState */
+ deploymentState?: (google.cloud.automl.v1beta1.Model.DeploymentState|keyof typeof google.cloud.automl.v1beta1.Model.DeploymentState|null);
+ }
+
+ /** Represents a Model. */
+ class Model implements IModel {
+
+ /**
+ * Constructs a new Model.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IModel);
+
+ /** Model translationModelMetadata. */
+ public translationModelMetadata?: (google.cloud.automl.v1beta1.ITranslationModelMetadata|null);
+
+ /** Model imageClassificationModelMetadata. */
+ public imageClassificationModelMetadata?: (google.cloud.automl.v1beta1.IImageClassificationModelMetadata|null);
+
+ /** Model textClassificationModelMetadata. */
+ public textClassificationModelMetadata?: (google.cloud.automl.v1beta1.ITextClassificationModelMetadata|null);
+
+ /** Model imageObjectDetectionModelMetadata. */
+ public imageObjectDetectionModelMetadata?: (google.cloud.automl.v1beta1.IImageObjectDetectionModelMetadata|null);
+
+ /** Model videoClassificationModelMetadata. */
+ public videoClassificationModelMetadata?: (google.cloud.automl.v1beta1.IVideoClassificationModelMetadata|null);
+
+ /** Model videoObjectTrackingModelMetadata. */
+ public videoObjectTrackingModelMetadata?: (google.cloud.automl.v1beta1.IVideoObjectTrackingModelMetadata|null);
+
+ /** Model textExtractionModelMetadata. */
+ public textExtractionModelMetadata?: (google.cloud.automl.v1beta1.ITextExtractionModelMetadata|null);
+
+ /** Model tablesModelMetadata. */
+ public tablesModelMetadata?: (google.cloud.automl.v1beta1.ITablesModelMetadata|null);
+
+ /** Model textSentimentModelMetadata. */
+ public textSentimentModelMetadata?: (google.cloud.automl.v1beta1.ITextSentimentModelMetadata|null);
+
+ /** Model name. */
+ public name: string;
+
+ /** Model displayName. */
+ public displayName: string;
+
+ /** Model datasetId. */
+ public datasetId: string;
+
+ /** Model createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Model deploymentState. */
+ public deploymentState: (google.cloud.automl.v1beta1.Model.DeploymentState|keyof typeof google.cloud.automl.v1beta1.Model.DeploymentState);
+
+ /** Model modelMetadata. */
+ public modelMetadata?: ("translationModelMetadata"|"imageClassificationModelMetadata"|"textClassificationModelMetadata"|"imageObjectDetectionModelMetadata"|"videoClassificationModelMetadata"|"videoObjectTrackingModelMetadata"|"textExtractionModelMetadata"|"tablesModelMetadata"|"textSentimentModelMetadata");
+
+ /**
+ * Creates a new Model instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Model instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IModel): google.cloud.automl.v1beta1.Model;
+
+ /**
+ * Encodes the specified Model message. Does not implicitly {@link google.cloud.automl.v1beta1.Model.verify|verify} messages.
+ * @param message Model message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.Model.verify|verify} messages.
+ * @param message Model message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Model message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Model
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.Model;
+
+ /**
+ * Decodes a Model message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Model
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.Model;
+
+ /**
+ * Verifies a Model 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 Model message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Model
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.Model;
+
+ /**
+ * Creates a plain object from a Model message. Also converts values to other types if specified.
+ * @param message Model
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Model to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Model
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Model {
+
+ /** DeploymentState enum. */
+ enum DeploymentState {
+ DEPLOYMENT_STATE_UNSPECIFIED = 0,
+ DEPLOYED = 1,
+ UNDEPLOYED = 2
+ }
+ }
+
+ /** Properties of a ModelEvaluation. */
+ interface IModelEvaluation {
+
+ /** ModelEvaluation classificationEvaluationMetrics */
+ classificationEvaluationMetrics?: (google.cloud.automl.v1beta1.IClassificationEvaluationMetrics|null);
+
+ /** ModelEvaluation regressionEvaluationMetrics */
+ regressionEvaluationMetrics?: (google.cloud.automl.v1beta1.IRegressionEvaluationMetrics|null);
+
+ /** ModelEvaluation translationEvaluationMetrics */
+ translationEvaluationMetrics?: (google.cloud.automl.v1beta1.ITranslationEvaluationMetrics|null);
+
+ /** ModelEvaluation imageObjectDetectionEvaluationMetrics */
+ imageObjectDetectionEvaluationMetrics?: (google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics|null);
+
+ /** ModelEvaluation videoObjectTrackingEvaluationMetrics */
+ videoObjectTrackingEvaluationMetrics?: (google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics|null);
+
+ /** ModelEvaluation textSentimentEvaluationMetrics */
+ textSentimentEvaluationMetrics?: (google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics|null);
+
+ /** ModelEvaluation textExtractionEvaluationMetrics */
+ textExtractionEvaluationMetrics?: (google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics|null);
+
+ /** ModelEvaluation name */
+ name?: (string|null);
+
+ /** ModelEvaluation annotationSpecId */
+ annotationSpecId?: (string|null);
+
+ /** ModelEvaluation displayName */
+ displayName?: (string|null);
+
+ /** ModelEvaluation createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ModelEvaluation evaluatedExampleCount */
+ evaluatedExampleCount?: (number|null);
+ }
+
+ /** Represents a ModelEvaluation. */
+ class ModelEvaluation implements IModelEvaluation {
+
+ /**
+ * Constructs a new ModelEvaluation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IModelEvaluation);
+
+ /** ModelEvaluation classificationEvaluationMetrics. */
+ public classificationEvaluationMetrics?: (google.cloud.automl.v1beta1.IClassificationEvaluationMetrics|null);
+
+ /** ModelEvaluation regressionEvaluationMetrics. */
+ public regressionEvaluationMetrics?: (google.cloud.automl.v1beta1.IRegressionEvaluationMetrics|null);
+
+ /** ModelEvaluation translationEvaluationMetrics. */
+ public translationEvaluationMetrics?: (google.cloud.automl.v1beta1.ITranslationEvaluationMetrics|null);
+
+ /** ModelEvaluation imageObjectDetectionEvaluationMetrics. */
+ public imageObjectDetectionEvaluationMetrics?: (google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics|null);
+
+ /** ModelEvaluation videoObjectTrackingEvaluationMetrics. */
+ public videoObjectTrackingEvaluationMetrics?: (google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics|null);
+
+ /** ModelEvaluation textSentimentEvaluationMetrics. */
+ public textSentimentEvaluationMetrics?: (google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics|null);
+
+ /** ModelEvaluation textExtractionEvaluationMetrics. */
+ public textExtractionEvaluationMetrics?: (google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics|null);
+
+ /** ModelEvaluation name. */
+ public name: string;
+
+ /** ModelEvaluation annotationSpecId. */
+ public annotationSpecId: string;
+
+ /** ModelEvaluation displayName. */
+ public displayName: string;
+
+ /** ModelEvaluation createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ModelEvaluation evaluatedExampleCount. */
+ public evaluatedExampleCount: number;
+
+ /** ModelEvaluation metrics. */
+ public metrics?: ("classificationEvaluationMetrics"|"regressionEvaluationMetrics"|"translationEvaluationMetrics"|"imageObjectDetectionEvaluationMetrics"|"videoObjectTrackingEvaluationMetrics"|"textSentimentEvaluationMetrics"|"textExtractionEvaluationMetrics");
+
+ /**
+ * Creates a new ModelEvaluation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelEvaluation instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IModelEvaluation): google.cloud.automl.v1beta1.ModelEvaluation;
+
+ /**
+ * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.automl.v1beta1.ModelEvaluation.verify|verify} messages.
+ * @param message ModelEvaluation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ModelEvaluation.verify|verify} messages.
+ * @param message ModelEvaluation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelEvaluation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelEvaluation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ModelEvaluation;
+
+ /**
+ * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelEvaluation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ModelEvaluation;
+
+ /**
+ * Verifies a ModelEvaluation 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 ModelEvaluation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelEvaluation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ModelEvaluation;
+
+ /**
+ * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified.
+ * @param message ModelEvaluation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelEvaluation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelEvaluation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata deleteDetails */
+ deleteDetails?: (google.cloud.automl.v1beta1.IDeleteOperationMetadata|null);
+
+ /** OperationMetadata deployModelDetails */
+ deployModelDetails?: (google.cloud.automl.v1beta1.IDeployModelOperationMetadata|null);
+
+ /** OperationMetadata undeployModelDetails */
+ undeployModelDetails?: (google.cloud.automl.v1beta1.IUndeployModelOperationMetadata|null);
+
+ /** OperationMetadata createModelDetails */
+ createModelDetails?: (google.cloud.automl.v1beta1.ICreateModelOperationMetadata|null);
+
+ /** OperationMetadata importDataDetails */
+ importDataDetails?: (google.cloud.automl.v1beta1.IImportDataOperationMetadata|null);
+
+ /** OperationMetadata batchPredictDetails */
+ batchPredictDetails?: (google.cloud.automl.v1beta1.IBatchPredictOperationMetadata|null);
+
+ /** OperationMetadata exportDataDetails */
+ exportDataDetails?: (google.cloud.automl.v1beta1.IExportDataOperationMetadata|null);
+
+ /** OperationMetadata exportModelDetails */
+ exportModelDetails?: (google.cloud.automl.v1beta1.IExportModelOperationMetadata|null);
+
+ /** OperationMetadata exportEvaluatedExamplesDetails */
+ exportEvaluatedExamplesDetails?: (google.cloud.automl.v1beta1.IExportEvaluatedExamplesOperationMetadata|null);
+
+ /** OperationMetadata progressPercent */
+ progressPercent?: (number|null);
+
+ /** OperationMetadata partialFailures */
+ partialFailures?: (google.rpc.IStatus[]|null);
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IOperationMetadata);
+
+ /** OperationMetadata deleteDetails. */
+ public deleteDetails?: (google.cloud.automl.v1beta1.IDeleteOperationMetadata|null);
+
+ /** OperationMetadata deployModelDetails. */
+ public deployModelDetails?: (google.cloud.automl.v1beta1.IDeployModelOperationMetadata|null);
+
+ /** OperationMetadata undeployModelDetails. */
+ public undeployModelDetails?: (google.cloud.automl.v1beta1.IUndeployModelOperationMetadata|null);
+
+ /** OperationMetadata createModelDetails. */
+ public createModelDetails?: (google.cloud.automl.v1beta1.ICreateModelOperationMetadata|null);
+
+ /** OperationMetadata importDataDetails. */
+ public importDataDetails?: (google.cloud.automl.v1beta1.IImportDataOperationMetadata|null);
+
+ /** OperationMetadata batchPredictDetails. */
+ public batchPredictDetails?: (google.cloud.automl.v1beta1.IBatchPredictOperationMetadata|null);
+
+ /** OperationMetadata exportDataDetails. */
+ public exportDataDetails?: (google.cloud.automl.v1beta1.IExportDataOperationMetadata|null);
+
+ /** OperationMetadata exportModelDetails. */
+ public exportModelDetails?: (google.cloud.automl.v1beta1.IExportModelOperationMetadata|null);
+
+ /** OperationMetadata exportEvaluatedExamplesDetails. */
+ public exportEvaluatedExamplesDetails?: (google.cloud.automl.v1beta1.IExportEvaluatedExamplesOperationMetadata|null);
+
+ /** OperationMetadata progressPercent. */
+ public progressPercent: number;
+
+ /** OperationMetadata partialFailures. */
+ public partialFailures: google.rpc.IStatus[];
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata details. */
+ public details?: ("deleteDetails"|"deployModelDetails"|"undeployModelDetails"|"createModelDetails"|"importDataDetails"|"batchPredictDetails"|"exportDataDetails"|"exportModelDetails"|"exportEvaluatedExamplesDetails");
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IOperationMetadata): google.cloud.automl.v1beta1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationMetadata. */
+ interface IDeleteOperationMetadata {
+ }
+
+ /** Represents a DeleteOperationMetadata. */
+ class DeleteOperationMetadata implements IDeleteOperationMetadata {
+
+ /**
+ * Constructs a new DeleteOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDeleteOperationMetadata);
+
+ /**
+ * Creates a new DeleteOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDeleteOperationMetadata): google.cloud.automl.v1beta1.DeleteOperationMetadata;
+
+ /**
+ * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.DeleteOperationMetadata.verify|verify} messages.
+ * @param message DeleteOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DeleteOperationMetadata.verify|verify} messages.
+ * @param message DeleteOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DeleteOperationMetadata;
+
+ /**
+ * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DeleteOperationMetadata;
+
+ /**
+ * Verifies a DeleteOperationMetadata 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 DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DeleteOperationMetadata;
+
+ /**
+ * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified.
+ * @param message DeleteOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployModelOperationMetadata. */
+ interface IDeployModelOperationMetadata {
+ }
+
+ /** Represents a DeployModelOperationMetadata. */
+ class DeployModelOperationMetadata implements IDeployModelOperationMetadata {
+
+ /**
+ * Constructs a new DeployModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDeployModelOperationMetadata);
+
+ /**
+ * Creates a new DeployModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDeployModelOperationMetadata): google.cloud.automl.v1beta1.DeployModelOperationMetadata;
+
+ /**
+ * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.DeployModelOperationMetadata.verify|verify} messages.
+ * @param message DeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DeployModelOperationMetadata.verify|verify} messages.
+ * @param message DeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DeployModelOperationMetadata;
+
+ /**
+ * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DeployModelOperationMetadata;
+
+ /**
+ * Verifies a DeployModelOperationMetadata 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 DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DeployModelOperationMetadata;
+
+ /**
+ * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message DeployModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployModelOperationMetadata. */
+ interface IUndeployModelOperationMetadata {
+ }
+
+ /** Represents an UndeployModelOperationMetadata. */
+ class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata {
+
+ /**
+ * Constructs a new UndeployModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IUndeployModelOperationMetadata);
+
+ /**
+ * Creates a new UndeployModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IUndeployModelOperationMetadata): google.cloud.automl.v1beta1.UndeployModelOperationMetadata;
+
+ /**
+ * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.UndeployModelOperationMetadata.verify|verify} messages.
+ * @param message UndeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.UndeployModelOperationMetadata.verify|verify} messages.
+ * @param message UndeployModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.UndeployModelOperationMetadata;
+
+ /**
+ * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.UndeployModelOperationMetadata;
+
+ /**
+ * Verifies an UndeployModelOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.UndeployModelOperationMetadata;
+
+ /**
+ * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message UndeployModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateModelOperationMetadata. */
+ interface ICreateModelOperationMetadata {
+ }
+
+ /** Represents a CreateModelOperationMetadata. */
+ class CreateModelOperationMetadata implements ICreateModelOperationMetadata {
+
+ /**
+ * Constructs a new CreateModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ICreateModelOperationMetadata);
+
+ /**
+ * Creates a new CreateModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ICreateModelOperationMetadata): google.cloud.automl.v1beta1.CreateModelOperationMetadata;
+
+ /**
+ * Encodes the specified CreateModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.CreateModelOperationMetadata.verify|verify} messages.
+ * @param message CreateModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ICreateModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.CreateModelOperationMetadata.verify|verify} messages.
+ * @param message CreateModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ICreateModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.CreateModelOperationMetadata;
+
+ /**
+ * Decodes a CreateModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.CreateModelOperationMetadata;
+
+ /**
+ * Verifies a CreateModelOperationMetadata 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 CreateModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.CreateModelOperationMetadata;
+
+ /**
+ * Creates a plain object from a CreateModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message CreateModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.CreateModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataOperationMetadata. */
+ interface IImportDataOperationMetadata {
+ }
+
+ /** Represents an ImportDataOperationMetadata. */
+ class ImportDataOperationMetadata implements IImportDataOperationMetadata {
+
+ /**
+ * Constructs a new ImportDataOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImportDataOperationMetadata);
+
+ /**
+ * Creates a new ImportDataOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImportDataOperationMetadata): google.cloud.automl.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ImportDataOperationMetadata.verify|verify} messages.
+ * @param message ImportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImportDataOperationMetadata.verify|verify} messages.
+ * @param message ImportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Verifies an ImportDataOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImportDataOperationMetadata;
+
+ /**
+ * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified.
+ * @param message ImportDataOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataOperationMetadata. */
+ interface IExportDataOperationMetadata {
+
+ /** ExportDataOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1beta1.ExportDataOperationMetadata.IExportDataOutputInfo|null);
+ }
+
+ /** Represents an ExportDataOperationMetadata. */
+ class ExportDataOperationMetadata implements IExportDataOperationMetadata {
+
+ /**
+ * Constructs a new ExportDataOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportDataOperationMetadata);
+
+ /** ExportDataOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1beta1.ExportDataOperationMetadata.IExportDataOutputInfo|null);
+
+ /**
+ * Creates a new ExportDataOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportDataOperationMetadata): google.cloud.automl.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportDataOperationMetadata.verify|verify} messages.
+ * @param message ExportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportDataOperationMetadata.verify|verify} messages.
+ * @param message ExportDataOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Verifies an ExportDataOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportDataOperationMetadata;
+
+ /**
+ * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified.
+ * @param message ExportDataOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExportDataOperationMetadata {
+
+ /** Properties of an ExportDataOutputInfo. */
+ interface IExportDataOutputInfo {
+
+ /** ExportDataOutputInfo gcsOutputDirectory */
+ gcsOutputDirectory?: (string|null);
+
+ /** ExportDataOutputInfo bigqueryOutputDataset */
+ bigqueryOutputDataset?: (string|null);
+ }
+
+ /** Represents an ExportDataOutputInfo. */
+ class ExportDataOutputInfo implements IExportDataOutputInfo {
+
+ /**
+ * Constructs a new ExportDataOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ExportDataOperationMetadata.IExportDataOutputInfo);
+
+ /** ExportDataOutputInfo gcsOutputDirectory. */
+ public gcsOutputDirectory?: (string|null);
+
+ /** ExportDataOutputInfo bigqueryOutputDataset. */
+ public bigqueryOutputDataset?: (string|null);
+
+ /** ExportDataOutputInfo outputLocation. */
+ public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset");
+
+ /**
+ * Creates a new ExportDataOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ExportDataOperationMetadata.IExportDataOutputInfo): google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Encodes the specified ExportDataOutputInfo message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.verify|verify} messages.
+ * @param message ExportDataOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ExportDataOperationMetadata.IExportDataOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.verify|verify} messages.
+ * @param message ExportDataOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ExportDataOperationMetadata.IExportDataOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Decodes an ExportDataOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Verifies an ExportDataOutputInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDataOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo;
+
+ /**
+ * Creates a plain object from an ExportDataOutputInfo message. Also converts values to other types if specified.
+ * @param message ExportDataOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a BatchPredictOperationMetadata. */
+ interface IBatchPredictOperationMetadata {
+
+ /** BatchPredictOperationMetadata inputConfig */
+ inputConfig?: (google.cloud.automl.v1beta1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1beta1.BatchPredictOperationMetadata.IBatchPredictOutputInfo|null);
+ }
+
+ /** Represents a BatchPredictOperationMetadata. */
+ class BatchPredictOperationMetadata implements IBatchPredictOperationMetadata {
+
+ /**
+ * Constructs a new BatchPredictOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBatchPredictOperationMetadata);
+
+ /** BatchPredictOperationMetadata inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1beta1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1beta1.BatchPredictOperationMetadata.IBatchPredictOutputInfo|null);
+
+ /**
+ * Creates a new BatchPredictOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBatchPredictOperationMetadata): google.cloud.automl.v1beta1.BatchPredictOperationMetadata;
+
+ /**
+ * Encodes the specified BatchPredictOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictOperationMetadata.verify|verify} messages.
+ * @param message BatchPredictOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBatchPredictOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictOperationMetadata.verify|verify} messages.
+ * @param message BatchPredictOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBatchPredictOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BatchPredictOperationMetadata;
+
+ /**
+ * Decodes a BatchPredictOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BatchPredictOperationMetadata;
+
+ /**
+ * Verifies a BatchPredictOperationMetadata 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 BatchPredictOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BatchPredictOperationMetadata;
+
+ /**
+ * Creates a plain object from a BatchPredictOperationMetadata message. Also converts values to other types if specified.
+ * @param message BatchPredictOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BatchPredictOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BatchPredictOperationMetadata {
+
+ /** Properties of a BatchPredictOutputInfo. */
+ interface IBatchPredictOutputInfo {
+
+ /** BatchPredictOutputInfo gcsOutputDirectory */
+ gcsOutputDirectory?: (string|null);
+
+ /** BatchPredictOutputInfo bigqueryOutputDataset */
+ bigqueryOutputDataset?: (string|null);
+ }
+
+ /** Represents a BatchPredictOutputInfo. */
+ class BatchPredictOutputInfo implements IBatchPredictOutputInfo {
+
+ /**
+ * Constructs a new BatchPredictOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.BatchPredictOperationMetadata.IBatchPredictOutputInfo);
+
+ /** BatchPredictOutputInfo gcsOutputDirectory. */
+ public gcsOutputDirectory?: (string|null);
+
+ /** BatchPredictOutputInfo bigqueryOutputDataset. */
+ public bigqueryOutputDataset?: (string|null);
+
+ /** BatchPredictOutputInfo outputLocation. */
+ public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset");
+
+ /**
+ * Creates a new BatchPredictOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.BatchPredictOperationMetadata.IBatchPredictOutputInfo): google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Encodes the specified BatchPredictOutputInfo message. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.verify|verify} messages.
+ * @param message BatchPredictOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.BatchPredictOperationMetadata.IBatchPredictOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.verify|verify} messages.
+ * @param message BatchPredictOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.BatchPredictOperationMetadata.IBatchPredictOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Decodes a BatchPredictOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Verifies a BatchPredictOutputInfo 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 BatchPredictOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo;
+
+ /**
+ * Creates a plain object from a BatchPredictOutputInfo message. Also converts values to other types if specified.
+ * @param message BatchPredictOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExportModelOperationMetadata. */
+ interface IExportModelOperationMetadata {
+
+ /** ExportModelOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1beta1.ExportModelOperationMetadata.IExportModelOutputInfo|null);
+ }
+
+ /** Represents an ExportModelOperationMetadata. */
+ class ExportModelOperationMetadata implements IExportModelOperationMetadata {
+
+ /**
+ * Constructs a new ExportModelOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportModelOperationMetadata);
+
+ /** ExportModelOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1beta1.ExportModelOperationMetadata.IExportModelOutputInfo|null);
+
+ /**
+ * Creates a new ExportModelOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportModelOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportModelOperationMetadata): google.cloud.automl.v1beta1.ExportModelOperationMetadata;
+
+ /**
+ * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportModelOperationMetadata.verify|verify} messages.
+ * @param message ExportModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportModelOperationMetadata.verify|verify} messages.
+ * @param message ExportModelOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportModelOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportModelOperationMetadata;
+
+ /**
+ * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportModelOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportModelOperationMetadata;
+
+ /**
+ * Verifies an ExportModelOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportModelOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportModelOperationMetadata;
+
+ /**
+ * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified.
+ * @param message ExportModelOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportModelOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportModelOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExportModelOperationMetadata {
+
+ /** Properties of an ExportModelOutputInfo. */
+ interface IExportModelOutputInfo {
+
+ /** ExportModelOutputInfo gcsOutputDirectory */
+ gcsOutputDirectory?: (string|null);
+ }
+
+ /** Represents an ExportModelOutputInfo. */
+ class ExportModelOutputInfo implements IExportModelOutputInfo {
+
+ /**
+ * Constructs a new ExportModelOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ExportModelOperationMetadata.IExportModelOutputInfo);
+
+ /** ExportModelOutputInfo gcsOutputDirectory. */
+ public gcsOutputDirectory: string;
+
+ /**
+ * Creates a new ExportModelOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportModelOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ExportModelOperationMetadata.IExportModelOutputInfo): google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Encodes the specified ExportModelOutputInfo message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.verify|verify} messages.
+ * @param message ExportModelOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ExportModelOperationMetadata.IExportModelOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportModelOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.verify|verify} messages.
+ * @param message ExportModelOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ExportModelOperationMetadata.IExportModelOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportModelOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportModelOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Decodes an ExportModelOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportModelOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Verifies an ExportModelOutputInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportModelOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportModelOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo;
+
+ /**
+ * Creates a plain object from an ExportModelOutputInfo message. Also converts values to other types if specified.
+ * @param message ExportModelOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportModelOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportModelOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExportEvaluatedExamplesOperationMetadata. */
+ interface IExportEvaluatedExamplesOperationMetadata {
+
+ /** ExportEvaluatedExamplesOperationMetadata outputInfo */
+ outputInfo?: (google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.IExportEvaluatedExamplesOutputInfo|null);
+ }
+
+ /** Represents an ExportEvaluatedExamplesOperationMetadata. */
+ class ExportEvaluatedExamplesOperationMetadata implements IExportEvaluatedExamplesOperationMetadata {
+
+ /**
+ * Constructs a new ExportEvaluatedExamplesOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOperationMetadata);
+
+ /** ExportEvaluatedExamplesOperationMetadata outputInfo. */
+ public outputInfo?: (google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.IExportEvaluatedExamplesOutputInfo|null);
+
+ /**
+ * Creates a new ExportEvaluatedExamplesOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportEvaluatedExamplesOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOperationMetadata): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesOperationMetadata message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportEvaluatedExamplesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportEvaluatedExamplesOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportEvaluatedExamplesOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata;
+
+ /**
+ * Verifies an ExportEvaluatedExamplesOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportEvaluatedExamplesOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportEvaluatedExamplesOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata;
+
+ /**
+ * Creates a plain object from an ExportEvaluatedExamplesOperationMetadata message. Also converts values to other types if specified.
+ * @param message ExportEvaluatedExamplesOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportEvaluatedExamplesOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportEvaluatedExamplesOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExportEvaluatedExamplesOperationMetadata {
+
+ /** Properties of an ExportEvaluatedExamplesOutputInfo. */
+ interface IExportEvaluatedExamplesOutputInfo {
+
+ /** ExportEvaluatedExamplesOutputInfo bigqueryOutputDataset */
+ bigqueryOutputDataset?: (string|null);
+ }
+
+ /** Represents an ExportEvaluatedExamplesOutputInfo. */
+ class ExportEvaluatedExamplesOutputInfo implements IExportEvaluatedExamplesOutputInfo {
+
+ /**
+ * Constructs a new ExportEvaluatedExamplesOutputInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.IExportEvaluatedExamplesOutputInfo);
+
+ /** ExportEvaluatedExamplesOutputInfo bigqueryOutputDataset. */
+ public bigqueryOutputDataset: string;
+
+ /**
+ * Creates a new ExportEvaluatedExamplesOutputInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportEvaluatedExamplesOutputInfo instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.IExportEvaluatedExamplesOutputInfo): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesOutputInfo message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.IExportEvaluatedExamplesOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesOutputInfo message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesOutputInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.IExportEvaluatedExamplesOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesOutputInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportEvaluatedExamplesOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesOutputInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportEvaluatedExamplesOutputInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo;
+
+ /**
+ * Verifies an ExportEvaluatedExamplesOutputInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportEvaluatedExamplesOutputInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportEvaluatedExamplesOutputInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo;
+
+ /**
+ * Creates a plain object from an ExportEvaluatedExamplesOutputInfo message. Also converts values to other types if specified.
+ * @param message ExportEvaluatedExamplesOutputInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportEvaluatedExamplesOutputInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportEvaluatedExamplesOutputInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a PredictionService */
+ class PredictionService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new PredictionService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new PredictionService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService;
+
+ /**
+ * Calls Predict.
+ * @param request PredictRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PredictResponse
+ */
+ public predict(request: google.cloud.automl.v1beta1.IPredictRequest, callback: google.cloud.automl.v1beta1.PredictionService.PredictCallback): void;
+
+ /**
+ * Calls Predict.
+ * @param request PredictRequest message or plain object
+ * @returns Promise
+ */
+ public predict(request: google.cloud.automl.v1beta1.IPredictRequest): Promise;
+
+ /**
+ * Calls BatchPredict.
+ * @param request BatchPredictRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public batchPredict(request: google.cloud.automl.v1beta1.IBatchPredictRequest, callback: google.cloud.automl.v1beta1.PredictionService.BatchPredictCallback): void;
+
+ /**
+ * Calls BatchPredict.
+ * @param request BatchPredictRequest message or plain object
+ * @returns Promise
+ */
+ public batchPredict(request: google.cloud.automl.v1beta1.IBatchPredictRequest): Promise;
+ }
+
+ namespace PredictionService {
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.PredictionService|predict}.
+ * @param error Error, if any
+ * @param [response] PredictResponse
+ */
+ type PredictCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.PredictResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.PredictionService|batchPredict}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BatchPredictCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a PredictRequest. */
+ interface IPredictRequest {
+
+ /** PredictRequest name */
+ name?: (string|null);
+
+ /** PredictRequest payload */
+ payload?: (google.cloud.automl.v1beta1.IExamplePayload|null);
+
+ /** PredictRequest params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a PredictRequest. */
+ class PredictRequest implements IPredictRequest {
+
+ /**
+ * Constructs a new PredictRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IPredictRequest);
+
+ /** PredictRequest name. */
+ public name: string;
+
+ /** PredictRequest payload. */
+ public payload?: (google.cloud.automl.v1beta1.IExamplePayload|null);
+
+ /** PredictRequest params. */
+ public params: { [k: string]: string };
+
+ /**
+ * Creates a new PredictRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PredictRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IPredictRequest): google.cloud.automl.v1beta1.PredictRequest;
+
+ /**
+ * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.PredictRequest.verify|verify} messages.
+ * @param message PredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.PredictRequest.verify|verify} messages.
+ * @param message PredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PredictRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.PredictRequest;
+
+ /**
+ * Decodes a PredictRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.PredictRequest;
+
+ /**
+ * Verifies a PredictRequest 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 PredictRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PredictRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.PredictRequest;
+
+ /**
+ * Creates a plain object from a PredictRequest message. Also converts values to other types if specified.
+ * @param message PredictRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PredictRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PredictRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PredictResponse. */
+ interface IPredictResponse {
+
+ /** PredictResponse payload */
+ payload?: (google.cloud.automl.v1beta1.IAnnotationPayload[]|null);
+
+ /** PredictResponse preprocessedInput */
+ preprocessedInput?: (google.cloud.automl.v1beta1.IExamplePayload|null);
+
+ /** PredictResponse metadata */
+ metadata?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a PredictResponse. */
+ class PredictResponse implements IPredictResponse {
+
+ /**
+ * Constructs a new PredictResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IPredictResponse);
+
+ /** PredictResponse payload. */
+ public payload: google.cloud.automl.v1beta1.IAnnotationPayload[];
+
+ /** PredictResponse preprocessedInput. */
+ public preprocessedInput?: (google.cloud.automl.v1beta1.IExamplePayload|null);
+
+ /** PredictResponse metadata. */
+ public metadata: { [k: string]: string };
+
+ /**
+ * Creates a new PredictResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PredictResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IPredictResponse): google.cloud.automl.v1beta1.PredictResponse;
+
+ /**
+ * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.automl.v1beta1.PredictResponse.verify|verify} messages.
+ * @param message PredictResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.PredictResponse.verify|verify} messages.
+ * @param message PredictResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PredictResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PredictResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.PredictResponse;
+
+ /**
+ * Decodes a PredictResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PredictResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.PredictResponse;
+
+ /**
+ * Verifies a PredictResponse 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 PredictResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PredictResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.PredictResponse;
+
+ /**
+ * Creates a plain object from a PredictResponse message. Also converts values to other types if specified.
+ * @param message PredictResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PredictResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PredictResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictRequest. */
+ interface IBatchPredictRequest {
+
+ /** BatchPredictRequest name */
+ name?: (string|null);
+
+ /** BatchPredictRequest inputConfig */
+ inputConfig?: (google.cloud.automl.v1beta1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1beta1.IBatchPredictOutputConfig|null);
+
+ /** BatchPredictRequest params */
+ params?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a BatchPredictRequest. */
+ class BatchPredictRequest implements IBatchPredictRequest {
+
+ /**
+ * Constructs a new BatchPredictRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBatchPredictRequest);
+
+ /** BatchPredictRequest name. */
+ public name: string;
+
+ /** BatchPredictRequest inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1beta1.IBatchPredictInputConfig|null);
+
+ /** BatchPredictRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1beta1.IBatchPredictOutputConfig|null);
+
+ /** BatchPredictRequest params. */
+ public params: { [k: string]: string };
+
+ /**
+ * Creates a new BatchPredictRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBatchPredictRequest): google.cloud.automl.v1beta1.BatchPredictRequest;
+
+ /**
+ * Encodes the specified BatchPredictRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictRequest.verify|verify} messages.
+ * @param message BatchPredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBatchPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictRequest.verify|verify} messages.
+ * @param message BatchPredictRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBatchPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BatchPredictRequest;
+
+ /**
+ * Decodes a BatchPredictRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BatchPredictRequest;
+
+ /**
+ * Verifies a BatchPredictRequest 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 BatchPredictRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BatchPredictRequest;
+
+ /**
+ * Creates a plain object from a BatchPredictRequest message. Also converts values to other types if specified.
+ * @param message BatchPredictRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BatchPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchPredictResult. */
+ interface IBatchPredictResult {
+
+ /** BatchPredictResult metadata */
+ metadata?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a BatchPredictResult. */
+ class BatchPredictResult implements IBatchPredictResult {
+
+ /**
+ * Constructs a new BatchPredictResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IBatchPredictResult);
+
+ /** BatchPredictResult metadata. */
+ public metadata: { [k: string]: string };
+
+ /**
+ * Creates a new BatchPredictResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchPredictResult instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IBatchPredictResult): google.cloud.automl.v1beta1.BatchPredictResult;
+
+ /**
+ * Encodes the specified BatchPredictResult message. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictResult.verify|verify} messages.
+ * @param message BatchPredictResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IBatchPredictResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchPredictResult message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.BatchPredictResult.verify|verify} messages.
+ * @param message BatchPredictResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IBatchPredictResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchPredictResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchPredictResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.BatchPredictResult;
+
+ /**
+ * Decodes a BatchPredictResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchPredictResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.BatchPredictResult;
+
+ /**
+ * Verifies a BatchPredictResult 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 BatchPredictResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchPredictResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.BatchPredictResult;
+
+ /**
+ * Creates a plain object from a BatchPredictResult message. Also converts values to other types if specified.
+ * @param message BatchPredictResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.BatchPredictResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchPredictResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchPredictResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an AutoMl */
+ class AutoMl extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new AutoMl service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new AutoMl service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AutoMl;
+
+ /**
+ * Calls CreateDataset.
+ * @param request CreateDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public createDataset(request: google.cloud.automl.v1beta1.ICreateDatasetRequest, callback: google.cloud.automl.v1beta1.AutoMl.CreateDatasetCallback): void;
+
+ /**
+ * Calls CreateDataset.
+ * @param request CreateDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public createDataset(request: google.cloud.automl.v1beta1.ICreateDatasetRequest): Promise;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public getDataset(request: google.cloud.automl.v1beta1.IGetDatasetRequest, callback: google.cloud.automl.v1beta1.AutoMl.GetDatasetCallback): void;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public getDataset(request: google.cloud.automl.v1beta1.IGetDatasetRequest): Promise;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse
+ */
+ public listDatasets(request: google.cloud.automl.v1beta1.IListDatasetsRequest, callback: google.cloud.automl.v1beta1.AutoMl.ListDatasetsCallback): void;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @returns Promise
+ */
+ public listDatasets(request: google.cloud.automl.v1beta1.IListDatasetsRequest): Promise;
+
+ /**
+ * Calls UpdateDataset.
+ * @param request UpdateDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public updateDataset(request: google.cloud.automl.v1beta1.IUpdateDatasetRequest, callback: google.cloud.automl.v1beta1.AutoMl.UpdateDatasetCallback): void;
+
+ /**
+ * Calls UpdateDataset.
+ * @param request UpdateDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public updateDataset(request: google.cloud.automl.v1beta1.IUpdateDatasetRequest): Promise;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteDataset(request: google.cloud.automl.v1beta1.IDeleteDatasetRequest, callback: google.cloud.automl.v1beta1.AutoMl.DeleteDatasetCallback): void;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDataset(request: google.cloud.automl.v1beta1.IDeleteDatasetRequest): Promise;
+
+ /**
+ * Calls ImportData.
+ * @param request ImportDataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public importData(request: google.cloud.automl.v1beta1.IImportDataRequest, callback: google.cloud.automl.v1beta1.AutoMl.ImportDataCallback): void;
+
+ /**
+ * Calls ImportData.
+ * @param request ImportDataRequest message or plain object
+ * @returns Promise
+ */
+ public importData(request: google.cloud.automl.v1beta1.IImportDataRequest): Promise;
+
+ /**
+ * Calls ExportData.
+ * @param request ExportDataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportData(request: google.cloud.automl.v1beta1.IExportDataRequest, callback: google.cloud.automl.v1beta1.AutoMl.ExportDataCallback): void;
+
+ /**
+ * Calls ExportData.
+ * @param request ExportDataRequest message or plain object
+ * @returns Promise
+ */
+ public exportData(request: google.cloud.automl.v1beta1.IExportDataRequest): Promise;
+
+ /**
+ * Calls GetAnnotationSpec.
+ * @param request GetAnnotationSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnnotationSpec
+ */
+ public getAnnotationSpec(request: google.cloud.automl.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpecCallback): void;
+
+ /**
+ * Calls GetAnnotationSpec.
+ * @param request GetAnnotationSpecRequest message or plain object
+ * @returns Promise
+ */
+ public getAnnotationSpec(request: google.cloud.automl.v1beta1.IGetAnnotationSpecRequest): Promise;
+
+ /**
+ * Calls GetTableSpec.
+ * @param request GetTableSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TableSpec
+ */
+ public getTableSpec(request: google.cloud.automl.v1beta1.IGetTableSpecRequest, callback: google.cloud.automl.v1beta1.AutoMl.GetTableSpecCallback): void;
+
+ /**
+ * Calls GetTableSpec.
+ * @param request GetTableSpecRequest message or plain object
+ * @returns Promise
+ */
+ public getTableSpec(request: google.cloud.automl.v1beta1.IGetTableSpecRequest): Promise;
+
+ /**
+ * Calls ListTableSpecs.
+ * @param request ListTableSpecsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListTableSpecsResponse
+ */
+ public listTableSpecs(request: google.cloud.automl.v1beta1.IListTableSpecsRequest, callback: google.cloud.automl.v1beta1.AutoMl.ListTableSpecsCallback): void;
+
+ /**
+ * Calls ListTableSpecs.
+ * @param request ListTableSpecsRequest message or plain object
+ * @returns Promise
+ */
+ public listTableSpecs(request: google.cloud.automl.v1beta1.IListTableSpecsRequest): Promise;
+
+ /**
+ * Calls UpdateTableSpec.
+ * @param request UpdateTableSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TableSpec
+ */
+ public updateTableSpec(request: google.cloud.automl.v1beta1.IUpdateTableSpecRequest, callback: google.cloud.automl.v1beta1.AutoMl.UpdateTableSpecCallback): void;
+
+ /**
+ * Calls UpdateTableSpec.
+ * @param request UpdateTableSpecRequest message or plain object
+ * @returns Promise
+ */
+ public updateTableSpec(request: google.cloud.automl.v1beta1.IUpdateTableSpecRequest): Promise;
+
+ /**
+ * Calls GetColumnSpec.
+ * @param request GetColumnSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ColumnSpec
+ */
+ public getColumnSpec(request: google.cloud.automl.v1beta1.IGetColumnSpecRequest, callback: google.cloud.automl.v1beta1.AutoMl.GetColumnSpecCallback): void;
+
+ /**
+ * Calls GetColumnSpec.
+ * @param request GetColumnSpecRequest message or plain object
+ * @returns Promise
+ */
+ public getColumnSpec(request: google.cloud.automl.v1beta1.IGetColumnSpecRequest): Promise;
+
+ /**
+ * Calls ListColumnSpecs.
+ * @param request ListColumnSpecsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListColumnSpecsResponse
+ */
+ public listColumnSpecs(request: google.cloud.automl.v1beta1.IListColumnSpecsRequest, callback: google.cloud.automl.v1beta1.AutoMl.ListColumnSpecsCallback): void;
+
+ /**
+ * Calls ListColumnSpecs.
+ * @param request ListColumnSpecsRequest message or plain object
+ * @returns Promise
+ */
+ public listColumnSpecs(request: google.cloud.automl.v1beta1.IListColumnSpecsRequest): Promise;
+
+ /**
+ * Calls UpdateColumnSpec.
+ * @param request UpdateColumnSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ColumnSpec
+ */
+ public updateColumnSpec(request: google.cloud.automl.v1beta1.IUpdateColumnSpecRequest, callback: google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpecCallback): void;
+
+ /**
+ * Calls UpdateColumnSpec.
+ * @param request UpdateColumnSpecRequest message or plain object
+ * @returns Promise
+ */
+ public updateColumnSpec(request: google.cloud.automl.v1beta1.IUpdateColumnSpecRequest): Promise;
+
+ /**
+ * Calls CreateModel.
+ * @param request CreateModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createModel(request: google.cloud.automl.v1beta1.ICreateModelRequest, callback: google.cloud.automl.v1beta1.AutoMl.CreateModelCallback): void;
+
+ /**
+ * Calls CreateModel.
+ * @param request CreateModelRequest message or plain object
+ * @returns Promise
+ */
+ public createModel(request: google.cloud.automl.v1beta1.ICreateModelRequest): Promise;
+
+ /**
+ * Calls GetModel.
+ * @param request GetModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Model
+ */
+ public getModel(request: google.cloud.automl.v1beta1.IGetModelRequest, callback: google.cloud.automl.v1beta1.AutoMl.GetModelCallback): void;
+
+ /**
+ * Calls GetModel.
+ * @param request GetModelRequest message or plain object
+ * @returns Promise
+ */
+ public getModel(request: google.cloud.automl.v1beta1.IGetModelRequest): Promise;
+
+ /**
+ * Calls ListModels.
+ * @param request ListModelsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListModelsResponse
+ */
+ public listModels(request: google.cloud.automl.v1beta1.IListModelsRequest, callback: google.cloud.automl.v1beta1.AutoMl.ListModelsCallback): void;
+
+ /**
+ * Calls ListModels.
+ * @param request ListModelsRequest message or plain object
+ * @returns Promise
+ */
+ public listModels(request: google.cloud.automl.v1beta1.IListModelsRequest): Promise;
+
+ /**
+ * Calls DeleteModel.
+ * @param request DeleteModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteModel(request: google.cloud.automl.v1beta1.IDeleteModelRequest, callback: google.cloud.automl.v1beta1.AutoMl.DeleteModelCallback): void;
+
+ /**
+ * Calls DeleteModel.
+ * @param request DeleteModelRequest message or plain object
+ * @returns Promise
+ */
+ public deleteModel(request: google.cloud.automl.v1beta1.IDeleteModelRequest): Promise;
+
+ /**
+ * Calls DeployModel.
+ * @param request DeployModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deployModel(request: google.cloud.automl.v1beta1.IDeployModelRequest, callback: google.cloud.automl.v1beta1.AutoMl.DeployModelCallback): void;
+
+ /**
+ * Calls DeployModel.
+ * @param request DeployModelRequest message or plain object
+ * @returns Promise
+ */
+ public deployModel(request: google.cloud.automl.v1beta1.IDeployModelRequest): Promise;
+
+ /**
+ * Calls UndeployModel.
+ * @param request UndeployModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public undeployModel(request: google.cloud.automl.v1beta1.IUndeployModelRequest, callback: google.cloud.automl.v1beta1.AutoMl.UndeployModelCallback): void;
+
+ /**
+ * Calls UndeployModel.
+ * @param request UndeployModelRequest message or plain object
+ * @returns Promise
+ */
+ public undeployModel(request: google.cloud.automl.v1beta1.IUndeployModelRequest): Promise;
+
+ /**
+ * Calls ExportModel.
+ * @param request ExportModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportModel(request: google.cloud.automl.v1beta1.IExportModelRequest, callback: google.cloud.automl.v1beta1.AutoMl.ExportModelCallback): void;
+
+ /**
+ * Calls ExportModel.
+ * @param request ExportModelRequest message or plain object
+ * @returns Promise
+ */
+ public exportModel(request: google.cloud.automl.v1beta1.IExportModelRequest): Promise;
+
+ /**
+ * Calls ExportEvaluatedExamples.
+ * @param request ExportEvaluatedExamplesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportEvaluatedExamples(request: google.cloud.automl.v1beta1.IExportEvaluatedExamplesRequest, callback: google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamplesCallback): void;
+
+ /**
+ * Calls ExportEvaluatedExamples.
+ * @param request ExportEvaluatedExamplesRequest message or plain object
+ * @returns Promise
+ */
+ public exportEvaluatedExamples(request: google.cloud.automl.v1beta1.IExportEvaluatedExamplesRequest): Promise;
+
+ /**
+ * Calls GetModelEvaluation.
+ * @param request GetModelEvaluationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ModelEvaluation
+ */
+ public getModelEvaluation(request: google.cloud.automl.v1beta1.IGetModelEvaluationRequest, callback: google.cloud.automl.v1beta1.AutoMl.GetModelEvaluationCallback): void;
+
+ /**
+ * Calls GetModelEvaluation.
+ * @param request GetModelEvaluationRequest message or plain object
+ * @returns Promise
+ */
+ public getModelEvaluation(request: google.cloud.automl.v1beta1.IGetModelEvaluationRequest): Promise;
+
+ /**
+ * Calls ListModelEvaluations.
+ * @param request ListModelEvaluationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse
+ */
+ public listModelEvaluations(request: google.cloud.automl.v1beta1.IListModelEvaluationsRequest, callback: google.cloud.automl.v1beta1.AutoMl.ListModelEvaluationsCallback): void;
+
+ /**
+ * Calls ListModelEvaluations.
+ * @param request ListModelEvaluationsRequest message or plain object
+ * @returns Promise
+ */
+ public listModelEvaluations(request: google.cloud.automl.v1beta1.IListModelEvaluationsRequest): Promise;
+ }
+
+ namespace AutoMl {
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|createDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type CreateDatasetCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|getDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type GetDatasetCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|listDatasets}.
+ * @param error Error, if any
+ * @param [response] ListDatasetsResponse
+ */
+ type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ListDatasetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|updateDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|deleteDataset}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|importData}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|exportData}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|getAnnotationSpec}.
+ * @param error Error, if any
+ * @param [response] AnnotationSpec
+ */
+ type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.AnnotationSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|getTableSpec}.
+ * @param error Error, if any
+ * @param [response] TableSpec
+ */
+ type GetTableSpecCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.TableSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|listTableSpecs}.
+ * @param error Error, if any
+ * @param [response] ListTableSpecsResponse
+ */
+ type ListTableSpecsCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ListTableSpecsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|updateTableSpec}.
+ * @param error Error, if any
+ * @param [response] TableSpec
+ */
+ type UpdateTableSpecCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.TableSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|getColumnSpec}.
+ * @param error Error, if any
+ * @param [response] ColumnSpec
+ */
+ type GetColumnSpecCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ColumnSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|listColumnSpecs}.
+ * @param error Error, if any
+ * @param [response] ListColumnSpecsResponse
+ */
+ type ListColumnSpecsCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ListColumnSpecsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|updateColumnSpec}.
+ * @param error Error, if any
+ * @param [response] ColumnSpec
+ */
+ type UpdateColumnSpecCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ColumnSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|createModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|getModel}.
+ * @param error Error, if any
+ * @param [response] Model
+ */
+ type GetModelCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.Model) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|listModels}.
+ * @param error Error, if any
+ * @param [response] ListModelsResponse
+ */
+ type ListModelsCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ListModelsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|deleteModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|deployModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|undeployModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|exportModel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|exportEvaluatedExamples}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportEvaluatedExamplesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|getModelEvaluation}.
+ * @param error Error, if any
+ * @param [response] ModelEvaluation
+ */
+ type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ModelEvaluation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.automl.v1beta1.AutoMl|listModelEvaluations}.
+ * @param error Error, if any
+ * @param [response] ListModelEvaluationsResponse
+ */
+ type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.automl.v1beta1.ListModelEvaluationsResponse) => void;
+ }
+
+ /** Properties of a CreateDatasetRequest. */
+ interface ICreateDatasetRequest {
+
+ /** CreateDatasetRequest parent */
+ parent?: (string|null);
+
+ /** CreateDatasetRequest dataset */
+ dataset?: (google.cloud.automl.v1beta1.IDataset|null);
+ }
+
+ /** Represents a CreateDatasetRequest. */
+ class CreateDatasetRequest implements ICreateDatasetRequest {
+
+ /**
+ * Constructs a new CreateDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ICreateDatasetRequest);
+
+ /** CreateDatasetRequest parent. */
+ public parent: string;
+
+ /** CreateDatasetRequest dataset. */
+ public dataset?: (google.cloud.automl.v1beta1.IDataset|null);
+
+ /**
+ * Creates a new CreateDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ICreateDatasetRequest): google.cloud.automl.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.CreateDatasetRequest.verify|verify} messages.
+ * @param message CreateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.CreateDatasetRequest.verify|verify} messages.
+ * @param message CreateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Verifies a CreateDatasetRequest 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 CreateDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.CreateDatasetRequest;
+
+ /**
+ * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified.
+ * @param message CreateDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDatasetRequest. */
+ interface IGetDatasetRequest {
+
+ /** GetDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDatasetRequest. */
+ class GetDatasetRequest implements IGetDatasetRequest {
+
+ /**
+ * Constructs a new GetDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGetDatasetRequest);
+
+ /** GetDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGetDatasetRequest): google.cloud.automl.v1beta1.GetDatasetRequest;
+
+ /**
+ * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GetDatasetRequest;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GetDatasetRequest;
+
+ /**
+ * Verifies a GetDatasetRequest 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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GetDatasetRequest;
+
+ /**
+ * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified.
+ * @param message GetDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsRequest. */
+ interface IListDatasetsRequest {
+
+ /** ListDatasetsRequest parent */
+ parent?: (string|null);
+
+ /** ListDatasetsRequest filter */
+ filter?: (string|null);
+
+ /** ListDatasetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDatasetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListDatasetsRequest. */
+ class ListDatasetsRequest implements IListDatasetsRequest {
+
+ /**
+ * Constructs a new ListDatasetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListDatasetsRequest);
+
+ /** ListDatasetsRequest parent. */
+ public parent: string;
+
+ /** ListDatasetsRequest filter. */
+ public filter: string;
+
+ /** ListDatasetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDatasetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListDatasetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListDatasetsRequest): google.cloud.automl.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Verifies a ListDatasetsRequest 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 ListDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListDatasetsRequest;
+
+ /**
+ * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified.
+ * @param message ListDatasetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsResponse. */
+ interface IListDatasetsResponse {
+
+ /** ListDatasetsResponse datasets */
+ datasets?: (google.cloud.automl.v1beta1.IDataset[]|null);
+
+ /** ListDatasetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDatasetsResponse. */
+ class ListDatasetsResponse implements IListDatasetsResponse {
+
+ /**
+ * Constructs a new ListDatasetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListDatasetsResponse);
+
+ /** ListDatasetsResponse datasets. */
+ public datasets: google.cloud.automl.v1beta1.IDataset[];
+
+ /** ListDatasetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDatasetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListDatasetsResponse): google.cloud.automl.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.automl.v1beta1.ListDatasetsResponse.verify|verify} messages.
+ * @param message ListDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListDatasetsResponse.verify|verify} messages.
+ * @param message ListDatasetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Verifies a ListDatasetsResponse 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 ListDatasetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListDatasetsResponse;
+
+ /**
+ * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified.
+ * @param message ListDatasetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDatasetRequest. */
+ interface IUpdateDatasetRequest {
+
+ /** UpdateDatasetRequest dataset */
+ dataset?: (google.cloud.automl.v1beta1.IDataset|null);
+
+ /** UpdateDatasetRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateDatasetRequest. */
+ class UpdateDatasetRequest implements IUpdateDatasetRequest {
+
+ /**
+ * Constructs a new UpdateDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IUpdateDatasetRequest);
+
+ /** UpdateDatasetRequest dataset. */
+ public dataset?: (google.cloud.automl.v1beta1.IDataset|null);
+
+ /** UpdateDatasetRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IUpdateDatasetRequest): google.cloud.automl.v1beta1.UpdateDatasetRequest;
+
+ /**
+ * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.UpdateDatasetRequest.verify|verify} messages.
+ * @param message UpdateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.UpdateDatasetRequest.verify|verify} messages.
+ * @param message UpdateDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.UpdateDatasetRequest;
+
+ /**
+ * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.UpdateDatasetRequest;
+
+ /**
+ * Verifies an UpdateDatasetRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.UpdateDatasetRequest;
+
+ /**
+ * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified.
+ * @param message UpdateDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDatasetRequest. */
+ interface IDeleteDatasetRequest {
+
+ /** DeleteDatasetRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteDatasetRequest. */
+ class DeleteDatasetRequest implements IDeleteDatasetRequest {
+
+ /**
+ * Constructs a new DeleteDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDeleteDatasetRequest);
+
+ /** DeleteDatasetRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDeleteDatasetRequest): google.cloud.automl.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Verifies a DeleteDatasetRequest 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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DeleteDatasetRequest;
+
+ /**
+ * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified.
+ * @param message DeleteDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDataRequest. */
+ interface IImportDataRequest {
+
+ /** ImportDataRequest name */
+ name?: (string|null);
+
+ /** ImportDataRequest inputConfig */
+ inputConfig?: (google.cloud.automl.v1beta1.IInputConfig|null);
+ }
+
+ /** Represents an ImportDataRequest. */
+ class ImportDataRequest implements IImportDataRequest {
+
+ /**
+ * Constructs a new ImportDataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IImportDataRequest);
+
+ /** ImportDataRequest name. */
+ public name: string;
+
+ /** ImportDataRequest inputConfig. */
+ public inputConfig?: (google.cloud.automl.v1beta1.IInputConfig|null);
+
+ /**
+ * Creates a new ImportDataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDataRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IImportDataRequest): google.cloud.automl.v1beta1.ImportDataRequest;
+
+ /**
+ * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ImportDataRequest.verify|verify} messages.
+ * @param message ImportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ImportDataRequest.verify|verify} messages.
+ * @param message ImportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ImportDataRequest;
+
+ /**
+ * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ImportDataRequest;
+
+ /**
+ * Verifies an ImportDataRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ImportDataRequest;
+
+ /**
+ * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified.
+ * @param message ImportDataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataRequest. */
+ interface IExportDataRequest {
+
+ /** ExportDataRequest name */
+ name?: (string|null);
+
+ /** ExportDataRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1beta1.IOutputConfig|null);
+ }
+
+ /** Represents an ExportDataRequest. */
+ class ExportDataRequest implements IExportDataRequest {
+
+ /**
+ * Constructs a new ExportDataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportDataRequest);
+
+ /** ExportDataRequest name. */
+ public name: string;
+
+ /** ExportDataRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1beta1.IOutputConfig|null);
+
+ /**
+ * Creates a new ExportDataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportDataRequest): google.cloud.automl.v1beta1.ExportDataRequest;
+
+ /**
+ * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportDataRequest.verify|verify} messages.
+ * @param message ExportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportDataRequest.verify|verify} messages.
+ * @param message ExportDataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportDataRequest;
+
+ /**
+ * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportDataRequest;
+
+ /**
+ * Verifies an ExportDataRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportDataRequest;
+
+ /**
+ * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified.
+ * @param message ExportDataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAnnotationSpecRequest. */
+ interface IGetAnnotationSpecRequest {
+
+ /** GetAnnotationSpecRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAnnotationSpecRequest. */
+ class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest {
+
+ /**
+ * Constructs a new GetAnnotationSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGetAnnotationSpecRequest);
+
+ /** GetAnnotationSpecRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAnnotationSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAnnotationSpecRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGetAnnotationSpecRequest): google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+
+ /**
+ * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.GetAnnotationSpecRequest.verify|verify} messages.
+ * @param message GetAnnotationSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GetAnnotationSpecRequest.verify|verify} messages.
+ * @param message GetAnnotationSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAnnotationSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+
+ /**
+ * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAnnotationSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+
+ /**
+ * Verifies a GetAnnotationSpecRequest 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 GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAnnotationSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+
+ /**
+ * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified.
+ * @param message GetAnnotationSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAnnotationSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAnnotationSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetTableSpecRequest. */
+ interface IGetTableSpecRequest {
+
+ /** GetTableSpecRequest name */
+ name?: (string|null);
+
+ /** GetTableSpecRequest fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a GetTableSpecRequest. */
+ class GetTableSpecRequest implements IGetTableSpecRequest {
+
+ /**
+ * Constructs a new GetTableSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGetTableSpecRequest);
+
+ /** GetTableSpecRequest name. */
+ public name: string;
+
+ /** GetTableSpecRequest fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new GetTableSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTableSpecRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGetTableSpecRequest): google.cloud.automl.v1beta1.GetTableSpecRequest;
+
+ /**
+ * Encodes the specified GetTableSpecRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.GetTableSpecRequest.verify|verify} messages.
+ * @param message GetTableSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGetTableSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTableSpecRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GetTableSpecRequest.verify|verify} messages.
+ * @param message GetTableSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGetTableSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTableSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTableSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GetTableSpecRequest;
+
+ /**
+ * Decodes a GetTableSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTableSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GetTableSpecRequest;
+
+ /**
+ * Verifies a GetTableSpecRequest 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 GetTableSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTableSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GetTableSpecRequest;
+
+ /**
+ * Creates a plain object from a GetTableSpecRequest message. Also converts values to other types if specified.
+ * @param message GetTableSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GetTableSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTableSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTableSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTableSpecsRequest. */
+ interface IListTableSpecsRequest {
+
+ /** ListTableSpecsRequest parent */
+ parent?: (string|null);
+
+ /** ListTableSpecsRequest fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListTableSpecsRequest filter */
+ filter?: (string|null);
+
+ /** ListTableSpecsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListTableSpecsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListTableSpecsRequest. */
+ class ListTableSpecsRequest implements IListTableSpecsRequest {
+
+ /**
+ * Constructs a new ListTableSpecsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListTableSpecsRequest);
+
+ /** ListTableSpecsRequest parent. */
+ public parent: string;
+
+ /** ListTableSpecsRequest fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListTableSpecsRequest filter. */
+ public filter: string;
+
+ /** ListTableSpecsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListTableSpecsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListTableSpecsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTableSpecsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListTableSpecsRequest): google.cloud.automl.v1beta1.ListTableSpecsRequest;
+
+ /**
+ * Encodes the specified ListTableSpecsRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ListTableSpecsRequest.verify|verify} messages.
+ * @param message ListTableSpecsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListTableSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTableSpecsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListTableSpecsRequest.verify|verify} messages.
+ * @param message ListTableSpecsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListTableSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTableSpecsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTableSpecsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListTableSpecsRequest;
+
+ /**
+ * Decodes a ListTableSpecsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTableSpecsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListTableSpecsRequest;
+
+ /**
+ * Verifies a ListTableSpecsRequest 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 ListTableSpecsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTableSpecsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListTableSpecsRequest;
+
+ /**
+ * Creates a plain object from a ListTableSpecsRequest message. Also converts values to other types if specified.
+ * @param message ListTableSpecsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListTableSpecsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTableSpecsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTableSpecsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTableSpecsResponse. */
+ interface IListTableSpecsResponse {
+
+ /** ListTableSpecsResponse tableSpecs */
+ tableSpecs?: (google.cloud.automl.v1beta1.ITableSpec[]|null);
+
+ /** ListTableSpecsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListTableSpecsResponse. */
+ class ListTableSpecsResponse implements IListTableSpecsResponse {
+
+ /**
+ * Constructs a new ListTableSpecsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListTableSpecsResponse);
+
+ /** ListTableSpecsResponse tableSpecs. */
+ public tableSpecs: google.cloud.automl.v1beta1.ITableSpec[];
+
+ /** ListTableSpecsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListTableSpecsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTableSpecsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListTableSpecsResponse): google.cloud.automl.v1beta1.ListTableSpecsResponse;
+
+ /**
+ * Encodes the specified ListTableSpecsResponse message. Does not implicitly {@link google.cloud.automl.v1beta1.ListTableSpecsResponse.verify|verify} messages.
+ * @param message ListTableSpecsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListTableSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTableSpecsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListTableSpecsResponse.verify|verify} messages.
+ * @param message ListTableSpecsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListTableSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTableSpecsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTableSpecsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListTableSpecsResponse;
+
+ /**
+ * Decodes a ListTableSpecsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTableSpecsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListTableSpecsResponse;
+
+ /**
+ * Verifies a ListTableSpecsResponse 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 ListTableSpecsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTableSpecsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListTableSpecsResponse;
+
+ /**
+ * Creates a plain object from a ListTableSpecsResponse message. Also converts values to other types if specified.
+ * @param message ListTableSpecsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListTableSpecsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTableSpecsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTableSpecsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateTableSpecRequest. */
+ interface IUpdateTableSpecRequest {
+
+ /** UpdateTableSpecRequest tableSpec */
+ tableSpec?: (google.cloud.automl.v1beta1.ITableSpec|null);
+
+ /** UpdateTableSpecRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateTableSpecRequest. */
+ class UpdateTableSpecRequest implements IUpdateTableSpecRequest {
+
+ /**
+ * Constructs a new UpdateTableSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IUpdateTableSpecRequest);
+
+ /** UpdateTableSpecRequest tableSpec. */
+ public tableSpec?: (google.cloud.automl.v1beta1.ITableSpec|null);
+
+ /** UpdateTableSpecRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateTableSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateTableSpecRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IUpdateTableSpecRequest): google.cloud.automl.v1beta1.UpdateTableSpecRequest;
+
+ /**
+ * Encodes the specified UpdateTableSpecRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.UpdateTableSpecRequest.verify|verify} messages.
+ * @param message UpdateTableSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IUpdateTableSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateTableSpecRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.UpdateTableSpecRequest.verify|verify} messages.
+ * @param message UpdateTableSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IUpdateTableSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateTableSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateTableSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.UpdateTableSpecRequest;
+
+ /**
+ * Decodes an UpdateTableSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateTableSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.UpdateTableSpecRequest;
+
+ /**
+ * Verifies an UpdateTableSpecRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateTableSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateTableSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.UpdateTableSpecRequest;
+
+ /**
+ * Creates a plain object from an UpdateTableSpecRequest message. Also converts values to other types if specified.
+ * @param message UpdateTableSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.UpdateTableSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateTableSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateTableSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetColumnSpecRequest. */
+ interface IGetColumnSpecRequest {
+
+ /** GetColumnSpecRequest name */
+ name?: (string|null);
+
+ /** GetColumnSpecRequest fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a GetColumnSpecRequest. */
+ class GetColumnSpecRequest implements IGetColumnSpecRequest {
+
+ /**
+ * Constructs a new GetColumnSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGetColumnSpecRequest);
+
+ /** GetColumnSpecRequest name. */
+ public name: string;
+
+ /** GetColumnSpecRequest fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new GetColumnSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetColumnSpecRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGetColumnSpecRequest): google.cloud.automl.v1beta1.GetColumnSpecRequest;
+
+ /**
+ * Encodes the specified GetColumnSpecRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.GetColumnSpecRequest.verify|verify} messages.
+ * @param message GetColumnSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGetColumnSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetColumnSpecRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GetColumnSpecRequest.verify|verify} messages.
+ * @param message GetColumnSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGetColumnSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetColumnSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetColumnSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GetColumnSpecRequest;
+
+ /**
+ * Decodes a GetColumnSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetColumnSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GetColumnSpecRequest;
+
+ /**
+ * Verifies a GetColumnSpecRequest 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 GetColumnSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetColumnSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GetColumnSpecRequest;
+
+ /**
+ * Creates a plain object from a GetColumnSpecRequest message. Also converts values to other types if specified.
+ * @param message GetColumnSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GetColumnSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetColumnSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetColumnSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListColumnSpecsRequest. */
+ interface IListColumnSpecsRequest {
+
+ /** ListColumnSpecsRequest parent */
+ parent?: (string|null);
+
+ /** ListColumnSpecsRequest fieldMask */
+ fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListColumnSpecsRequest filter */
+ filter?: (string|null);
+
+ /** ListColumnSpecsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListColumnSpecsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListColumnSpecsRequest. */
+ class ListColumnSpecsRequest implements IListColumnSpecsRequest {
+
+ /**
+ * Constructs a new ListColumnSpecsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListColumnSpecsRequest);
+
+ /** ListColumnSpecsRequest parent. */
+ public parent: string;
+
+ /** ListColumnSpecsRequest fieldMask. */
+ public fieldMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListColumnSpecsRequest filter. */
+ public filter: string;
+
+ /** ListColumnSpecsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListColumnSpecsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListColumnSpecsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListColumnSpecsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListColumnSpecsRequest): google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+
+ /**
+ * Encodes the specified ListColumnSpecsRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ListColumnSpecsRequest.verify|verify} messages.
+ * @param message ListColumnSpecsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListColumnSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListColumnSpecsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListColumnSpecsRequest.verify|verify} messages.
+ * @param message ListColumnSpecsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListColumnSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListColumnSpecsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListColumnSpecsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+
+ /**
+ * Decodes a ListColumnSpecsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListColumnSpecsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+
+ /**
+ * Verifies a ListColumnSpecsRequest 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 ListColumnSpecsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListColumnSpecsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+
+ /**
+ * Creates a plain object from a ListColumnSpecsRequest message. Also converts values to other types if specified.
+ * @param message ListColumnSpecsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListColumnSpecsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListColumnSpecsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListColumnSpecsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListColumnSpecsResponse. */
+ interface IListColumnSpecsResponse {
+
+ /** ListColumnSpecsResponse columnSpecs */
+ columnSpecs?: (google.cloud.automl.v1beta1.IColumnSpec[]|null);
+
+ /** ListColumnSpecsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListColumnSpecsResponse. */
+ class ListColumnSpecsResponse implements IListColumnSpecsResponse {
+
+ /**
+ * Constructs a new ListColumnSpecsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListColumnSpecsResponse);
+
+ /** ListColumnSpecsResponse columnSpecs. */
+ public columnSpecs: google.cloud.automl.v1beta1.IColumnSpec[];
+
+ /** ListColumnSpecsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListColumnSpecsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListColumnSpecsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListColumnSpecsResponse): google.cloud.automl.v1beta1.ListColumnSpecsResponse;
+
+ /**
+ * Encodes the specified ListColumnSpecsResponse message. Does not implicitly {@link google.cloud.automl.v1beta1.ListColumnSpecsResponse.verify|verify} messages.
+ * @param message ListColumnSpecsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListColumnSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListColumnSpecsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListColumnSpecsResponse.verify|verify} messages.
+ * @param message ListColumnSpecsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListColumnSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListColumnSpecsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListColumnSpecsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListColumnSpecsResponse;
+
+ /**
+ * Decodes a ListColumnSpecsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListColumnSpecsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListColumnSpecsResponse;
+
+ /**
+ * Verifies a ListColumnSpecsResponse 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 ListColumnSpecsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListColumnSpecsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListColumnSpecsResponse;
+
+ /**
+ * Creates a plain object from a ListColumnSpecsResponse message. Also converts values to other types if specified.
+ * @param message ListColumnSpecsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListColumnSpecsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListColumnSpecsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListColumnSpecsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateColumnSpecRequest. */
+ interface IUpdateColumnSpecRequest {
+
+ /** UpdateColumnSpecRequest columnSpec */
+ columnSpec?: (google.cloud.automl.v1beta1.IColumnSpec|null);
+
+ /** UpdateColumnSpecRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateColumnSpecRequest. */
+ class UpdateColumnSpecRequest implements IUpdateColumnSpecRequest {
+
+ /**
+ * Constructs a new UpdateColumnSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IUpdateColumnSpecRequest);
+
+ /** UpdateColumnSpecRequest columnSpec. */
+ public columnSpec?: (google.cloud.automl.v1beta1.IColumnSpec|null);
+
+ /** UpdateColumnSpecRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateColumnSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateColumnSpecRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IUpdateColumnSpecRequest): google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+
+ /**
+ * Encodes the specified UpdateColumnSpecRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.UpdateColumnSpecRequest.verify|verify} messages.
+ * @param message UpdateColumnSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IUpdateColumnSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateColumnSpecRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.UpdateColumnSpecRequest.verify|verify} messages.
+ * @param message UpdateColumnSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IUpdateColumnSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateColumnSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateColumnSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+
+ /**
+ * Decodes an UpdateColumnSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateColumnSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+
+ /**
+ * Verifies an UpdateColumnSpecRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateColumnSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateColumnSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+
+ /**
+ * Creates a plain object from an UpdateColumnSpecRequest message. Also converts values to other types if specified.
+ * @param message UpdateColumnSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.UpdateColumnSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateColumnSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateColumnSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateModelRequest. */
+ interface ICreateModelRequest {
+
+ /** CreateModelRequest parent */
+ parent?: (string|null);
+
+ /** CreateModelRequest model */
+ model?: (google.cloud.automl.v1beta1.IModel|null);
+ }
+
+ /** Represents a CreateModelRequest. */
+ class CreateModelRequest implements ICreateModelRequest {
+
+ /**
+ * Constructs a new CreateModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ICreateModelRequest);
+
+ /** CreateModelRequest parent. */
+ public parent: string;
+
+ /** CreateModelRequest model. */
+ public model?: (google.cloud.automl.v1beta1.IModel|null);
+
+ /**
+ * Creates a new CreateModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ICreateModelRequest): google.cloud.automl.v1beta1.CreateModelRequest;
+
+ /**
+ * Encodes the specified CreateModelRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.CreateModelRequest.verify|verify} messages.
+ * @param message CreateModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ICreateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.CreateModelRequest.verify|verify} messages.
+ * @param message CreateModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ICreateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.CreateModelRequest;
+
+ /**
+ * Decodes a CreateModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.CreateModelRequest;
+
+ /**
+ * Verifies a CreateModelRequest 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 CreateModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.CreateModelRequest;
+
+ /**
+ * Creates a plain object from a CreateModelRequest message. Also converts values to other types if specified.
+ * @param message CreateModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.CreateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetModelRequest. */
+ interface IGetModelRequest {
+
+ /** GetModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetModelRequest. */
+ class GetModelRequest implements IGetModelRequest {
+
+ /**
+ * Constructs a new GetModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGetModelRequest);
+
+ /** GetModelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGetModelRequest): google.cloud.automl.v1beta1.GetModelRequest;
+
+ /**
+ * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.GetModelRequest.verify|verify} messages.
+ * @param message GetModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GetModelRequest.verify|verify} messages.
+ * @param message GetModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GetModelRequest;
+
+ /**
+ * Decodes a GetModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GetModelRequest;
+
+ /**
+ * Verifies a GetModelRequest 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 GetModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GetModelRequest;
+
+ /**
+ * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified.
+ * @param message GetModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelsRequest. */
+ interface IListModelsRequest {
+
+ /** ListModelsRequest parent */
+ parent?: (string|null);
+
+ /** ListModelsRequest filter */
+ filter?: (string|null);
+
+ /** ListModelsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListModelsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListModelsRequest. */
+ class ListModelsRequest implements IListModelsRequest {
+
+ /**
+ * Constructs a new ListModelsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListModelsRequest);
+
+ /** ListModelsRequest parent. */
+ public parent: string;
+
+ /** ListModelsRequest filter. */
+ public filter: string;
+
+ /** ListModelsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListModelsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListModelsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListModelsRequest): google.cloud.automl.v1beta1.ListModelsRequest;
+
+ /**
+ * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelsRequest.verify|verify} messages.
+ * @param message ListModelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelsRequest.verify|verify} messages.
+ * @param message ListModelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListModelsRequest;
+
+ /**
+ * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListModelsRequest;
+
+ /**
+ * Verifies a ListModelsRequest 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 ListModelsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListModelsRequest;
+
+ /**
+ * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified.
+ * @param message ListModelsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelsResponse. */
+ interface IListModelsResponse {
+
+ /** ListModelsResponse model */
+ model?: (google.cloud.automl.v1beta1.IModel[]|null);
+
+ /** ListModelsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListModelsResponse. */
+ class ListModelsResponse implements IListModelsResponse {
+
+ /**
+ * Constructs a new ListModelsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListModelsResponse);
+
+ /** ListModelsResponse model. */
+ public model: google.cloud.automl.v1beta1.IModel[];
+
+ /** ListModelsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListModelsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListModelsResponse): google.cloud.automl.v1beta1.ListModelsResponse;
+
+ /**
+ * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelsResponse.verify|verify} messages.
+ * @param message ListModelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelsResponse.verify|verify} messages.
+ * @param message ListModelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListModelsResponse;
+
+ /**
+ * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListModelsResponse;
+
+ /**
+ * Verifies a ListModelsResponse 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 ListModelsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListModelsResponse;
+
+ /**
+ * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified.
+ * @param message ListModelsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteModelRequest. */
+ interface IDeleteModelRequest {
+
+ /** DeleteModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteModelRequest. */
+ class DeleteModelRequest implements IDeleteModelRequest {
+
+ /**
+ * Constructs a new DeleteModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDeleteModelRequest);
+
+ /** DeleteModelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDeleteModelRequest): google.cloud.automl.v1beta1.DeleteModelRequest;
+
+ /**
+ * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.DeleteModelRequest.verify|verify} messages.
+ * @param message DeleteModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DeleteModelRequest.verify|verify} messages.
+ * @param message DeleteModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DeleteModelRequest;
+
+ /**
+ * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DeleteModelRequest;
+
+ /**
+ * Verifies a DeleteModelRequest 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DeleteModelRequest;
+
+ /**
+ * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified.
+ * @param message DeleteModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeployModelRequest. */
+ interface IDeployModelRequest {
+
+ /** DeployModelRequest imageObjectDetectionModelDeploymentMetadata */
+ imageObjectDetectionModelDeploymentMetadata?: (google.cloud.automl.v1beta1.IImageObjectDetectionModelDeploymentMetadata|null);
+
+ /** DeployModelRequest imageClassificationModelDeploymentMetadata */
+ imageClassificationModelDeploymentMetadata?: (google.cloud.automl.v1beta1.IImageClassificationModelDeploymentMetadata|null);
+
+ /** DeployModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeployModelRequest. */
+ class DeployModelRequest implements IDeployModelRequest {
+
+ /**
+ * Constructs a new DeployModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IDeployModelRequest);
+
+ /** DeployModelRequest imageObjectDetectionModelDeploymentMetadata. */
+ public imageObjectDetectionModelDeploymentMetadata?: (google.cloud.automl.v1beta1.IImageObjectDetectionModelDeploymentMetadata|null);
+
+ /** DeployModelRequest imageClassificationModelDeploymentMetadata. */
+ public imageClassificationModelDeploymentMetadata?: (google.cloud.automl.v1beta1.IImageClassificationModelDeploymentMetadata|null);
+
+ /** DeployModelRequest name. */
+ public name: string;
+
+ /** DeployModelRequest modelDeploymentMetadata. */
+ public modelDeploymentMetadata?: ("imageObjectDetectionModelDeploymentMetadata"|"imageClassificationModelDeploymentMetadata");
+
+ /**
+ * Creates a new DeployModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeployModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IDeployModelRequest): google.cloud.automl.v1beta1.DeployModelRequest;
+
+ /**
+ * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.DeployModelRequest.verify|verify} messages.
+ * @param message DeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.DeployModelRequest.verify|verify} messages.
+ * @param message DeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeployModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.DeployModelRequest;
+
+ /**
+ * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.DeployModelRequest;
+
+ /**
+ * Verifies a DeployModelRequest 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 DeployModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeployModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.DeployModelRequest;
+
+ /**
+ * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified.
+ * @param message DeployModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeployModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeployModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeployModelRequest. */
+ interface IUndeployModelRequest {
+
+ /** UndeployModelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an UndeployModelRequest. */
+ class UndeployModelRequest implements IUndeployModelRequest {
+
+ /**
+ * Constructs a new UndeployModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IUndeployModelRequest);
+
+ /** UndeployModelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new UndeployModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeployModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IUndeployModelRequest): google.cloud.automl.v1beta1.UndeployModelRequest;
+
+ /**
+ * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.UndeployModelRequest.verify|verify} messages.
+ * @param message UndeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.UndeployModelRequest.verify|verify} messages.
+ * @param message UndeployModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeployModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.UndeployModelRequest;
+
+ /**
+ * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeployModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.UndeployModelRequest;
+
+ /**
+ * Verifies an UndeployModelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeployModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.UndeployModelRequest;
+
+ /**
+ * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified.
+ * @param message UndeployModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeployModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeployModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportModelRequest. */
+ interface IExportModelRequest {
+
+ /** ExportModelRequest name */
+ name?: (string|null);
+
+ /** ExportModelRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1beta1.IModelExportOutputConfig|null);
+ }
+
+ /** Represents an ExportModelRequest. */
+ class ExportModelRequest implements IExportModelRequest {
+
+ /**
+ * Constructs a new ExportModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportModelRequest);
+
+ /** ExportModelRequest name. */
+ public name: string;
+
+ /** ExportModelRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1beta1.IModelExportOutputConfig|null);
+
+ /**
+ * Creates a new ExportModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportModelRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportModelRequest): google.cloud.automl.v1beta1.ExportModelRequest;
+
+ /**
+ * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportModelRequest.verify|verify} messages.
+ * @param message ExportModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportModelRequest.verify|verify} messages.
+ * @param message ExportModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportModelRequest;
+
+ /**
+ * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportModelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportModelRequest;
+
+ /**
+ * Verifies an ExportModelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportModelRequest;
+
+ /**
+ * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified.
+ * @param message ExportModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportEvaluatedExamplesRequest. */
+ interface IExportEvaluatedExamplesRequest {
+
+ /** ExportEvaluatedExamplesRequest name */
+ name?: (string|null);
+
+ /** ExportEvaluatedExamplesRequest outputConfig */
+ outputConfig?: (google.cloud.automl.v1beta1.IExportEvaluatedExamplesOutputConfig|null);
+ }
+
+ /** Represents an ExportEvaluatedExamplesRequest. */
+ class ExportEvaluatedExamplesRequest implements IExportEvaluatedExamplesRequest {
+
+ /**
+ * Constructs a new ExportEvaluatedExamplesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IExportEvaluatedExamplesRequest);
+
+ /** ExportEvaluatedExamplesRequest name. */
+ public name: string;
+
+ /** ExportEvaluatedExamplesRequest outputConfig. */
+ public outputConfig?: (google.cloud.automl.v1beta1.IExportEvaluatedExamplesOutputConfig|null);
+
+ /**
+ * Creates a new ExportEvaluatedExamplesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportEvaluatedExamplesRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IExportEvaluatedExamplesRequest): google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IExportEvaluatedExamplesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportEvaluatedExamplesRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.verify|verify} messages.
+ * @param message ExportEvaluatedExamplesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IExportEvaluatedExamplesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportEvaluatedExamplesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+
+ /**
+ * Decodes an ExportEvaluatedExamplesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportEvaluatedExamplesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+
+ /**
+ * Verifies an ExportEvaluatedExamplesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportEvaluatedExamplesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportEvaluatedExamplesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+
+ /**
+ * Creates a plain object from an ExportEvaluatedExamplesRequest message. Also converts values to other types if specified.
+ * @param message ExportEvaluatedExamplesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportEvaluatedExamplesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportEvaluatedExamplesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetModelEvaluationRequest. */
+ interface IGetModelEvaluationRequest {
+
+ /** GetModelEvaluationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetModelEvaluationRequest. */
+ class GetModelEvaluationRequest implements IGetModelEvaluationRequest {
+
+ /**
+ * Constructs a new GetModelEvaluationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IGetModelEvaluationRequest);
+
+ /** GetModelEvaluationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetModelEvaluationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetModelEvaluationRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IGetModelEvaluationRequest): google.cloud.automl.v1beta1.GetModelEvaluationRequest;
+
+ /**
+ * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.GetModelEvaluationRequest.verify|verify} messages.
+ * @param message GetModelEvaluationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.GetModelEvaluationRequest.verify|verify} messages.
+ * @param message GetModelEvaluationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetModelEvaluationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetModelEvaluationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.GetModelEvaluationRequest;
+
+ /**
+ * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetModelEvaluationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.GetModelEvaluationRequest;
+
+ /**
+ * Verifies a GetModelEvaluationRequest 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 GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetModelEvaluationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.GetModelEvaluationRequest;
+
+ /**
+ * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified.
+ * @param message GetModelEvaluationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetModelEvaluationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetModelEvaluationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelEvaluationsRequest. */
+ interface IListModelEvaluationsRequest {
+
+ /** ListModelEvaluationsRequest parent */
+ parent?: (string|null);
+
+ /** ListModelEvaluationsRequest filter */
+ filter?: (string|null);
+
+ /** ListModelEvaluationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListModelEvaluationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListModelEvaluationsRequest. */
+ class ListModelEvaluationsRequest implements IListModelEvaluationsRequest {
+
+ /**
+ * Constructs a new ListModelEvaluationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListModelEvaluationsRequest);
+
+ /** ListModelEvaluationsRequest parent. */
+ public parent: string;
+
+ /** ListModelEvaluationsRequest filter. */
+ public filter: string;
+
+ /** ListModelEvaluationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListModelEvaluationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListModelEvaluationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelEvaluationsRequest instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListModelEvaluationsRequest): google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
+
+ /**
+ * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelEvaluationsRequest.verify|verify} messages.
+ * @param message ListModelEvaluationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelEvaluationsRequest.verify|verify} messages.
+ * @param message ListModelEvaluationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelEvaluationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
+
+ /**
+ * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelEvaluationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
+
+ /**
+ * Verifies a ListModelEvaluationsRequest 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 ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelEvaluationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
+
+ /**
+ * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified.
+ * @param message ListModelEvaluationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelEvaluationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelEvaluationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelEvaluationsResponse. */
+ interface IListModelEvaluationsResponse {
+
+ /** ListModelEvaluationsResponse modelEvaluation */
+ modelEvaluation?: (google.cloud.automl.v1beta1.IModelEvaluation[]|null);
+
+ /** ListModelEvaluationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListModelEvaluationsResponse. */
+ class ListModelEvaluationsResponse implements IListModelEvaluationsResponse {
+
+ /**
+ * Constructs a new ListModelEvaluationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.IListModelEvaluationsResponse);
+
+ /** ListModelEvaluationsResponse modelEvaluation. */
+ public modelEvaluation: google.cloud.automl.v1beta1.IModelEvaluation[];
+
+ /** ListModelEvaluationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListModelEvaluationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelEvaluationsResponse instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.IListModelEvaluationsResponse): google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
+
+ /**
+ * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelEvaluationsResponse.verify|verify} messages.
+ * @param message ListModelEvaluationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.ListModelEvaluationsResponse.verify|verify} messages.
+ * @param message ListModelEvaluationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelEvaluationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
+
+ /**
+ * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelEvaluationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
+
+ /**
+ * Verifies a ListModelEvaluationsResponse 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 ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelEvaluationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
+
+ /**
+ * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified.
+ * @param message ListModelEvaluationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelEvaluationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelEvaluationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableSpec. */
+ interface ITableSpec {
+
+ /** TableSpec name */
+ name?: (string|null);
+
+ /** TableSpec timeColumnSpecId */
+ timeColumnSpecId?: (string|null);
+
+ /** TableSpec rowCount */
+ rowCount?: (number|Long|string|null);
+
+ /** TableSpec validRowCount */
+ validRowCount?: (number|Long|string|null);
+
+ /** TableSpec columnCount */
+ columnCount?: (number|Long|string|null);
+
+ /** TableSpec inputConfigs */
+ inputConfigs?: (google.cloud.automl.v1beta1.IInputConfig[]|null);
+
+ /** TableSpec etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a TableSpec. */
+ class TableSpec implements ITableSpec {
+
+ /**
+ * Constructs a new TableSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.automl.v1beta1.ITableSpec);
+
+ /** TableSpec name. */
+ public name: string;
+
+ /** TableSpec timeColumnSpecId. */
+ public timeColumnSpecId: string;
+
+ /** TableSpec rowCount. */
+ public rowCount: (number|Long|string);
+
+ /** TableSpec validRowCount. */
+ public validRowCount: (number|Long|string);
+
+ /** TableSpec columnCount. */
+ public columnCount: (number|Long|string);
+
+ /** TableSpec inputConfigs. */
+ public inputConfigs: google.cloud.automl.v1beta1.IInputConfig[];
+
+ /** TableSpec etag. */
+ public etag: string;
+
+ /**
+ * Creates a new TableSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableSpec instance
+ */
+ public static create(properties?: google.cloud.automl.v1beta1.ITableSpec): google.cloud.automl.v1beta1.TableSpec;
+
+ /**
+ * Encodes the specified TableSpec message. Does not implicitly {@link google.cloud.automl.v1beta1.TableSpec.verify|verify} messages.
+ * @param message TableSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.automl.v1beta1.ITableSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableSpec message, length delimited. Does not implicitly {@link google.cloud.automl.v1beta1.TableSpec.verify|verify} messages.
+ * @param message TableSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.automl.v1beta1.ITableSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.TableSpec;
+
+ /**
+ * Decodes a TableSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.TableSpec;
+
+ /**
+ * Verifies a TableSpec 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 TableSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.TableSpec;
+
+ /**
+ * Creates a plain object from a TableSpec message. Also converts values to other types if specified.
+ * @param message TableSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.automl.v1beta1.TableSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @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.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @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.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @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.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @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.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @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.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @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.api.Http;
+
+ /**
+ * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @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.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @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.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @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.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @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.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @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.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @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.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings 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 CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @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.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @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.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings 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 ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @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.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @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.api.Publishing;
+
+ /**
+ * Verifies a Publishing 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 Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @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.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @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.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings 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 JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @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.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @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.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings 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 CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @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.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @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.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings 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 PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @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.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @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.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings 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 PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @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.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @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.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings 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 NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @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.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @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.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings 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 DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @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.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @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.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings 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 RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @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.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @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.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings 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 GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @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.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @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.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings 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 MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @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.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @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.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning 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 LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @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.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @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.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @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.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @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.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @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.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @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.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @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.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @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.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @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.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @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.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @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.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @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.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @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.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @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.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @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.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @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.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @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.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @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.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @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.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @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.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @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.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @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.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @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.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @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.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @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.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @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.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @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.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @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.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @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.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @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.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions target */
+ target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions target. */
+ public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @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.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @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.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @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.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @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.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @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.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @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.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @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.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @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.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @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.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @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.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @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.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @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.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @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.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @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.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @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.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @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.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @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.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @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.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @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.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @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.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @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.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @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.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @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.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @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.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @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.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @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.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @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.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @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.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @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.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @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.protobuf.Duration;
+
+ /**
+ * Verifies a Duration 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 Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @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.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @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.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @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.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @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.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask 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 FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Struct. */
+ interface IStruct {
+
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
+
+ /** Represents a Struct. */
+ class Struct implements IStruct {
+
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
+
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
+
+ /**
+ * Creates a new Struct instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Struct instance
+ */
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+
+ /**
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Struct
+ * @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.protobuf.Struct;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Struct
+ * @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.protobuf.Struct;
+
+ /**
+ * Verifies a Struct 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 Struct message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Struct
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+
+ /**
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Struct to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Struct
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @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.protobuf.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @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.protobuf.Value;
+
+ /**
+ * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
+
+ /** Properties of a ListValue. */
+ interface IListValue {
+
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
+
+ /**
+ * Constructs a new ListValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IListValue);
+
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new ListValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListValue instance
+ */
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+
+ /**
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListValue
+ * @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.protobuf.ListValue;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListValue
+ * @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.protobuf.ListValue;
+
+ /**
+ * Verifies a ListValue 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 ListValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+
+ /**
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** 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 };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @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.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @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.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @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.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @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.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest 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 GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @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.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @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.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest 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 ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @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.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @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.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse 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 ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @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.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @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.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest 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 CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @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.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @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.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest 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 DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @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.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @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.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest 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 WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @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.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @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.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-automl/protos/protos.js b/packages/google-cloud-automl/protos/protos.js
new file mode 100644
index 00000000000..406b847bda6
--- /dev/null
+++ b/packages/google-cloud-automl/protos/protos.js
@@ -0,0 +1,80974 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_automl_protos || ($protobuf.roots._google_cloud_automl_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.automl = (function() {
+
+ /**
+ * Namespace automl.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var automl = {};
+
+ automl.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.automl
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.AnnotationPayload = (function() {
+
+ /**
+ * Properties of an AnnotationPayload.
+ * @memberof google.cloud.automl.v1
+ * @interface IAnnotationPayload
+ * @property {google.cloud.automl.v1.ITranslationAnnotation|null} [translation] AnnotationPayload translation
+ * @property {google.cloud.automl.v1.IClassificationAnnotation|null} [classification] AnnotationPayload classification
+ * @property {google.cloud.automl.v1.IImageObjectDetectionAnnotation|null} [imageObjectDetection] AnnotationPayload imageObjectDetection
+ * @property {google.cloud.automl.v1.ITextExtractionAnnotation|null} [textExtraction] AnnotationPayload textExtraction
+ * @property {google.cloud.automl.v1.ITextSentimentAnnotation|null} [textSentiment] AnnotationPayload textSentiment
+ * @property {string|null} [annotationSpecId] AnnotationPayload annotationSpecId
+ * @property {string|null} [displayName] AnnotationPayload displayName
+ */
+
+ /**
+ * Constructs a new AnnotationPayload.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents an AnnotationPayload.
+ * @implements IAnnotationPayload
+ * @constructor
+ * @param {google.cloud.automl.v1.IAnnotationPayload=} [properties] Properties to set
+ */
+ function AnnotationPayload(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]];
+ }
+
+ /**
+ * AnnotationPayload translation.
+ * @member {google.cloud.automl.v1.ITranslationAnnotation|null|undefined} translation
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.translation = null;
+
+ /**
+ * AnnotationPayload classification.
+ * @member {google.cloud.automl.v1.IClassificationAnnotation|null|undefined} classification
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.classification = null;
+
+ /**
+ * AnnotationPayload imageObjectDetection.
+ * @member {google.cloud.automl.v1.IImageObjectDetectionAnnotation|null|undefined} imageObjectDetection
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.imageObjectDetection = null;
+
+ /**
+ * AnnotationPayload textExtraction.
+ * @member {google.cloud.automl.v1.ITextExtractionAnnotation|null|undefined} textExtraction
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.textExtraction = null;
+
+ /**
+ * AnnotationPayload textSentiment.
+ * @member {google.cloud.automl.v1.ITextSentimentAnnotation|null|undefined} textSentiment
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.textSentiment = null;
+
+ /**
+ * AnnotationPayload annotationSpecId.
+ * @member {string} annotationSpecId
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.annotationSpecId = "";
+
+ /**
+ * AnnotationPayload displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ AnnotationPayload.prototype.displayName = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * AnnotationPayload detail.
+ * @member {"translation"|"classification"|"imageObjectDetection"|"textExtraction"|"textSentiment"|undefined} detail
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ */
+ Object.defineProperty(AnnotationPayload.prototype, "detail", {
+ get: $util.oneOfGetter($oneOfFields = ["translation", "classification", "imageObjectDetection", "textExtraction", "textSentiment"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new AnnotationPayload instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {google.cloud.automl.v1.IAnnotationPayload=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.AnnotationPayload} AnnotationPayload instance
+ */
+ AnnotationPayload.create = function create(properties) {
+ return new AnnotationPayload(properties);
+ };
+
+ /**
+ * Encodes the specified AnnotationPayload message. Does not implicitly {@link google.cloud.automl.v1.AnnotationPayload.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {google.cloud.automl.v1.IAnnotationPayload} message AnnotationPayload message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationPayload.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotationSpecId);
+ if (message.translation != null && Object.hasOwnProperty.call(message, "translation"))
+ $root.google.cloud.automl.v1.TranslationAnnotation.encode(message.translation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.classification != null && Object.hasOwnProperty.call(message, "classification"))
+ $root.google.cloud.automl.v1.ClassificationAnnotation.encode(message.classification, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.imageObjectDetection != null && Object.hasOwnProperty.call(message, "imageObjectDetection"))
+ $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation.encode(message.imageObjectDetection, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName);
+ if (message.textExtraction != null && Object.hasOwnProperty.call(message, "textExtraction"))
+ $root.google.cloud.automl.v1.TextExtractionAnnotation.encode(message.textExtraction, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.textSentiment != null && Object.hasOwnProperty.call(message, "textSentiment"))
+ $root.google.cloud.automl.v1.TextSentimentAnnotation.encode(message.textSentiment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AnnotationPayload message, length delimited. Does not implicitly {@link google.cloud.automl.v1.AnnotationPayload.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {google.cloud.automl.v1.IAnnotationPayload} message AnnotationPayload message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnnotationPayload.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AnnotationPayload message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.AnnotationPayload} AnnotationPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationPayload.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.AnnotationPayload();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.translation = $root.google.cloud.automl.v1.TranslationAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.classification = $root.google.cloud.automl.v1.ClassificationAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.imageObjectDetection = $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.textExtraction = $root.google.cloud.automl.v1.TextExtractionAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.textSentiment = $root.google.cloud.automl.v1.TextSentimentAnnotation.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.annotationSpecId = reader.string();
+ break;
+ }
+ case 5: {
+ message.displayName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AnnotationPayload message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.AnnotationPayload} AnnotationPayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnnotationPayload.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AnnotationPayload message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AnnotationPayload.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.translation != null && message.hasOwnProperty("translation")) {
+ properties.detail = 1;
+ {
+ var error = $root.google.cloud.automl.v1.TranslationAnnotation.verify(message.translation);
+ if (error)
+ return "translation." + error;
+ }
+ }
+ if (message.classification != null && message.hasOwnProperty("classification")) {
+ if (properties.detail === 1)
+ return "detail: multiple values";
+ properties.detail = 1;
+ {
+ var error = $root.google.cloud.automl.v1.ClassificationAnnotation.verify(message.classification);
+ if (error)
+ return "classification." + error;
+ }
+ }
+ if (message.imageObjectDetection != null && message.hasOwnProperty("imageObjectDetection")) {
+ if (properties.detail === 1)
+ return "detail: multiple values";
+ properties.detail = 1;
+ {
+ var error = $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation.verify(message.imageObjectDetection);
+ if (error)
+ return "imageObjectDetection." + error;
+ }
+ }
+ if (message.textExtraction != null && message.hasOwnProperty("textExtraction")) {
+ if (properties.detail === 1)
+ return "detail: multiple values";
+ properties.detail = 1;
+ {
+ var error = $root.google.cloud.automl.v1.TextExtractionAnnotation.verify(message.textExtraction);
+ if (error)
+ return "textExtraction." + error;
+ }
+ }
+ if (message.textSentiment != null && message.hasOwnProperty("textSentiment")) {
+ if (properties.detail === 1)
+ return "detail: multiple values";
+ properties.detail = 1;
+ {
+ var error = $root.google.cloud.automl.v1.TextSentimentAnnotation.verify(message.textSentiment);
+ if (error)
+ return "textSentiment." + error;
+ }
+ }
+ if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId"))
+ if (!$util.isString(message.annotationSpecId))
+ return "annotationSpecId: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AnnotationPayload message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.AnnotationPayload} AnnotationPayload
+ */
+ AnnotationPayload.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.AnnotationPayload)
+ return object;
+ var message = new $root.google.cloud.automl.v1.AnnotationPayload();
+ if (object.translation != null) {
+ if (typeof object.translation !== "object")
+ throw TypeError(".google.cloud.automl.v1.AnnotationPayload.translation: object expected");
+ message.translation = $root.google.cloud.automl.v1.TranslationAnnotation.fromObject(object.translation);
+ }
+ if (object.classification != null) {
+ if (typeof object.classification !== "object")
+ throw TypeError(".google.cloud.automl.v1.AnnotationPayload.classification: object expected");
+ message.classification = $root.google.cloud.automl.v1.ClassificationAnnotation.fromObject(object.classification);
+ }
+ if (object.imageObjectDetection != null) {
+ if (typeof object.imageObjectDetection !== "object")
+ throw TypeError(".google.cloud.automl.v1.AnnotationPayload.imageObjectDetection: object expected");
+ message.imageObjectDetection = $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation.fromObject(object.imageObjectDetection);
+ }
+ if (object.textExtraction != null) {
+ if (typeof object.textExtraction !== "object")
+ throw TypeError(".google.cloud.automl.v1.AnnotationPayload.textExtraction: object expected");
+ message.textExtraction = $root.google.cloud.automl.v1.TextExtractionAnnotation.fromObject(object.textExtraction);
+ }
+ if (object.textSentiment != null) {
+ if (typeof object.textSentiment !== "object")
+ throw TypeError(".google.cloud.automl.v1.AnnotationPayload.textSentiment: object expected");
+ message.textSentiment = $root.google.cloud.automl.v1.TextSentimentAnnotation.fromObject(object.textSentiment);
+ }
+ if (object.annotationSpecId != null)
+ message.annotationSpecId = String(object.annotationSpecId);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AnnotationPayload message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {google.cloud.automl.v1.AnnotationPayload} message AnnotationPayload
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AnnotationPayload.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.annotationSpecId = "";
+ object.displayName = "";
+ }
+ if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId"))
+ object.annotationSpecId = message.annotationSpecId;
+ if (message.translation != null && message.hasOwnProperty("translation")) {
+ object.translation = $root.google.cloud.automl.v1.TranslationAnnotation.toObject(message.translation, options);
+ if (options.oneofs)
+ object.detail = "translation";
+ }
+ if (message.classification != null && message.hasOwnProperty("classification")) {
+ object.classification = $root.google.cloud.automl.v1.ClassificationAnnotation.toObject(message.classification, options);
+ if (options.oneofs)
+ object.detail = "classification";
+ }
+ if (message.imageObjectDetection != null && message.hasOwnProperty("imageObjectDetection")) {
+ object.imageObjectDetection = $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation.toObject(message.imageObjectDetection, options);
+ if (options.oneofs)
+ object.detail = "imageObjectDetection";
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.textExtraction != null && message.hasOwnProperty("textExtraction")) {
+ object.textExtraction = $root.google.cloud.automl.v1.TextExtractionAnnotation.toObject(message.textExtraction, options);
+ if (options.oneofs)
+ object.detail = "textExtraction";
+ }
+ if (message.textSentiment != null && message.hasOwnProperty("textSentiment")) {
+ object.textSentiment = $root.google.cloud.automl.v1.TextSentimentAnnotation.toObject(message.textSentiment, options);
+ if (options.oneofs)
+ object.detail = "textSentiment";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AnnotationPayload to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AnnotationPayload.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AnnotationPayload
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.AnnotationPayload
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AnnotationPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.AnnotationPayload";
+ };
+
+ return AnnotationPayload;
+ })();
+
+ /**
+ * ClassificationType enum.
+ * @name google.cloud.automl.v1.ClassificationType
+ * @enum {number}
+ * @property {number} CLASSIFICATION_TYPE_UNSPECIFIED=0 CLASSIFICATION_TYPE_UNSPECIFIED value
+ * @property {number} MULTICLASS=1 MULTICLASS value
+ * @property {number} MULTILABEL=2 MULTILABEL value
+ */
+ v1.ClassificationType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CLASSIFICATION_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MULTICLASS"] = 1;
+ values[valuesById[2] = "MULTILABEL"] = 2;
+ return values;
+ })();
+
+ v1.ClassificationAnnotation = (function() {
+
+ /**
+ * Properties of a ClassificationAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @interface IClassificationAnnotation
+ * @property {number|null} [score] ClassificationAnnotation score
+ */
+
+ /**
+ * Constructs a new ClassificationAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a ClassificationAnnotation.
+ * @implements IClassificationAnnotation
+ * @constructor
+ * @param {google.cloud.automl.v1.IClassificationAnnotation=} [properties] Properties to set
+ */
+ function ClassificationAnnotation(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]];
+ }
+
+ /**
+ * ClassificationAnnotation score.
+ * @member {number} score
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @instance
+ */
+ ClassificationAnnotation.prototype.score = 0;
+
+ /**
+ * Creates a new ClassificationAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.IClassificationAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ClassificationAnnotation} ClassificationAnnotation instance
+ */
+ ClassificationAnnotation.create = function create(properties) {
+ return new ClassificationAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified ClassificationAnnotation message. Does not implicitly {@link google.cloud.automl.v1.ClassificationAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.IClassificationAnnotation} message ClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClassificationAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.score != null && Object.hasOwnProperty.call(message, "score"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.score);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.IClassificationAnnotation} message ClassificationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ClassificationAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ClassificationAnnotation} ClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClassificationAnnotation.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ClassificationAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.score = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ClassificationAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ClassificationAnnotation} ClassificationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ClassificationAnnotation message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ClassificationAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.score != null && message.hasOwnProperty("score"))
+ if (typeof message.score !== "number")
+ return "score: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a ClassificationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ClassificationAnnotation} ClassificationAnnotation
+ */
+ ClassificationAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ClassificationAnnotation)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ClassificationAnnotation();
+ if (object.score != null)
+ message.score = Number(object.score);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ClassificationAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationAnnotation} message ClassificationAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ClassificationAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.score = 0;
+ if (message.score != null && message.hasOwnProperty("score"))
+ object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score;
+ return object;
+ };
+
+ /**
+ * Converts this ClassificationAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ClassificationAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ClassificationAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ClassificationAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ClassificationAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ClassificationAnnotation";
+ };
+
+ return ClassificationAnnotation;
+ })();
+
+ v1.ClassificationEvaluationMetrics = (function() {
+
+ /**
+ * Properties of a ClassificationEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @interface IClassificationEvaluationMetrics
+ * @property {number|null} [auPrc] ClassificationEvaluationMetrics auPrc
+ * @property {number|null} [auRoc] ClassificationEvaluationMetrics auRoc
+ * @property {number|null} [logLoss] ClassificationEvaluationMetrics logLoss
+ * @property {Array.|null} [confidenceMetricsEntry] ClassificationEvaluationMetrics confidenceMetricsEntry
+ * @property {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null} [confusionMatrix] ClassificationEvaluationMetrics confusionMatrix
+ * @property {Array.|null} [annotationSpecId] ClassificationEvaluationMetrics annotationSpecId
+ */
+
+ /**
+ * Constructs a new ClassificationEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a ClassificationEvaluationMetrics.
+ * @implements IClassificationEvaluationMetrics
+ * @constructor
+ * @param {google.cloud.automl.v1.IClassificationEvaluationMetrics=} [properties] Properties to set
+ */
+ function ClassificationEvaluationMetrics(properties) {
+ this.confidenceMetricsEntry = [];
+ this.annotationSpecId = [];
+ 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]];
+ }
+
+ /**
+ * ClassificationEvaluationMetrics auPrc.
+ * @member {number} auPrc
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ */
+ ClassificationEvaluationMetrics.prototype.auPrc = 0;
+
+ /**
+ * ClassificationEvaluationMetrics auRoc.
+ * @member {number} auRoc
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ */
+ ClassificationEvaluationMetrics.prototype.auRoc = 0;
+
+ /**
+ * ClassificationEvaluationMetrics logLoss.
+ * @member {number} logLoss
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ */
+ ClassificationEvaluationMetrics.prototype.logLoss = 0;
+
+ /**
+ * ClassificationEvaluationMetrics confidenceMetricsEntry.
+ * @member {Array.} confidenceMetricsEntry
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ */
+ ClassificationEvaluationMetrics.prototype.confidenceMetricsEntry = $util.emptyArray;
+
+ /**
+ * ClassificationEvaluationMetrics confusionMatrix.
+ * @member {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null|undefined} confusionMatrix
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ */
+ ClassificationEvaluationMetrics.prototype.confusionMatrix = null;
+
+ /**
+ * ClassificationEvaluationMetrics annotationSpecId.
+ * @member {Array.} annotationSpecId
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ */
+ ClassificationEvaluationMetrics.prototype.annotationSpecId = $util.emptyArray;
+
+ /**
+ * Creates a new ClassificationEvaluationMetrics instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.IClassificationEvaluationMetrics=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics} ClassificationEvaluationMetrics instance
+ */
+ ClassificationEvaluationMetrics.create = function create(properties) {
+ return new ClassificationEvaluationMetrics(properties);
+ };
+
+ /**
+ * Encodes the specified ClassificationEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.IClassificationEvaluationMetrics} message ClassificationEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClassificationEvaluationMetrics.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.auPrc != null && Object.hasOwnProperty.call(message, "auPrc"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.auPrc);
+ if (message.confidenceMetricsEntry != null && message.confidenceMetricsEntry.length)
+ for (var i = 0; i < message.confidenceMetricsEntry.length; ++i)
+ $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.encode(message.confidenceMetricsEntry[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.confusionMatrix != null && Object.hasOwnProperty.call(message, "confusionMatrix"))
+ $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.encode(message.confusionMatrix, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.annotationSpecId != null && message.annotationSpecId.length)
+ for (var i = 0; i < message.annotationSpecId.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.annotationSpecId[i]);
+ if (message.auRoc != null && Object.hasOwnProperty.call(message, "auRoc"))
+ writer.uint32(/* id 6, wireType 5 =*/53).float(message.auRoc);
+ if (message.logLoss != null && Object.hasOwnProperty.call(message, "logLoss"))
+ writer.uint32(/* id 7, wireType 5 =*/61).float(message.logLoss);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ClassificationEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.IClassificationEvaluationMetrics} message ClassificationEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClassificationEvaluationMetrics.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ClassificationEvaluationMetrics message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics} ClassificationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClassificationEvaluationMetrics.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.auPrc = reader.float();
+ break;
+ }
+ case 6: {
+ message.auRoc = reader.float();
+ break;
+ }
+ case 7: {
+ message.logLoss = reader.float();
+ break;
+ }
+ case 3: {
+ if (!(message.confidenceMetricsEntry && message.confidenceMetricsEntry.length))
+ message.confidenceMetricsEntry = [];
+ message.confidenceMetricsEntry.push($root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ message.confusionMatrix = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ if (!(message.annotationSpecId && message.annotationSpecId.length))
+ message.annotationSpecId = [];
+ message.annotationSpecId.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ClassificationEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics} ClassificationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClassificationEvaluationMetrics.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ClassificationEvaluationMetrics message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ClassificationEvaluationMetrics.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.auPrc != null && message.hasOwnProperty("auPrc"))
+ if (typeof message.auPrc !== "number")
+ return "auPrc: number expected";
+ if (message.auRoc != null && message.hasOwnProperty("auRoc"))
+ if (typeof message.auRoc !== "number")
+ return "auRoc: number expected";
+ if (message.logLoss != null && message.hasOwnProperty("logLoss"))
+ if (typeof message.logLoss !== "number")
+ return "logLoss: number expected";
+ if (message.confidenceMetricsEntry != null && message.hasOwnProperty("confidenceMetricsEntry")) {
+ if (!Array.isArray(message.confidenceMetricsEntry))
+ return "confidenceMetricsEntry: array expected";
+ for (var i = 0; i < message.confidenceMetricsEntry.length; ++i) {
+ var error = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify(message.confidenceMetricsEntry[i]);
+ if (error)
+ return "confidenceMetricsEntry." + error;
+ }
+ }
+ if (message.confusionMatrix != null && message.hasOwnProperty("confusionMatrix")) {
+ var error = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.verify(message.confusionMatrix);
+ if (error)
+ return "confusionMatrix." + error;
+ }
+ if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) {
+ if (!Array.isArray(message.annotationSpecId))
+ return "annotationSpecId: array expected";
+ for (var i = 0; i < message.annotationSpecId.length; ++i)
+ if (!$util.isString(message.annotationSpecId[i]))
+ return "annotationSpecId: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ClassificationEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics} ClassificationEvaluationMetrics
+ */
+ ClassificationEvaluationMetrics.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ClassificationEvaluationMetrics)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics();
+ if (object.auPrc != null)
+ message.auPrc = Number(object.auPrc);
+ if (object.auRoc != null)
+ message.auRoc = Number(object.auRoc);
+ if (object.logLoss != null)
+ message.logLoss = Number(object.logLoss);
+ if (object.confidenceMetricsEntry) {
+ if (!Array.isArray(object.confidenceMetricsEntry))
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.confidenceMetricsEntry: array expected");
+ message.confidenceMetricsEntry = [];
+ for (var i = 0; i < object.confidenceMetricsEntry.length; ++i) {
+ if (typeof object.confidenceMetricsEntry[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.confidenceMetricsEntry: object expected");
+ message.confidenceMetricsEntry[i] = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.fromObject(object.confidenceMetricsEntry[i]);
+ }
+ }
+ if (object.confusionMatrix != null) {
+ if (typeof object.confusionMatrix !== "object")
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.confusionMatrix: object expected");
+ message.confusionMatrix = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.fromObject(object.confusionMatrix);
+ }
+ if (object.annotationSpecId) {
+ if (!Array.isArray(object.annotationSpecId))
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.annotationSpecId: array expected");
+ message.annotationSpecId = [];
+ for (var i = 0; i < object.annotationSpecId.length; ++i)
+ message.annotationSpecId[i] = String(object.annotationSpecId[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ClassificationEvaluationMetrics message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics} message ClassificationEvaluationMetrics
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ClassificationEvaluationMetrics.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.confidenceMetricsEntry = [];
+ object.annotationSpecId = [];
+ }
+ if (options.defaults) {
+ object.auPrc = 0;
+ object.confusionMatrix = null;
+ object.auRoc = 0;
+ object.logLoss = 0;
+ }
+ if (message.auPrc != null && message.hasOwnProperty("auPrc"))
+ object.auPrc = options.json && !isFinite(message.auPrc) ? String(message.auPrc) : message.auPrc;
+ if (message.confidenceMetricsEntry && message.confidenceMetricsEntry.length) {
+ object.confidenceMetricsEntry = [];
+ for (var j = 0; j < message.confidenceMetricsEntry.length; ++j)
+ object.confidenceMetricsEntry[j] = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.toObject(message.confidenceMetricsEntry[j], options);
+ }
+ if (message.confusionMatrix != null && message.hasOwnProperty("confusionMatrix"))
+ object.confusionMatrix = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.toObject(message.confusionMatrix, options);
+ if (message.annotationSpecId && message.annotationSpecId.length) {
+ object.annotationSpecId = [];
+ for (var j = 0; j < message.annotationSpecId.length; ++j)
+ object.annotationSpecId[j] = message.annotationSpecId[j];
+ }
+ if (message.auRoc != null && message.hasOwnProperty("auRoc"))
+ object.auRoc = options.json && !isFinite(message.auRoc) ? String(message.auRoc) : message.auRoc;
+ if (message.logLoss != null && message.hasOwnProperty("logLoss"))
+ object.logLoss = options.json && !isFinite(message.logLoss) ? String(message.logLoss) : message.logLoss;
+ return object;
+ };
+
+ /**
+ * Converts this ClassificationEvaluationMetrics to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ClassificationEvaluationMetrics.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ClassificationEvaluationMetrics
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ClassificationEvaluationMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ClassificationEvaluationMetrics";
+ };
+
+ ClassificationEvaluationMetrics.ConfidenceMetricsEntry = (function() {
+
+ /**
+ * Properties of a ConfidenceMetricsEntry.
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @interface IConfidenceMetricsEntry
+ * @property {number|null} [confidenceThreshold] ConfidenceMetricsEntry confidenceThreshold
+ * @property {number|null} [positionThreshold] ConfidenceMetricsEntry positionThreshold
+ * @property {number|null} [recall] ConfidenceMetricsEntry recall
+ * @property {number|null} [precision] ConfidenceMetricsEntry precision
+ * @property {number|null} [falsePositiveRate] ConfidenceMetricsEntry falsePositiveRate
+ * @property {number|null} [f1Score] ConfidenceMetricsEntry f1Score
+ * @property {number|null} [recallAt1] ConfidenceMetricsEntry recallAt1
+ * @property {number|null} [precisionAt1] ConfidenceMetricsEntry precisionAt1
+ * @property {number|null} [falsePositiveRateAt1] ConfidenceMetricsEntry falsePositiveRateAt1
+ * @property {number|null} [f1ScoreAt1] ConfidenceMetricsEntry f1ScoreAt1
+ * @property {number|Long|null} [truePositiveCount] ConfidenceMetricsEntry truePositiveCount
+ * @property {number|Long|null} [falsePositiveCount] ConfidenceMetricsEntry falsePositiveCount
+ * @property {number|Long|null} [falseNegativeCount] ConfidenceMetricsEntry falseNegativeCount
+ * @property {number|Long|null} [trueNegativeCount] ConfidenceMetricsEntry trueNegativeCount
+ */
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @classdesc Represents a ConfidenceMetricsEntry.
+ * @implements IConfidenceMetricsEntry
+ * @constructor
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry=} [properties] Properties to set
+ */
+ function ConfidenceMetricsEntry(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]];
+ }
+
+ /**
+ * ConfidenceMetricsEntry confidenceThreshold.
+ * @member {number} confidenceThreshold
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.confidenceThreshold = 0;
+
+ /**
+ * ConfidenceMetricsEntry positionThreshold.
+ * @member {number} positionThreshold
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.positionThreshold = 0;
+
+ /**
+ * ConfidenceMetricsEntry recall.
+ * @member {number} recall
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.recall = 0;
+
+ /**
+ * ConfidenceMetricsEntry precision.
+ * @member {number} precision
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.precision = 0;
+
+ /**
+ * ConfidenceMetricsEntry falsePositiveRate.
+ * @member {number} falsePositiveRate
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.falsePositiveRate = 0;
+
+ /**
+ * ConfidenceMetricsEntry f1Score.
+ * @member {number} f1Score
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.f1Score = 0;
+
+ /**
+ * ConfidenceMetricsEntry recallAt1.
+ * @member {number} recallAt1
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.recallAt1 = 0;
+
+ /**
+ * ConfidenceMetricsEntry precisionAt1.
+ * @member {number} precisionAt1
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.precisionAt1 = 0;
+
+ /**
+ * ConfidenceMetricsEntry falsePositiveRateAt1.
+ * @member {number} falsePositiveRateAt1
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.falsePositiveRateAt1 = 0;
+
+ /**
+ * ConfidenceMetricsEntry f1ScoreAt1.
+ * @member {number} f1ScoreAt1
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.f1ScoreAt1 = 0;
+
+ /**
+ * ConfidenceMetricsEntry truePositiveCount.
+ * @member {number|Long} truePositiveCount
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.truePositiveCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ConfidenceMetricsEntry falsePositiveCount.
+ * @member {number|Long} falsePositiveCount
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.falsePositiveCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ConfidenceMetricsEntry falseNegativeCount.
+ * @member {number|Long} falseNegativeCount
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.falseNegativeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ConfidenceMetricsEntry trueNegativeCount.
+ * @member {number|Long} trueNegativeCount
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.trueNegativeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry instance
+ */
+ ConfidenceMetricsEntry.create = function create(properties) {
+ return new ConfidenceMetricsEntry(properties);
+ };
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry} message ConfidenceMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfidenceMetricsEntry.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.confidenceThreshold != null && Object.hasOwnProperty.call(message, "confidenceThreshold"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.confidenceThreshold);
+ if (message.recall != null && Object.hasOwnProperty.call(message, "recall"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.recall);
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.precision);
+ if (message.f1Score != null && Object.hasOwnProperty.call(message, "f1Score"))
+ writer.uint32(/* id 4, wireType 5 =*/37).float(message.f1Score);
+ if (message.recallAt1 != null && Object.hasOwnProperty.call(message, "recallAt1"))
+ writer.uint32(/* id 5, wireType 5 =*/45).float(message.recallAt1);
+ if (message.precisionAt1 != null && Object.hasOwnProperty.call(message, "precisionAt1"))
+ writer.uint32(/* id 6, wireType 5 =*/53).float(message.precisionAt1);
+ if (message.f1ScoreAt1 != null && Object.hasOwnProperty.call(message, "f1ScoreAt1"))
+ writer.uint32(/* id 7, wireType 5 =*/61).float(message.f1ScoreAt1);
+ if (message.falsePositiveRate != null && Object.hasOwnProperty.call(message, "falsePositiveRate"))
+ writer.uint32(/* id 8, wireType 5 =*/69).float(message.falsePositiveRate);
+ if (message.falsePositiveRateAt1 != null && Object.hasOwnProperty.call(message, "falsePositiveRateAt1"))
+ writer.uint32(/* id 9, wireType 5 =*/77).float(message.falsePositiveRateAt1);
+ if (message.truePositiveCount != null && Object.hasOwnProperty.call(message, "truePositiveCount"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int64(message.truePositiveCount);
+ if (message.falsePositiveCount != null && Object.hasOwnProperty.call(message, "falsePositiveCount"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int64(message.falsePositiveCount);
+ if (message.falseNegativeCount != null && Object.hasOwnProperty.call(message, "falseNegativeCount"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int64(message.falseNegativeCount);
+ if (message.trueNegativeCount != null && Object.hasOwnProperty.call(message, "trueNegativeCount"))
+ writer.uint32(/* id 13, wireType 0 =*/104).int64(message.trueNegativeCount);
+ if (message.positionThreshold != null && Object.hasOwnProperty.call(message, "positionThreshold"))
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.positionThreshold);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfidenceMetricsEntry} message ConfidenceMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfidenceMetricsEntry.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfidenceMetricsEntry.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.confidenceThreshold = reader.float();
+ break;
+ }
+ case 14: {
+ message.positionThreshold = reader.int32();
+ break;
+ }
+ case 2: {
+ message.recall = reader.float();
+ break;
+ }
+ case 3: {
+ message.precision = reader.float();
+ break;
+ }
+ case 8: {
+ message.falsePositiveRate = reader.float();
+ break;
+ }
+ case 4: {
+ message.f1Score = reader.float();
+ break;
+ }
+ case 5: {
+ message.recallAt1 = reader.float();
+ break;
+ }
+ case 6: {
+ message.precisionAt1 = reader.float();
+ break;
+ }
+ case 9: {
+ message.falsePositiveRateAt1 = reader.float();
+ break;
+ }
+ case 7: {
+ message.f1ScoreAt1 = reader.float();
+ break;
+ }
+ case 10: {
+ message.truePositiveCount = reader.int64();
+ break;
+ }
+ case 11: {
+ message.falsePositiveCount = reader.int64();
+ break;
+ }
+ case 12: {
+ message.falseNegativeCount = reader.int64();
+ break;
+ }
+ case 13: {
+ message.trueNegativeCount = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfidenceMetricsEntry.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfidenceMetricsEntry message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfidenceMetricsEntry.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold"))
+ if (typeof message.confidenceThreshold !== "number")
+ return "confidenceThreshold: number expected";
+ if (message.positionThreshold != null && message.hasOwnProperty("positionThreshold"))
+ if (!$util.isInteger(message.positionThreshold))
+ return "positionThreshold: integer expected";
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ if (typeof message.recall !== "number")
+ return "recall: number expected";
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ if (typeof message.precision !== "number")
+ return "precision: number expected";
+ if (message.falsePositiveRate != null && message.hasOwnProperty("falsePositiveRate"))
+ if (typeof message.falsePositiveRate !== "number")
+ return "falsePositiveRate: number expected";
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ if (typeof message.f1Score !== "number")
+ return "f1Score: number expected";
+ if (message.recallAt1 != null && message.hasOwnProperty("recallAt1"))
+ if (typeof message.recallAt1 !== "number")
+ return "recallAt1: number expected";
+ if (message.precisionAt1 != null && message.hasOwnProperty("precisionAt1"))
+ if (typeof message.precisionAt1 !== "number")
+ return "precisionAt1: number expected";
+ if (message.falsePositiveRateAt1 != null && message.hasOwnProperty("falsePositiveRateAt1"))
+ if (typeof message.falsePositiveRateAt1 !== "number")
+ return "falsePositiveRateAt1: number expected";
+ if (message.f1ScoreAt1 != null && message.hasOwnProperty("f1ScoreAt1"))
+ if (typeof message.f1ScoreAt1 !== "number")
+ return "f1ScoreAt1: number expected";
+ if (message.truePositiveCount != null && message.hasOwnProperty("truePositiveCount"))
+ if (!$util.isInteger(message.truePositiveCount) && !(message.truePositiveCount && $util.isInteger(message.truePositiveCount.low) && $util.isInteger(message.truePositiveCount.high)))
+ return "truePositiveCount: integer|Long expected";
+ if (message.falsePositiveCount != null && message.hasOwnProperty("falsePositiveCount"))
+ if (!$util.isInteger(message.falsePositiveCount) && !(message.falsePositiveCount && $util.isInteger(message.falsePositiveCount.low) && $util.isInteger(message.falsePositiveCount.high)))
+ return "falsePositiveCount: integer|Long expected";
+ if (message.falseNegativeCount != null && message.hasOwnProperty("falseNegativeCount"))
+ if (!$util.isInteger(message.falseNegativeCount) && !(message.falseNegativeCount && $util.isInteger(message.falseNegativeCount.low) && $util.isInteger(message.falseNegativeCount.high)))
+ return "falseNegativeCount: integer|Long expected";
+ if (message.trueNegativeCount != null && message.hasOwnProperty("trueNegativeCount"))
+ if (!$util.isInteger(message.trueNegativeCount) && !(message.trueNegativeCount && $util.isInteger(message.trueNegativeCount.low) && $util.isInteger(message.trueNegativeCount.high)))
+ return "trueNegativeCount: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ */
+ ConfidenceMetricsEntry.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry();
+ if (object.confidenceThreshold != null)
+ message.confidenceThreshold = Number(object.confidenceThreshold);
+ if (object.positionThreshold != null)
+ message.positionThreshold = object.positionThreshold | 0;
+ if (object.recall != null)
+ message.recall = Number(object.recall);
+ if (object.precision != null)
+ message.precision = Number(object.precision);
+ if (object.falsePositiveRate != null)
+ message.falsePositiveRate = Number(object.falsePositiveRate);
+ if (object.f1Score != null)
+ message.f1Score = Number(object.f1Score);
+ if (object.recallAt1 != null)
+ message.recallAt1 = Number(object.recallAt1);
+ if (object.precisionAt1 != null)
+ message.precisionAt1 = Number(object.precisionAt1);
+ if (object.falsePositiveRateAt1 != null)
+ message.falsePositiveRateAt1 = Number(object.falsePositiveRateAt1);
+ if (object.f1ScoreAt1 != null)
+ message.f1ScoreAt1 = Number(object.f1ScoreAt1);
+ if (object.truePositiveCount != null)
+ if ($util.Long)
+ (message.truePositiveCount = $util.Long.fromValue(object.truePositiveCount)).unsigned = false;
+ else if (typeof object.truePositiveCount === "string")
+ message.truePositiveCount = parseInt(object.truePositiveCount, 10);
+ else if (typeof object.truePositiveCount === "number")
+ message.truePositiveCount = object.truePositiveCount;
+ else if (typeof object.truePositiveCount === "object")
+ message.truePositiveCount = new $util.LongBits(object.truePositiveCount.low >>> 0, object.truePositiveCount.high >>> 0).toNumber();
+ if (object.falsePositiveCount != null)
+ if ($util.Long)
+ (message.falsePositiveCount = $util.Long.fromValue(object.falsePositiveCount)).unsigned = false;
+ else if (typeof object.falsePositiveCount === "string")
+ message.falsePositiveCount = parseInt(object.falsePositiveCount, 10);
+ else if (typeof object.falsePositiveCount === "number")
+ message.falsePositiveCount = object.falsePositiveCount;
+ else if (typeof object.falsePositiveCount === "object")
+ message.falsePositiveCount = new $util.LongBits(object.falsePositiveCount.low >>> 0, object.falsePositiveCount.high >>> 0).toNumber();
+ if (object.falseNegativeCount != null)
+ if ($util.Long)
+ (message.falseNegativeCount = $util.Long.fromValue(object.falseNegativeCount)).unsigned = false;
+ else if (typeof object.falseNegativeCount === "string")
+ message.falseNegativeCount = parseInt(object.falseNegativeCount, 10);
+ else if (typeof object.falseNegativeCount === "number")
+ message.falseNegativeCount = object.falseNegativeCount;
+ else if (typeof object.falseNegativeCount === "object")
+ message.falseNegativeCount = new $util.LongBits(object.falseNegativeCount.low >>> 0, object.falseNegativeCount.high >>> 0).toNumber();
+ if (object.trueNegativeCount != null)
+ if ($util.Long)
+ (message.trueNegativeCount = $util.Long.fromValue(object.trueNegativeCount)).unsigned = false;
+ else if (typeof object.trueNegativeCount === "string")
+ message.trueNegativeCount = parseInt(object.trueNegativeCount, 10);
+ else if (typeof object.trueNegativeCount === "number")
+ message.trueNegativeCount = object.trueNegativeCount;
+ else if (typeof object.trueNegativeCount === "object")
+ message.trueNegativeCount = new $util.LongBits(object.trueNegativeCount.low >>> 0, object.trueNegativeCount.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry} message ConfidenceMetricsEntry
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfidenceMetricsEntry.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.confidenceThreshold = 0;
+ object.recall = 0;
+ object.precision = 0;
+ object.f1Score = 0;
+ object.recallAt1 = 0;
+ object.precisionAt1 = 0;
+ object.f1ScoreAt1 = 0;
+ object.falsePositiveRate = 0;
+ object.falsePositiveRateAt1 = 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.truePositiveCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.truePositiveCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.falsePositiveCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.falsePositiveCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.falseNegativeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.falseNegativeCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.trueNegativeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.trueNegativeCount = options.longs === String ? "0" : 0;
+ object.positionThreshold = 0;
+ }
+ if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold"))
+ object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold;
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ object.recall = options.json && !isFinite(message.recall) ? String(message.recall) : message.recall;
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ object.precision = options.json && !isFinite(message.precision) ? String(message.precision) : message.precision;
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ object.f1Score = options.json && !isFinite(message.f1Score) ? String(message.f1Score) : message.f1Score;
+ if (message.recallAt1 != null && message.hasOwnProperty("recallAt1"))
+ object.recallAt1 = options.json && !isFinite(message.recallAt1) ? String(message.recallAt1) : message.recallAt1;
+ if (message.precisionAt1 != null && message.hasOwnProperty("precisionAt1"))
+ object.precisionAt1 = options.json && !isFinite(message.precisionAt1) ? String(message.precisionAt1) : message.precisionAt1;
+ if (message.f1ScoreAt1 != null && message.hasOwnProperty("f1ScoreAt1"))
+ object.f1ScoreAt1 = options.json && !isFinite(message.f1ScoreAt1) ? String(message.f1ScoreAt1) : message.f1ScoreAt1;
+ if (message.falsePositiveRate != null && message.hasOwnProperty("falsePositiveRate"))
+ object.falsePositiveRate = options.json && !isFinite(message.falsePositiveRate) ? String(message.falsePositiveRate) : message.falsePositiveRate;
+ if (message.falsePositiveRateAt1 != null && message.hasOwnProperty("falsePositiveRateAt1"))
+ object.falsePositiveRateAt1 = options.json && !isFinite(message.falsePositiveRateAt1) ? String(message.falsePositiveRateAt1) : message.falsePositiveRateAt1;
+ if (message.truePositiveCount != null && message.hasOwnProperty("truePositiveCount"))
+ if (typeof message.truePositiveCount === "number")
+ object.truePositiveCount = options.longs === String ? String(message.truePositiveCount) : message.truePositiveCount;
+ else
+ object.truePositiveCount = options.longs === String ? $util.Long.prototype.toString.call(message.truePositiveCount) : options.longs === Number ? new $util.LongBits(message.truePositiveCount.low >>> 0, message.truePositiveCount.high >>> 0).toNumber() : message.truePositiveCount;
+ if (message.falsePositiveCount != null && message.hasOwnProperty("falsePositiveCount"))
+ if (typeof message.falsePositiveCount === "number")
+ object.falsePositiveCount = options.longs === String ? String(message.falsePositiveCount) : message.falsePositiveCount;
+ else
+ object.falsePositiveCount = options.longs === String ? $util.Long.prototype.toString.call(message.falsePositiveCount) : options.longs === Number ? new $util.LongBits(message.falsePositiveCount.low >>> 0, message.falsePositiveCount.high >>> 0).toNumber() : message.falsePositiveCount;
+ if (message.falseNegativeCount != null && message.hasOwnProperty("falseNegativeCount"))
+ if (typeof message.falseNegativeCount === "number")
+ object.falseNegativeCount = options.longs === String ? String(message.falseNegativeCount) : message.falseNegativeCount;
+ else
+ object.falseNegativeCount = options.longs === String ? $util.Long.prototype.toString.call(message.falseNegativeCount) : options.longs === Number ? new $util.LongBits(message.falseNegativeCount.low >>> 0, message.falseNegativeCount.high >>> 0).toNumber() : message.falseNegativeCount;
+ if (message.trueNegativeCount != null && message.hasOwnProperty("trueNegativeCount"))
+ if (typeof message.trueNegativeCount === "number")
+ object.trueNegativeCount = options.longs === String ? String(message.trueNegativeCount) : message.trueNegativeCount;
+ else
+ object.trueNegativeCount = options.longs === String ? $util.Long.prototype.toString.call(message.trueNegativeCount) : options.longs === Number ? new $util.LongBits(message.trueNegativeCount.low >>> 0, message.trueNegativeCount.high >>> 0).toNumber() : message.trueNegativeCount;
+ if (message.positionThreshold != null && message.hasOwnProperty("positionThreshold"))
+ object.positionThreshold = message.positionThreshold;
+ return object;
+ };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfidenceMetricsEntry.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfidenceMetricsEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry";
+ };
+
+ return ConfidenceMetricsEntry;
+ })();
+
+ ClassificationEvaluationMetrics.ConfusionMatrix = (function() {
+
+ /**
+ * Properties of a ConfusionMatrix.
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @interface IConfusionMatrix
+ * @property {Array.|null} [annotationSpecId] ConfusionMatrix annotationSpecId
+ * @property {Array.|null} [displayName] ConfusionMatrix displayName
+ * @property {Array.|null} [row] ConfusionMatrix row
+ */
+
+ /**
+ * Constructs a new ConfusionMatrix.
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics
+ * @classdesc Represents a ConfusionMatrix.
+ * @implements IConfusionMatrix
+ * @constructor
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix=} [properties] Properties to set
+ */
+ function ConfusionMatrix(properties) {
+ this.annotationSpecId = [];
+ this.displayName = [];
+ this.row = [];
+ 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]];
+ }
+
+ /**
+ * ConfusionMatrix annotationSpecId.
+ * @member {Array.} annotationSpecId
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @instance
+ */
+ ConfusionMatrix.prototype.annotationSpecId = $util.emptyArray;
+
+ /**
+ * ConfusionMatrix displayName.
+ * @member {Array.} displayName
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @instance
+ */
+ ConfusionMatrix.prototype.displayName = $util.emptyArray;
+
+ /**
+ * ConfusionMatrix row.
+ * @member {Array.} row
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @instance
+ */
+ ConfusionMatrix.prototype.row = $util.emptyArray;
+
+ /**
+ * Creates a new ConfusionMatrix instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} ConfusionMatrix instance
+ */
+ ConfusionMatrix.create = function create(properties) {
+ return new ConfusionMatrix(properties);
+ };
+
+ /**
+ * Encodes the specified ConfusionMatrix message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix} message ConfusionMatrix message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfusionMatrix.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.annotationSpecId != null && message.annotationSpecId.length)
+ for (var i = 0; i < message.annotationSpecId.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotationSpecId[i]);
+ if (message.row != null && message.row.length)
+ for (var i = 0; i < message.row.length; ++i)
+ $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.encode(message.row[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.displayName != null && message.displayName.length)
+ for (var i = 0; i < message.displayName.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfusionMatrix message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix} message ConfusionMatrix message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfusionMatrix.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfusionMatrix.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.annotationSpecId && message.annotationSpecId.length))
+ message.annotationSpecId = [];
+ message.annotationSpecId.push(reader.string());
+ break;
+ }
+ case 3: {
+ if (!(message.displayName && message.displayName.length))
+ message.displayName = [];
+ message.displayName.push(reader.string());
+ break;
+ }
+ case 2: {
+ if (!(message.row && message.row.length))
+ message.row = [];
+ message.row.push($root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} ConfusionMatrix
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfusionMatrix.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfusionMatrix message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfusionMatrix.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) {
+ if (!Array.isArray(message.annotationSpecId))
+ return "annotationSpecId: array expected";
+ for (var i = 0; i < message.annotationSpecId.length; ++i)
+ if (!$util.isString(message.annotationSpecId[i]))
+ return "annotationSpecId: string[] expected";
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName")) {
+ if (!Array.isArray(message.displayName))
+ return "displayName: array expected";
+ for (var i = 0; i < message.displayName.length; ++i)
+ if (!$util.isString(message.displayName[i]))
+ return "displayName: string[] expected";
+ }
+ if (message.row != null && message.hasOwnProperty("row")) {
+ if (!Array.isArray(message.row))
+ return "row: array expected";
+ for (var i = 0; i < message.row.length; ++i) {
+ var error = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify(message.row[i]);
+ if (error)
+ return "row." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConfusionMatrix message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} ConfusionMatrix
+ */
+ ConfusionMatrix.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix();
+ if (object.annotationSpecId) {
+ if (!Array.isArray(object.annotationSpecId))
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.annotationSpecId: array expected");
+ message.annotationSpecId = [];
+ for (var i = 0; i < object.annotationSpecId.length; ++i)
+ message.annotationSpecId[i] = String(object.annotationSpecId[i]);
+ }
+ if (object.displayName) {
+ if (!Array.isArray(object.displayName))
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.displayName: array expected");
+ message.displayName = [];
+ for (var i = 0; i < object.displayName.length; ++i)
+ message.displayName[i] = String(object.displayName[i]);
+ }
+ if (object.row) {
+ if (!Array.isArray(object.row))
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.row: array expected");
+ message.row = [];
+ for (var i = 0; i < object.row.length; ++i) {
+ if (typeof object.row[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.row: object expected");
+ message.row[i] = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.fromObject(object.row[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfusionMatrix message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix} message ConfusionMatrix
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfusionMatrix.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.annotationSpecId = [];
+ object.row = [];
+ object.displayName = [];
+ }
+ if (message.annotationSpecId && message.annotationSpecId.length) {
+ object.annotationSpecId = [];
+ for (var j = 0; j < message.annotationSpecId.length; ++j)
+ object.annotationSpecId[j] = message.annotationSpecId[j];
+ }
+ if (message.row && message.row.length) {
+ object.row = [];
+ for (var j = 0; j < message.row.length; ++j)
+ object.row[j] = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.toObject(message.row[j], options);
+ }
+ if (message.displayName && message.displayName.length) {
+ object.displayName = [];
+ for (var j = 0; j < message.displayName.length; ++j)
+ object.displayName[j] = message.displayName[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ConfusionMatrix to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfusionMatrix.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfusionMatrix
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfusionMatrix.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix";
+ };
+
+ ConfusionMatrix.Row = (function() {
+
+ /**
+ * Properties of a Row.
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @interface IRow
+ * @property {Array.|null} [exampleCount] Row exampleCount
+ */
+
+ /**
+ * Constructs a new Row.
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix
+ * @classdesc Represents a Row.
+ * @implements IRow
+ * @constructor
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow=} [properties] Properties to set
+ */
+ function Row(properties) {
+ this.exampleCount = [];
+ 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]];
+ }
+
+ /**
+ * Row exampleCount.
+ * @member {Array.} exampleCount
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @instance
+ */
+ Row.prototype.exampleCount = $util.emptyArray;
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} Row instance
+ */
+ Row.create = function create(properties) {
+ return new Row(properties);
+ };
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow} message Row message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Row.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.exampleCount != null && message.exampleCount.length) {
+ writer.uint32(/* id 1, wireType 2 =*/10).fork();
+ for (var i = 0; i < message.exampleCount.length; ++i)
+ writer.int32(message.exampleCount[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.IRow} message Row message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Row.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Row.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.exampleCount && message.exampleCount.length))
+ message.exampleCount = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.exampleCount.push(reader.int32());
+ } else
+ message.exampleCount.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Row.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Row message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Row.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.exampleCount != null && message.hasOwnProperty("exampleCount")) {
+ if (!Array.isArray(message.exampleCount))
+ return "exampleCount: array expected";
+ for (var i = 0; i < message.exampleCount.length; ++i)
+ if (!$util.isInteger(message.exampleCount[i]))
+ return "exampleCount: integer[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Row message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} Row
+ */
+ Row.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row();
+ if (object.exampleCount) {
+ if (!Array.isArray(object.exampleCount))
+ throw TypeError(".google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.exampleCount: array expected");
+ message.exampleCount = [];
+ for (var i = 0; i < object.exampleCount.length; ++i)
+ message.exampleCount[i] = object.exampleCount[i] | 0;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row} message Row
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Row.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.exampleCount = [];
+ if (message.exampleCount && message.exampleCount.length) {
+ object.exampleCount = [];
+ for (var j = 0; j < message.exampleCount.length; ++j)
+ object.exampleCount[j] = message.exampleCount[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Row to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Row.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Row
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Row.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row";
+ };
+
+ return Row;
+ })();
+
+ return ConfusionMatrix;
+ })();
+
+ return ClassificationEvaluationMetrics;
+ })();
+
+ v1.ImageObjectDetectionAnnotation = (function() {
+
+ /**
+ * Properties of an ImageObjectDetectionAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @interface IImageObjectDetectionAnnotation
+ * @property {google.cloud.automl.v1.IBoundingPoly|null} [boundingBox] ImageObjectDetectionAnnotation boundingBox
+ * @property {number|null} [score] ImageObjectDetectionAnnotation score
+ */
+
+ /**
+ * Constructs a new ImageObjectDetectionAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents an ImageObjectDetectionAnnotation.
+ * @implements IImageObjectDetectionAnnotation
+ * @constructor
+ * @param {google.cloud.automl.v1.IImageObjectDetectionAnnotation=} [properties] Properties to set
+ */
+ function ImageObjectDetectionAnnotation(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]];
+ }
+
+ /**
+ * ImageObjectDetectionAnnotation boundingBox.
+ * @member {google.cloud.automl.v1.IBoundingPoly|null|undefined} boundingBox
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @instance
+ */
+ ImageObjectDetectionAnnotation.prototype.boundingBox = null;
+
+ /**
+ * ImageObjectDetectionAnnotation score.
+ * @member {number} score
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @instance
+ */
+ ImageObjectDetectionAnnotation.prototype.score = 0;
+
+ /**
+ * Creates a new ImageObjectDetectionAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.IImageObjectDetectionAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionAnnotation} ImageObjectDetectionAnnotation instance
+ */
+ ImageObjectDetectionAnnotation.create = function create(properties) {
+ return new ImageObjectDetectionAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified ImageObjectDetectionAnnotation message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.IImageObjectDetectionAnnotation} message ImageObjectDetectionAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageObjectDetectionAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.boundingBox != null && Object.hasOwnProperty.call(message, "boundingBox"))
+ $root.google.cloud.automl.v1.BoundingPoly.encode(message.boundingBox, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.score != null && Object.hasOwnProperty.call(message, "score"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.score);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageObjectDetectionAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.IImageObjectDetectionAnnotation} message ImageObjectDetectionAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageObjectDetectionAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageObjectDetectionAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionAnnotation} ImageObjectDetectionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageObjectDetectionAnnotation.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.boundingBox = $root.google.cloud.automl.v1.BoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.score = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageObjectDetectionAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionAnnotation} ImageObjectDetectionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageObjectDetectionAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageObjectDetectionAnnotation message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageObjectDetectionAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.boundingBox != null && message.hasOwnProperty("boundingBox")) {
+ var error = $root.google.cloud.automl.v1.BoundingPoly.verify(message.boundingBox);
+ if (error)
+ return "boundingBox." + error;
+ }
+ if (message.score != null && message.hasOwnProperty("score"))
+ if (typeof message.score !== "number")
+ return "score: number expected";
+ return null;
+ };
+
+ /**
+ * Creates an ImageObjectDetectionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionAnnotation} ImageObjectDetectionAnnotation
+ */
+ ImageObjectDetectionAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ImageObjectDetectionAnnotation();
+ if (object.boundingBox != null) {
+ if (typeof object.boundingBox !== "object")
+ throw TypeError(".google.cloud.automl.v1.ImageObjectDetectionAnnotation.boundingBox: object expected");
+ message.boundingBox = $root.google.cloud.automl.v1.BoundingPoly.fromObject(object.boundingBox);
+ }
+ if (object.score != null)
+ message.score = Number(object.score);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ImageObjectDetectionAnnotation} message ImageObjectDetectionAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageObjectDetectionAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.boundingBox = null;
+ object.score = 0;
+ }
+ if (message.boundingBox != null && message.hasOwnProperty("boundingBox"))
+ object.boundingBox = $root.google.cloud.automl.v1.BoundingPoly.toObject(message.boundingBox, options);
+ if (message.score != null && message.hasOwnProperty("score"))
+ object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score;
+ return object;
+ };
+
+ /**
+ * Converts this ImageObjectDetectionAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageObjectDetectionAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageObjectDetectionAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ImageObjectDetectionAnnotation";
+ };
+
+ return ImageObjectDetectionAnnotation;
+ })();
+
+ v1.BoundingBoxMetricsEntry = (function() {
+
+ /**
+ * Properties of a BoundingBoxMetricsEntry.
+ * @memberof google.cloud.automl.v1
+ * @interface IBoundingBoxMetricsEntry
+ * @property {number|null} [iouThreshold] BoundingBoxMetricsEntry iouThreshold
+ * @property {number|null} [meanAveragePrecision] BoundingBoxMetricsEntry meanAveragePrecision
+ * @property {Array.|null} [confidenceMetricsEntries] BoundingBoxMetricsEntry confidenceMetricsEntries
+ */
+
+ /**
+ * Constructs a new BoundingBoxMetricsEntry.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a BoundingBoxMetricsEntry.
+ * @implements IBoundingBoxMetricsEntry
+ * @constructor
+ * @param {google.cloud.automl.v1.IBoundingBoxMetricsEntry=} [properties] Properties to set
+ */
+ function BoundingBoxMetricsEntry(properties) {
+ this.confidenceMetricsEntries = [];
+ 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]];
+ }
+
+ /**
+ * BoundingBoxMetricsEntry iouThreshold.
+ * @member {number} iouThreshold
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @instance
+ */
+ BoundingBoxMetricsEntry.prototype.iouThreshold = 0;
+
+ /**
+ * BoundingBoxMetricsEntry meanAveragePrecision.
+ * @member {number} meanAveragePrecision
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @instance
+ */
+ BoundingBoxMetricsEntry.prototype.meanAveragePrecision = 0;
+
+ /**
+ * BoundingBoxMetricsEntry confidenceMetricsEntries.
+ * @member {Array.} confidenceMetricsEntries
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @instance
+ */
+ BoundingBoxMetricsEntry.prototype.confidenceMetricsEntries = $util.emptyArray;
+
+ /**
+ * Creates a new BoundingBoxMetricsEntry instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.IBoundingBoxMetricsEntry=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry} BoundingBoxMetricsEntry instance
+ */
+ BoundingBoxMetricsEntry.create = function create(properties) {
+ return new BoundingBoxMetricsEntry(properties);
+ };
+
+ /**
+ * Encodes the specified BoundingBoxMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.IBoundingBoxMetricsEntry} message BoundingBoxMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoundingBoxMetricsEntry.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.iouThreshold != null && Object.hasOwnProperty.call(message, "iouThreshold"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.iouThreshold);
+ if (message.meanAveragePrecision != null && Object.hasOwnProperty.call(message, "meanAveragePrecision"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.meanAveragePrecision);
+ if (message.confidenceMetricsEntries != null && message.confidenceMetricsEntries.length)
+ for (var i = 0; i < message.confidenceMetricsEntries.length; ++i)
+ $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.encode(message.confidenceMetricsEntries[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BoundingBoxMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.IBoundingBoxMetricsEntry} message BoundingBoxMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoundingBoxMetricsEntry.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BoundingBoxMetricsEntry message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry} BoundingBoxMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoundingBoxMetricsEntry.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.BoundingBoxMetricsEntry();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.iouThreshold = reader.float();
+ break;
+ }
+ case 2: {
+ message.meanAveragePrecision = reader.float();
+ break;
+ }
+ case 3: {
+ if (!(message.confidenceMetricsEntries && message.confidenceMetricsEntries.length))
+ message.confidenceMetricsEntries = [];
+ message.confidenceMetricsEntries.push($root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BoundingBoxMetricsEntry message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry} BoundingBoxMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoundingBoxMetricsEntry.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BoundingBoxMetricsEntry message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BoundingBoxMetricsEntry.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.iouThreshold != null && message.hasOwnProperty("iouThreshold"))
+ if (typeof message.iouThreshold !== "number")
+ return "iouThreshold: number expected";
+ if (message.meanAveragePrecision != null && message.hasOwnProperty("meanAveragePrecision"))
+ if (typeof message.meanAveragePrecision !== "number")
+ return "meanAveragePrecision: number expected";
+ if (message.confidenceMetricsEntries != null && message.hasOwnProperty("confidenceMetricsEntries")) {
+ if (!Array.isArray(message.confidenceMetricsEntries))
+ return "confidenceMetricsEntries: array expected";
+ for (var i = 0; i < message.confidenceMetricsEntries.length; ++i) {
+ var error = $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify(message.confidenceMetricsEntries[i]);
+ if (error)
+ return "confidenceMetricsEntries." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BoundingBoxMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry} BoundingBoxMetricsEntry
+ */
+ BoundingBoxMetricsEntry.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.BoundingBoxMetricsEntry)
+ return object;
+ var message = new $root.google.cloud.automl.v1.BoundingBoxMetricsEntry();
+ if (object.iouThreshold != null)
+ message.iouThreshold = Number(object.iouThreshold);
+ if (object.meanAveragePrecision != null)
+ message.meanAveragePrecision = Number(object.meanAveragePrecision);
+ if (object.confidenceMetricsEntries) {
+ if (!Array.isArray(object.confidenceMetricsEntries))
+ throw TypeError(".google.cloud.automl.v1.BoundingBoxMetricsEntry.confidenceMetricsEntries: array expected");
+ message.confidenceMetricsEntries = [];
+ for (var i = 0; i < object.confidenceMetricsEntries.length; ++i) {
+ if (typeof object.confidenceMetricsEntries[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.BoundingBoxMetricsEntry.confidenceMetricsEntries: object expected");
+ message.confidenceMetricsEntries[i] = $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.fromObject(object.confidenceMetricsEntries[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BoundingBoxMetricsEntry message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.BoundingBoxMetricsEntry} message BoundingBoxMetricsEntry
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BoundingBoxMetricsEntry.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.confidenceMetricsEntries = [];
+ if (options.defaults) {
+ object.iouThreshold = 0;
+ object.meanAveragePrecision = 0;
+ }
+ if (message.iouThreshold != null && message.hasOwnProperty("iouThreshold"))
+ object.iouThreshold = options.json && !isFinite(message.iouThreshold) ? String(message.iouThreshold) : message.iouThreshold;
+ if (message.meanAveragePrecision != null && message.hasOwnProperty("meanAveragePrecision"))
+ object.meanAveragePrecision = options.json && !isFinite(message.meanAveragePrecision) ? String(message.meanAveragePrecision) : message.meanAveragePrecision;
+ if (message.confidenceMetricsEntries && message.confidenceMetricsEntries.length) {
+ object.confidenceMetricsEntries = [];
+ for (var j = 0; j < message.confidenceMetricsEntries.length; ++j)
+ object.confidenceMetricsEntries[j] = $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.toObject(message.confidenceMetricsEntries[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BoundingBoxMetricsEntry to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BoundingBoxMetricsEntry.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BoundingBoxMetricsEntry
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BoundingBoxMetricsEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.BoundingBoxMetricsEntry";
+ };
+
+ BoundingBoxMetricsEntry.ConfidenceMetricsEntry = (function() {
+
+ /**
+ * Properties of a ConfidenceMetricsEntry.
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @interface IConfidenceMetricsEntry
+ * @property {number|null} [confidenceThreshold] ConfidenceMetricsEntry confidenceThreshold
+ * @property {number|null} [recall] ConfidenceMetricsEntry recall
+ * @property {number|null} [precision] ConfidenceMetricsEntry precision
+ * @property {number|null} [f1Score] ConfidenceMetricsEntry f1Score
+ */
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry
+ * @classdesc Represents a ConfidenceMetricsEntry.
+ * @implements IConfidenceMetricsEntry
+ * @constructor
+ * @param {google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry=} [properties] Properties to set
+ */
+ function ConfidenceMetricsEntry(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]];
+ }
+
+ /**
+ * ConfidenceMetricsEntry confidenceThreshold.
+ * @member {number} confidenceThreshold
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.confidenceThreshold = 0;
+
+ /**
+ * ConfidenceMetricsEntry recall.
+ * @member {number} recall
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.recall = 0;
+
+ /**
+ * ConfidenceMetricsEntry precision.
+ * @member {number} precision
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.precision = 0;
+
+ /**
+ * ConfidenceMetricsEntry f1Score.
+ * @member {number} f1Score
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.f1Score = 0;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} ConfidenceMetricsEntry instance
+ */
+ ConfidenceMetricsEntry.create = function create(properties) {
+ return new ConfidenceMetricsEntry(properties);
+ };
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry} message ConfidenceMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfidenceMetricsEntry.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.confidenceThreshold != null && Object.hasOwnProperty.call(message, "confidenceThreshold"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.confidenceThreshold);
+ if (message.recall != null && Object.hasOwnProperty.call(message, "recall"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.recall);
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.precision);
+ if (message.f1Score != null && Object.hasOwnProperty.call(message, "f1Score"))
+ writer.uint32(/* id 4, wireType 5 =*/37).float(message.f1Score);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.BoundingBoxMetricsEntry.IConfidenceMetricsEntry} message ConfidenceMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfidenceMetricsEntry.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfidenceMetricsEntry.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.confidenceThreshold = reader.float();
+ break;
+ }
+ case 2: {
+ message.recall = reader.float();
+ break;
+ }
+ case 3: {
+ message.precision = reader.float();
+ break;
+ }
+ case 4: {
+ message.f1Score = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfidenceMetricsEntry.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfidenceMetricsEntry message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfidenceMetricsEntry.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold"))
+ if (typeof message.confidenceThreshold !== "number")
+ return "confidenceThreshold: number expected";
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ if (typeof message.recall !== "number")
+ return "recall: number expected";
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ if (typeof message.precision !== "number")
+ return "precision: number expected";
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ if (typeof message.f1Score !== "number")
+ return "f1Score: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ */
+ ConfidenceMetricsEntry.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)
+ return object;
+ var message = new $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry();
+ if (object.confidenceThreshold != null)
+ message.confidenceThreshold = Number(object.confidenceThreshold);
+ if (object.recall != null)
+ message.recall = Number(object.recall);
+ if (object.precision != null)
+ message.precision = Number(object.precision);
+ if (object.f1Score != null)
+ message.f1Score = Number(object.f1Score);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} message ConfidenceMetricsEntry
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfidenceMetricsEntry.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.confidenceThreshold = 0;
+ object.recall = 0;
+ object.precision = 0;
+ object.f1Score = 0;
+ }
+ if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold"))
+ object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold;
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ object.recall = options.json && !isFinite(message.recall) ? String(message.recall) : message.recall;
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ object.precision = options.json && !isFinite(message.precision) ? String(message.precision) : message.precision;
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ object.f1Score = options.json && !isFinite(message.f1Score) ? String(message.f1Score) : message.f1Score;
+ return object;
+ };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfidenceMetricsEntry.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfidenceMetricsEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry";
+ };
+
+ return ConfidenceMetricsEntry;
+ })();
+
+ return BoundingBoxMetricsEntry;
+ })();
+
+ v1.ImageObjectDetectionEvaluationMetrics = (function() {
+
+ /**
+ * Properties of an ImageObjectDetectionEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @interface IImageObjectDetectionEvaluationMetrics
+ * @property {number|null} [evaluatedBoundingBoxCount] ImageObjectDetectionEvaluationMetrics evaluatedBoundingBoxCount
+ * @property {Array.|null} [boundingBoxMetricsEntries] ImageObjectDetectionEvaluationMetrics boundingBoxMetricsEntries
+ * @property {number|null} [boundingBoxMeanAveragePrecision] ImageObjectDetectionEvaluationMetrics boundingBoxMeanAveragePrecision
+ */
+
+ /**
+ * Constructs a new ImageObjectDetectionEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents an ImageObjectDetectionEvaluationMetrics.
+ * @implements IImageObjectDetectionEvaluationMetrics
+ * @constructor
+ * @param {google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics=} [properties] Properties to set
+ */
+ function ImageObjectDetectionEvaluationMetrics(properties) {
+ this.boundingBoxMetricsEntries = [];
+ 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]];
+ }
+
+ /**
+ * ImageObjectDetectionEvaluationMetrics evaluatedBoundingBoxCount.
+ * @member {number} evaluatedBoundingBoxCount
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @instance
+ */
+ ImageObjectDetectionEvaluationMetrics.prototype.evaluatedBoundingBoxCount = 0;
+
+ /**
+ * ImageObjectDetectionEvaluationMetrics boundingBoxMetricsEntries.
+ * @member {Array.} boundingBoxMetricsEntries
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @instance
+ */
+ ImageObjectDetectionEvaluationMetrics.prototype.boundingBoxMetricsEntries = $util.emptyArray;
+
+ /**
+ * ImageObjectDetectionEvaluationMetrics boundingBoxMeanAveragePrecision.
+ * @member {number} boundingBoxMeanAveragePrecision
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @instance
+ */
+ ImageObjectDetectionEvaluationMetrics.prototype.boundingBoxMeanAveragePrecision = 0;
+
+ /**
+ * Creates a new ImageObjectDetectionEvaluationMetrics instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics} ImageObjectDetectionEvaluationMetrics instance
+ */
+ ImageObjectDetectionEvaluationMetrics.create = function create(properties) {
+ return new ImageObjectDetectionEvaluationMetrics(properties);
+ };
+
+ /**
+ * Encodes the specified ImageObjectDetectionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics} message ImageObjectDetectionEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageObjectDetectionEvaluationMetrics.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.evaluatedBoundingBoxCount != null && Object.hasOwnProperty.call(message, "evaluatedBoundingBoxCount"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.evaluatedBoundingBoxCount);
+ if (message.boundingBoxMetricsEntries != null && message.boundingBoxMetricsEntries.length)
+ for (var i = 0; i < message.boundingBoxMetricsEntries.length; ++i)
+ $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.encode(message.boundingBoxMetricsEntries[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.boundingBoxMeanAveragePrecision != null && Object.hasOwnProperty.call(message, "boundingBoxMeanAveragePrecision"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.boundingBoxMeanAveragePrecision);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageObjectDetectionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.IImageObjectDetectionEvaluationMetrics} message ImageObjectDetectionEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageObjectDetectionEvaluationMetrics.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageObjectDetectionEvaluationMetrics message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics} ImageObjectDetectionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageObjectDetectionEvaluationMetrics.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.evaluatedBoundingBoxCount = reader.int32();
+ break;
+ }
+ case 2: {
+ if (!(message.boundingBoxMetricsEntries && message.boundingBoxMetricsEntries.length))
+ message.boundingBoxMetricsEntries = [];
+ message.boundingBoxMetricsEntries.push($root.google.cloud.automl.v1.BoundingBoxMetricsEntry.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.boundingBoxMeanAveragePrecision = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageObjectDetectionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics} ImageObjectDetectionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageObjectDetectionEvaluationMetrics.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageObjectDetectionEvaluationMetrics message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageObjectDetectionEvaluationMetrics.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.evaluatedBoundingBoxCount != null && message.hasOwnProperty("evaluatedBoundingBoxCount"))
+ if (!$util.isInteger(message.evaluatedBoundingBoxCount))
+ return "evaluatedBoundingBoxCount: integer expected";
+ if (message.boundingBoxMetricsEntries != null && message.hasOwnProperty("boundingBoxMetricsEntries")) {
+ if (!Array.isArray(message.boundingBoxMetricsEntries))
+ return "boundingBoxMetricsEntries: array expected";
+ for (var i = 0; i < message.boundingBoxMetricsEntries.length; ++i) {
+ var error = $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.verify(message.boundingBoxMetricsEntries[i]);
+ if (error)
+ return "boundingBoxMetricsEntries." + error;
+ }
+ }
+ if (message.boundingBoxMeanAveragePrecision != null && message.hasOwnProperty("boundingBoxMeanAveragePrecision"))
+ if (typeof message.boundingBoxMeanAveragePrecision !== "number")
+ return "boundingBoxMeanAveragePrecision: number expected";
+ return null;
+ };
+
+ /**
+ * Creates an ImageObjectDetectionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics} ImageObjectDetectionEvaluationMetrics
+ */
+ ImageObjectDetectionEvaluationMetrics.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics();
+ if (object.evaluatedBoundingBoxCount != null)
+ message.evaluatedBoundingBoxCount = object.evaluatedBoundingBoxCount | 0;
+ if (object.boundingBoxMetricsEntries) {
+ if (!Array.isArray(object.boundingBoxMetricsEntries))
+ throw TypeError(".google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.boundingBoxMetricsEntries: array expected");
+ message.boundingBoxMetricsEntries = [];
+ for (var i = 0; i < object.boundingBoxMetricsEntries.length; ++i) {
+ if (typeof object.boundingBoxMetricsEntries[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.boundingBoxMetricsEntries: object expected");
+ message.boundingBoxMetricsEntries[i] = $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.fromObject(object.boundingBoxMetricsEntries[i]);
+ }
+ }
+ if (object.boundingBoxMeanAveragePrecision != null)
+ message.boundingBoxMeanAveragePrecision = Number(object.boundingBoxMeanAveragePrecision);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageObjectDetectionEvaluationMetrics message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics} message ImageObjectDetectionEvaluationMetrics
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageObjectDetectionEvaluationMetrics.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.boundingBoxMetricsEntries = [];
+ if (options.defaults) {
+ object.evaluatedBoundingBoxCount = 0;
+ object.boundingBoxMeanAveragePrecision = 0;
+ }
+ if (message.evaluatedBoundingBoxCount != null && message.hasOwnProperty("evaluatedBoundingBoxCount"))
+ object.evaluatedBoundingBoxCount = message.evaluatedBoundingBoxCount;
+ if (message.boundingBoxMetricsEntries && message.boundingBoxMetricsEntries.length) {
+ object.boundingBoxMetricsEntries = [];
+ for (var j = 0; j < message.boundingBoxMetricsEntries.length; ++j)
+ object.boundingBoxMetricsEntries[j] = $root.google.cloud.automl.v1.BoundingBoxMetricsEntry.toObject(message.boundingBoxMetricsEntries[j], options);
+ }
+ if (message.boundingBoxMeanAveragePrecision != null && message.hasOwnProperty("boundingBoxMeanAveragePrecision"))
+ object.boundingBoxMeanAveragePrecision = options.json && !isFinite(message.boundingBoxMeanAveragePrecision) ? String(message.boundingBoxMeanAveragePrecision) : message.boundingBoxMeanAveragePrecision;
+ return object;
+ };
+
+ /**
+ * Converts this ImageObjectDetectionEvaluationMetrics to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageObjectDetectionEvaluationMetrics.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageObjectDetectionEvaluationMetrics
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageObjectDetectionEvaluationMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics";
+ };
+
+ return ImageObjectDetectionEvaluationMetrics;
+ })();
+
+ v1.NormalizedVertex = (function() {
+
+ /**
+ * Properties of a NormalizedVertex.
+ * @memberof google.cloud.automl.v1
+ * @interface INormalizedVertex
+ * @property {number|null} [x] NormalizedVertex x
+ * @property {number|null} [y] NormalizedVertex y
+ */
+
+ /**
+ * Constructs a new NormalizedVertex.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a NormalizedVertex.
+ * @implements INormalizedVertex
+ * @constructor
+ * @param {google.cloud.automl.v1.INormalizedVertex=} [properties] Properties to set
+ */
+ function NormalizedVertex(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]];
+ }
+
+ /**
+ * NormalizedVertex x.
+ * @member {number} x
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @instance
+ */
+ NormalizedVertex.prototype.x = 0;
+
+ /**
+ * NormalizedVertex y.
+ * @member {number} y
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @instance
+ */
+ NormalizedVertex.prototype.y = 0;
+
+ /**
+ * Creates a new NormalizedVertex instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {google.cloud.automl.v1.INormalizedVertex=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.NormalizedVertex} NormalizedVertex instance
+ */
+ NormalizedVertex.create = function create(properties) {
+ return new NormalizedVertex(properties);
+ };
+
+ /**
+ * Encodes the specified NormalizedVertex message. Does not implicitly {@link google.cloud.automl.v1.NormalizedVertex.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {google.cloud.automl.v1.INormalizedVertex} message NormalizedVertex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedVertex.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.x);
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.y);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NormalizedVertex message, length delimited. Does not implicitly {@link google.cloud.automl.v1.NormalizedVertex.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {google.cloud.automl.v1.INormalizedVertex} message NormalizedVertex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NormalizedVertex.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.NormalizedVertex} NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedVertex.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.NormalizedVertex();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.x = reader.float();
+ break;
+ }
+ case 2: {
+ message.y = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NormalizedVertex message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.NormalizedVertex} NormalizedVertex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NormalizedVertex.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NormalizedVertex message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NormalizedVertex.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.x != null && message.hasOwnProperty("x"))
+ if (typeof message.x !== "number")
+ return "x: number expected";
+ if (message.y != null && message.hasOwnProperty("y"))
+ if (typeof message.y !== "number")
+ return "y: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a NormalizedVertex message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.NormalizedVertex} NormalizedVertex
+ */
+ NormalizedVertex.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.NormalizedVertex)
+ return object;
+ var message = new $root.google.cloud.automl.v1.NormalizedVertex();
+ if (object.x != null)
+ message.x = Number(object.x);
+ if (object.y != null)
+ message.y = Number(object.y);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NormalizedVertex message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {google.cloud.automl.v1.NormalizedVertex} message NormalizedVertex
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NormalizedVertex.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.x = 0;
+ object.y = 0;
+ }
+ if (message.x != null && message.hasOwnProperty("x"))
+ object.x = options.json && !isFinite(message.x) ? String(message.x) : message.x;
+ if (message.y != null && message.hasOwnProperty("y"))
+ object.y = options.json && !isFinite(message.y) ? String(message.y) : message.y;
+ return object;
+ };
+
+ /**
+ * Converts this NormalizedVertex to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NormalizedVertex.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NormalizedVertex
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.NormalizedVertex
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NormalizedVertex.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.NormalizedVertex";
+ };
+
+ return NormalizedVertex;
+ })();
+
+ v1.BoundingPoly = (function() {
+
+ /**
+ * Properties of a BoundingPoly.
+ * @memberof google.cloud.automl.v1
+ * @interface IBoundingPoly
+ * @property {Array.|null} [normalizedVertices] BoundingPoly normalizedVertices
+ */
+
+ /**
+ * Constructs a new BoundingPoly.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a BoundingPoly.
+ * @implements IBoundingPoly
+ * @constructor
+ * @param {google.cloud.automl.v1.IBoundingPoly=} [properties] Properties to set
+ */
+ function BoundingPoly(properties) {
+ this.normalizedVertices = [];
+ 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]];
+ }
+
+ /**
+ * BoundingPoly normalizedVertices.
+ * @member {Array.} normalizedVertices
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @instance
+ */
+ BoundingPoly.prototype.normalizedVertices = $util.emptyArray;
+
+ /**
+ * Creates a new BoundingPoly instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {google.cloud.automl.v1.IBoundingPoly=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.BoundingPoly} BoundingPoly instance
+ */
+ BoundingPoly.create = function create(properties) {
+ return new BoundingPoly(properties);
+ };
+
+ /**
+ * Encodes the specified BoundingPoly message. Does not implicitly {@link google.cloud.automl.v1.BoundingPoly.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {google.cloud.automl.v1.IBoundingPoly} message BoundingPoly message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoundingPoly.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.normalizedVertices != null && message.normalizedVertices.length)
+ for (var i = 0; i < message.normalizedVertices.length; ++i)
+ $root.google.cloud.automl.v1.NormalizedVertex.encode(message.normalizedVertices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BoundingPoly message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BoundingPoly.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {google.cloud.automl.v1.IBoundingPoly} message BoundingPoly message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoundingPoly.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.BoundingPoly} BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoundingPoly.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.BoundingPoly();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ if (!(message.normalizedVertices && message.normalizedVertices.length))
+ message.normalizedVertices = [];
+ message.normalizedVertices.push($root.google.cloud.automl.v1.NormalizedVertex.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BoundingPoly message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.BoundingPoly} BoundingPoly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoundingPoly.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BoundingPoly message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BoundingPoly.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.normalizedVertices != null && message.hasOwnProperty("normalizedVertices")) {
+ if (!Array.isArray(message.normalizedVertices))
+ return "normalizedVertices: array expected";
+ for (var i = 0; i < message.normalizedVertices.length; ++i) {
+ var error = $root.google.cloud.automl.v1.NormalizedVertex.verify(message.normalizedVertices[i]);
+ if (error)
+ return "normalizedVertices." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BoundingPoly message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.BoundingPoly} BoundingPoly
+ */
+ BoundingPoly.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.BoundingPoly)
+ return object;
+ var message = new $root.google.cloud.automl.v1.BoundingPoly();
+ if (object.normalizedVertices) {
+ if (!Array.isArray(object.normalizedVertices))
+ throw TypeError(".google.cloud.automl.v1.BoundingPoly.normalizedVertices: array expected");
+ message.normalizedVertices = [];
+ for (var i = 0; i < object.normalizedVertices.length; ++i) {
+ if (typeof object.normalizedVertices[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.BoundingPoly.normalizedVertices: object expected");
+ message.normalizedVertices[i] = $root.google.cloud.automl.v1.NormalizedVertex.fromObject(object.normalizedVertices[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BoundingPoly message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {google.cloud.automl.v1.BoundingPoly} message BoundingPoly
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BoundingPoly.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.normalizedVertices = [];
+ if (message.normalizedVertices && message.normalizedVertices.length) {
+ object.normalizedVertices = [];
+ for (var j = 0; j < message.normalizedVertices.length; ++j)
+ object.normalizedVertices[j] = $root.google.cloud.automl.v1.NormalizedVertex.toObject(message.normalizedVertices[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BoundingPoly to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BoundingPoly.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BoundingPoly
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.BoundingPoly
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BoundingPoly.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.BoundingPoly";
+ };
+
+ return BoundingPoly;
+ })();
+
+ v1.TextExtractionAnnotation = (function() {
+
+ /**
+ * Properties of a TextExtractionAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @interface ITextExtractionAnnotation
+ * @property {google.cloud.automl.v1.ITextSegment|null} [textSegment] TextExtractionAnnotation textSegment
+ * @property {number|null} [score] TextExtractionAnnotation score
+ */
+
+ /**
+ * Constructs a new TextExtractionAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TextExtractionAnnotation.
+ * @implements ITextExtractionAnnotation
+ * @constructor
+ * @param {google.cloud.automl.v1.ITextExtractionAnnotation=} [properties] Properties to set
+ */
+ function TextExtractionAnnotation(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]];
+ }
+
+ /**
+ * TextExtractionAnnotation textSegment.
+ * @member {google.cloud.automl.v1.ITextSegment|null|undefined} textSegment
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @instance
+ */
+ TextExtractionAnnotation.prototype.textSegment = null;
+
+ /**
+ * TextExtractionAnnotation score.
+ * @member {number} score
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @instance
+ */
+ TextExtractionAnnotation.prototype.score = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * TextExtractionAnnotation annotation.
+ * @member {"textSegment"|undefined} annotation
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @instance
+ */
+ Object.defineProperty(TextExtractionAnnotation.prototype, "annotation", {
+ get: $util.oneOfGetter($oneOfFields = ["textSegment"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new TextExtractionAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITextExtractionAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextExtractionAnnotation} TextExtractionAnnotation instance
+ */
+ TextExtractionAnnotation.create = function create(properties) {
+ return new TextExtractionAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified TextExtractionAnnotation message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITextExtractionAnnotation} message TextExtractionAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextExtractionAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.score != null && Object.hasOwnProperty.call(message, "score"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.score);
+ if (message.textSegment != null && Object.hasOwnProperty.call(message, "textSegment"))
+ $root.google.cloud.automl.v1.TextSegment.encode(message.textSegment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITextExtractionAnnotation} message TextExtractionAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextExtractionAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextExtractionAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextExtractionAnnotation} TextExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextExtractionAnnotation.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextExtractionAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3: {
+ message.textSegment = $root.google.cloud.automl.v1.TextSegment.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.score = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextExtractionAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextExtractionAnnotation} TextExtractionAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextExtractionAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextExtractionAnnotation message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextExtractionAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.textSegment != null && message.hasOwnProperty("textSegment")) {
+ properties.annotation = 1;
+ {
+ var error = $root.google.cloud.automl.v1.TextSegment.verify(message.textSegment);
+ if (error)
+ return "textSegment." + error;
+ }
+ }
+ if (message.score != null && message.hasOwnProperty("score"))
+ if (typeof message.score !== "number")
+ return "score: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextExtractionAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextExtractionAnnotation} TextExtractionAnnotation
+ */
+ TextExtractionAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextExtractionAnnotation)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextExtractionAnnotation();
+ if (object.textSegment != null) {
+ if (typeof object.textSegment !== "object")
+ throw TypeError(".google.cloud.automl.v1.TextExtractionAnnotation.textSegment: object expected");
+ message.textSegment = $root.google.cloud.automl.v1.TextSegment.fromObject(object.textSegment);
+ }
+ if (object.score != null)
+ message.score = Number(object.score);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextExtractionAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.TextExtractionAnnotation} message TextExtractionAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextExtractionAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.score = 0;
+ if (message.score != null && message.hasOwnProperty("score"))
+ object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score;
+ if (message.textSegment != null && message.hasOwnProperty("textSegment")) {
+ object.textSegment = $root.google.cloud.automl.v1.TextSegment.toObject(message.textSegment, options);
+ if (options.oneofs)
+ object.annotation = "textSegment";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TextExtractionAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextExtractionAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextExtractionAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextExtractionAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextExtractionAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextExtractionAnnotation";
+ };
+
+ return TextExtractionAnnotation;
+ })();
+
+ v1.TextExtractionEvaluationMetrics = (function() {
+
+ /**
+ * Properties of a TextExtractionEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @interface ITextExtractionEvaluationMetrics
+ * @property {number|null} [auPrc] TextExtractionEvaluationMetrics auPrc
+ * @property {Array.|null} [confidenceMetricsEntries] TextExtractionEvaluationMetrics confidenceMetricsEntries
+ */
+
+ /**
+ * Constructs a new TextExtractionEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TextExtractionEvaluationMetrics.
+ * @implements ITextExtractionEvaluationMetrics
+ * @constructor
+ * @param {google.cloud.automl.v1.ITextExtractionEvaluationMetrics=} [properties] Properties to set
+ */
+ function TextExtractionEvaluationMetrics(properties) {
+ this.confidenceMetricsEntries = [];
+ 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]];
+ }
+
+ /**
+ * TextExtractionEvaluationMetrics auPrc.
+ * @member {number} auPrc
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @instance
+ */
+ TextExtractionEvaluationMetrics.prototype.auPrc = 0;
+
+ /**
+ * TextExtractionEvaluationMetrics confidenceMetricsEntries.
+ * @member {Array.} confidenceMetricsEntries
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @instance
+ */
+ TextExtractionEvaluationMetrics.prototype.confidenceMetricsEntries = $util.emptyArray;
+
+ /**
+ * Creates a new TextExtractionEvaluationMetrics instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITextExtractionEvaluationMetrics=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics} TextExtractionEvaluationMetrics instance
+ */
+ TextExtractionEvaluationMetrics.create = function create(properties) {
+ return new TextExtractionEvaluationMetrics(properties);
+ };
+
+ /**
+ * Encodes the specified TextExtractionEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITextExtractionEvaluationMetrics} message TextExtractionEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextExtractionEvaluationMetrics.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.auPrc != null && Object.hasOwnProperty.call(message, "auPrc"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.auPrc);
+ if (message.confidenceMetricsEntries != null && message.confidenceMetricsEntries.length)
+ for (var i = 0; i < message.confidenceMetricsEntries.length; ++i)
+ $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.encode(message.confidenceMetricsEntries[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextExtractionEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITextExtractionEvaluationMetrics} message TextExtractionEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextExtractionEvaluationMetrics.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextExtractionEvaluationMetrics message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics} TextExtractionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextExtractionEvaluationMetrics.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.auPrc = reader.float();
+ break;
+ }
+ case 2: {
+ if (!(message.confidenceMetricsEntries && message.confidenceMetricsEntries.length))
+ message.confidenceMetricsEntries = [];
+ message.confidenceMetricsEntries.push($root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextExtractionEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics} TextExtractionEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextExtractionEvaluationMetrics.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextExtractionEvaluationMetrics message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextExtractionEvaluationMetrics.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.auPrc != null && message.hasOwnProperty("auPrc"))
+ if (typeof message.auPrc !== "number")
+ return "auPrc: number expected";
+ if (message.confidenceMetricsEntries != null && message.hasOwnProperty("confidenceMetricsEntries")) {
+ if (!Array.isArray(message.confidenceMetricsEntries))
+ return "confidenceMetricsEntries: array expected";
+ for (var i = 0; i < message.confidenceMetricsEntries.length; ++i) {
+ var error = $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify(message.confidenceMetricsEntries[i]);
+ if (error)
+ return "confidenceMetricsEntries." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TextExtractionEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics} TextExtractionEvaluationMetrics
+ */
+ TextExtractionEvaluationMetrics.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics();
+ if (object.auPrc != null)
+ message.auPrc = Number(object.auPrc);
+ if (object.confidenceMetricsEntries) {
+ if (!Array.isArray(object.confidenceMetricsEntries))
+ throw TypeError(".google.cloud.automl.v1.TextExtractionEvaluationMetrics.confidenceMetricsEntries: array expected");
+ message.confidenceMetricsEntries = [];
+ for (var i = 0; i < object.confidenceMetricsEntries.length; ++i) {
+ if (typeof object.confidenceMetricsEntries[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.TextExtractionEvaluationMetrics.confidenceMetricsEntries: object expected");
+ message.confidenceMetricsEntries[i] = $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.fromObject(object.confidenceMetricsEntries[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextExtractionEvaluationMetrics message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.TextExtractionEvaluationMetrics} message TextExtractionEvaluationMetrics
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextExtractionEvaluationMetrics.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.confidenceMetricsEntries = [];
+ if (options.defaults)
+ object.auPrc = 0;
+ if (message.auPrc != null && message.hasOwnProperty("auPrc"))
+ object.auPrc = options.json && !isFinite(message.auPrc) ? String(message.auPrc) : message.auPrc;
+ if (message.confidenceMetricsEntries && message.confidenceMetricsEntries.length) {
+ object.confidenceMetricsEntries = [];
+ for (var j = 0; j < message.confidenceMetricsEntries.length; ++j)
+ object.confidenceMetricsEntries[j] = $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.toObject(message.confidenceMetricsEntries[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TextExtractionEvaluationMetrics to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextExtractionEvaluationMetrics.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextExtractionEvaluationMetrics
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextExtractionEvaluationMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextExtractionEvaluationMetrics";
+ };
+
+ TextExtractionEvaluationMetrics.ConfidenceMetricsEntry = (function() {
+
+ /**
+ * Properties of a ConfidenceMetricsEntry.
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @interface IConfidenceMetricsEntry
+ * @property {number|null} [confidenceThreshold] ConfidenceMetricsEntry confidenceThreshold
+ * @property {number|null} [recall] ConfidenceMetricsEntry recall
+ * @property {number|null} [precision] ConfidenceMetricsEntry precision
+ * @property {number|null} [f1Score] ConfidenceMetricsEntry f1Score
+ */
+
+ /**
+ * Constructs a new ConfidenceMetricsEntry.
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics
+ * @classdesc Represents a ConfidenceMetricsEntry.
+ * @implements IConfidenceMetricsEntry
+ * @constructor
+ * @param {google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry=} [properties] Properties to set
+ */
+ function ConfidenceMetricsEntry(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]];
+ }
+
+ /**
+ * ConfidenceMetricsEntry confidenceThreshold.
+ * @member {number} confidenceThreshold
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.confidenceThreshold = 0;
+
+ /**
+ * ConfidenceMetricsEntry recall.
+ * @member {number} recall
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.recall = 0;
+
+ /**
+ * ConfidenceMetricsEntry precision.
+ * @member {number} precision
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.precision = 0;
+
+ /**
+ * ConfidenceMetricsEntry f1Score.
+ * @member {number} f1Score
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ */
+ ConfidenceMetricsEntry.prototype.f1Score = 0;
+
+ /**
+ * Creates a new ConfidenceMetricsEntry instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry instance
+ */
+ ConfidenceMetricsEntry.create = function create(properties) {
+ return new ConfidenceMetricsEntry(properties);
+ };
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry} message ConfidenceMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfidenceMetricsEntry.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.confidenceThreshold != null && Object.hasOwnProperty.call(message, "confidenceThreshold"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.confidenceThreshold);
+ if (message.recall != null && Object.hasOwnProperty.call(message, "recall"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.recall);
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ writer.uint32(/* id 4, wireType 5 =*/37).float(message.precision);
+ if (message.f1Score != null && Object.hasOwnProperty.call(message, "f1Score"))
+ writer.uint32(/* id 5, wireType 5 =*/45).float(message.f1Score);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfidenceMetricsEntry message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.TextExtractionEvaluationMetrics.IConfidenceMetricsEntry} message ConfidenceMetricsEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfidenceMetricsEntry.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfidenceMetricsEntry.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.confidenceThreshold = reader.float();
+ break;
+ }
+ case 3: {
+ message.recall = reader.float();
+ break;
+ }
+ case 4: {
+ message.precision = reader.float();
+ break;
+ }
+ case 5: {
+ message.f1Score = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfidenceMetricsEntry message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfidenceMetricsEntry.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfidenceMetricsEntry message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfidenceMetricsEntry.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold"))
+ if (typeof message.confidenceThreshold !== "number")
+ return "confidenceThreshold: number expected";
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ if (typeof message.recall !== "number")
+ return "recall: number expected";
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ if (typeof message.precision !== "number")
+ return "precision: number expected";
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ if (typeof message.f1Score !== "number")
+ return "f1Score: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a ConfidenceMetricsEntry message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} ConfidenceMetricsEntry
+ */
+ ConfidenceMetricsEntry.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry();
+ if (object.confidenceThreshold != null)
+ message.confidenceThreshold = Number(object.confidenceThreshold);
+ if (object.recall != null)
+ message.recall = Number(object.recall);
+ if (object.precision != null)
+ message.precision = Number(object.precision);
+ if (object.f1Score != null)
+ message.f1Score = Number(object.f1Score);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfidenceMetricsEntry message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} message ConfidenceMetricsEntry
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfidenceMetricsEntry.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.confidenceThreshold = 0;
+ object.recall = 0;
+ object.precision = 0;
+ object.f1Score = 0;
+ }
+ if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold"))
+ object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold;
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ object.recall = options.json && !isFinite(message.recall) ? String(message.recall) : message.recall;
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ object.precision = options.json && !isFinite(message.precision) ? String(message.precision) : message.precision;
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ object.f1Score = options.json && !isFinite(message.f1Score) ? String(message.f1Score) : message.f1Score;
+ return object;
+ };
+
+ /**
+ * Converts this ConfidenceMetricsEntry to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfidenceMetricsEntry.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfidenceMetricsEntry
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfidenceMetricsEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry";
+ };
+
+ return ConfidenceMetricsEntry;
+ })();
+
+ return TextExtractionEvaluationMetrics;
+ })();
+
+ v1.TextSegment = (function() {
+
+ /**
+ * Properties of a TextSegment.
+ * @memberof google.cloud.automl.v1
+ * @interface ITextSegment
+ * @property {string|null} [content] TextSegment content
+ * @property {number|Long|null} [startOffset] TextSegment startOffset
+ * @property {number|Long|null} [endOffset] TextSegment endOffset
+ */
+
+ /**
+ * Constructs a new TextSegment.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TextSegment.
+ * @implements ITextSegment
+ * @constructor
+ * @param {google.cloud.automl.v1.ITextSegment=} [properties] Properties to set
+ */
+ function TextSegment(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]];
+ }
+
+ /**
+ * TextSegment content.
+ * @member {string} content
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @instance
+ */
+ TextSegment.prototype.content = "";
+
+ /**
+ * TextSegment startOffset.
+ * @member {number|Long} startOffset
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @instance
+ */
+ TextSegment.prototype.startOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * TextSegment endOffset.
+ * @member {number|Long} endOffset
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @instance
+ */
+ TextSegment.prototype.endOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new TextSegment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {google.cloud.automl.v1.ITextSegment=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextSegment} TextSegment instance
+ */
+ TextSegment.create = function create(properties) {
+ return new TextSegment(properties);
+ };
+
+ /**
+ * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.automl.v1.TextSegment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {google.cloud.automl.v1.ITextSegment} message TextSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSegment.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startOffset);
+ if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.endOffset);
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.content);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSegment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {google.cloud.automl.v1.ITextSegment} message TextSegment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSegment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextSegment} TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSegment.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextSegment();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3: {
+ message.content = reader.string();
+ break;
+ }
+ case 1: {
+ message.startOffset = reader.int64();
+ break;
+ }
+ case 2: {
+ message.endOffset = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextSegment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextSegment} TextSegment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSegment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextSegment message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextSegment.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.content != null && message.hasOwnProperty("content"))
+ if (!$util.isString(message.content))
+ return "content: string expected";
+ if (message.startOffset != null && message.hasOwnProperty("startOffset"))
+ if (!$util.isInteger(message.startOffset) && !(message.startOffset && $util.isInteger(message.startOffset.low) && $util.isInteger(message.startOffset.high)))
+ return "startOffset: integer|Long expected";
+ if (message.endOffset != null && message.hasOwnProperty("endOffset"))
+ if (!$util.isInteger(message.endOffset) && !(message.endOffset && $util.isInteger(message.endOffset.low) && $util.isInteger(message.endOffset.high)))
+ return "endOffset: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextSegment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextSegment} TextSegment
+ */
+ TextSegment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextSegment)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextSegment();
+ if (object.content != null)
+ message.content = String(object.content);
+ if (object.startOffset != null)
+ if ($util.Long)
+ (message.startOffset = $util.Long.fromValue(object.startOffset)).unsigned = false;
+ else if (typeof object.startOffset === "string")
+ message.startOffset = parseInt(object.startOffset, 10);
+ else if (typeof object.startOffset === "number")
+ message.startOffset = object.startOffset;
+ else if (typeof object.startOffset === "object")
+ message.startOffset = new $util.LongBits(object.startOffset.low >>> 0, object.startOffset.high >>> 0).toNumber();
+ if (object.endOffset != null)
+ if ($util.Long)
+ (message.endOffset = $util.Long.fromValue(object.endOffset)).unsigned = false;
+ else if (typeof object.endOffset === "string")
+ message.endOffset = parseInt(object.endOffset, 10);
+ else if (typeof object.endOffset === "number")
+ message.endOffset = object.endOffset;
+ else if (typeof object.endOffset === "object")
+ message.endOffset = new $util.LongBits(object.endOffset.low >>> 0, object.endOffset.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextSegment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {google.cloud.automl.v1.TextSegment} message TextSegment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextSegment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.startOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.startOffset = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.endOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.endOffset = options.longs === String ? "0" : 0;
+ object.content = "";
+ }
+ if (message.startOffset != null && message.hasOwnProperty("startOffset"))
+ if (typeof message.startOffset === "number")
+ object.startOffset = options.longs === String ? String(message.startOffset) : message.startOffset;
+ else
+ object.startOffset = options.longs === String ? $util.Long.prototype.toString.call(message.startOffset) : options.longs === Number ? new $util.LongBits(message.startOffset.low >>> 0, message.startOffset.high >>> 0).toNumber() : message.startOffset;
+ if (message.endOffset != null && message.hasOwnProperty("endOffset"))
+ if (typeof message.endOffset === "number")
+ object.endOffset = options.longs === String ? String(message.endOffset) : message.endOffset;
+ else
+ object.endOffset = options.longs === String ? $util.Long.prototype.toString.call(message.endOffset) : options.longs === Number ? new $util.LongBits(message.endOffset.low >>> 0, message.endOffset.high >>> 0).toNumber() : message.endOffset;
+ if (message.content != null && message.hasOwnProperty("content"))
+ object.content = message.content;
+ return object;
+ };
+
+ /**
+ * Converts this TextSegment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextSegment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextSegment
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextSegment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextSegment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextSegment";
+ };
+
+ return TextSegment;
+ })();
+
+ v1.TextSentimentAnnotation = (function() {
+
+ /**
+ * Properties of a TextSentimentAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @interface ITextSentimentAnnotation
+ * @property {number|null} [sentiment] TextSentimentAnnotation sentiment
+ */
+
+ /**
+ * Constructs a new TextSentimentAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TextSentimentAnnotation.
+ * @implements ITextSentimentAnnotation
+ * @constructor
+ * @param {google.cloud.automl.v1.ITextSentimentAnnotation=} [properties] Properties to set
+ */
+ function TextSentimentAnnotation(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]];
+ }
+
+ /**
+ * TextSentimentAnnotation sentiment.
+ * @member {number} sentiment
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @instance
+ */
+ TextSentimentAnnotation.prototype.sentiment = 0;
+
+ /**
+ * Creates a new TextSentimentAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITextSentimentAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextSentimentAnnotation} TextSentimentAnnotation instance
+ */
+ TextSentimentAnnotation.create = function create(properties) {
+ return new TextSentimentAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified TextSentimentAnnotation message. Does not implicitly {@link google.cloud.automl.v1.TextSentimentAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITextSentimentAnnotation} message TextSentimentAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSentimentAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.sentiment != null && Object.hasOwnProperty.call(message, "sentiment"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sentiment);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextSentimentAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSentimentAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITextSentimentAnnotation} message TextSentimentAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSentimentAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextSentimentAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextSentimentAnnotation} TextSentimentAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSentimentAnnotation.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextSentimentAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.sentiment = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextSentimentAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextSentimentAnnotation} TextSentimentAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSentimentAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextSentimentAnnotation message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextSentimentAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.sentiment != null && message.hasOwnProperty("sentiment"))
+ if (!$util.isInteger(message.sentiment))
+ return "sentiment: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextSentimentAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextSentimentAnnotation} TextSentimentAnnotation
+ */
+ TextSentimentAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextSentimentAnnotation)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextSentimentAnnotation();
+ if (object.sentiment != null)
+ message.sentiment = object.sentiment | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextSentimentAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.TextSentimentAnnotation} message TextSentimentAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextSentimentAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.sentiment = 0;
+ if (message.sentiment != null && message.hasOwnProperty("sentiment"))
+ object.sentiment = message.sentiment;
+ return object;
+ };
+
+ /**
+ * Converts this TextSentimentAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextSentimentAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextSentimentAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextSentimentAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextSentimentAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextSentimentAnnotation";
+ };
+
+ return TextSentimentAnnotation;
+ })();
+
+ v1.TextSentimentEvaluationMetrics = (function() {
+
+ /**
+ * Properties of a TextSentimentEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @interface ITextSentimentEvaluationMetrics
+ * @property {number|null} [precision] TextSentimentEvaluationMetrics precision
+ * @property {number|null} [recall] TextSentimentEvaluationMetrics recall
+ * @property {number|null} [f1Score] TextSentimentEvaluationMetrics f1Score
+ * @property {number|null} [meanAbsoluteError] TextSentimentEvaluationMetrics meanAbsoluteError
+ * @property {number|null} [meanSquaredError] TextSentimentEvaluationMetrics meanSquaredError
+ * @property {number|null} [linearKappa] TextSentimentEvaluationMetrics linearKappa
+ * @property {number|null} [quadraticKappa] TextSentimentEvaluationMetrics quadraticKappa
+ * @property {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null} [confusionMatrix] TextSentimentEvaluationMetrics confusionMatrix
+ */
+
+ /**
+ * Constructs a new TextSentimentEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TextSentimentEvaluationMetrics.
+ * @implements ITextSentimentEvaluationMetrics
+ * @constructor
+ * @param {google.cloud.automl.v1.ITextSentimentEvaluationMetrics=} [properties] Properties to set
+ */
+ function TextSentimentEvaluationMetrics(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]];
+ }
+
+ /**
+ * TextSentimentEvaluationMetrics precision.
+ * @member {number} precision
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.precision = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics recall.
+ * @member {number} recall
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.recall = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics f1Score.
+ * @member {number} f1Score
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.f1Score = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics meanAbsoluteError.
+ * @member {number} meanAbsoluteError
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.meanAbsoluteError = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics meanSquaredError.
+ * @member {number} meanSquaredError
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.meanSquaredError = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics linearKappa.
+ * @member {number} linearKappa
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.linearKappa = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics quadraticKappa.
+ * @member {number} quadraticKappa
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.quadraticKappa = 0;
+
+ /**
+ * TextSentimentEvaluationMetrics confusionMatrix.
+ * @member {google.cloud.automl.v1.ClassificationEvaluationMetrics.IConfusionMatrix|null|undefined} confusionMatrix
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ */
+ TextSentimentEvaluationMetrics.prototype.confusionMatrix = null;
+
+ /**
+ * Creates a new TextSentimentEvaluationMetrics instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITextSentimentEvaluationMetrics=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextSentimentEvaluationMetrics} TextSentimentEvaluationMetrics instance
+ */
+ TextSentimentEvaluationMetrics.create = function create(properties) {
+ return new TextSentimentEvaluationMetrics(properties);
+ };
+
+ /**
+ * Encodes the specified TextSentimentEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.TextSentimentEvaluationMetrics.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITextSentimentEvaluationMetrics} message TextSentimentEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSentimentEvaluationMetrics.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.precision);
+ if (message.recall != null && Object.hasOwnProperty.call(message, "recall"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.recall);
+ if (message.f1Score != null && Object.hasOwnProperty.call(message, "f1Score"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.f1Score);
+ if (message.meanAbsoluteError != null && Object.hasOwnProperty.call(message, "meanAbsoluteError"))
+ writer.uint32(/* id 4, wireType 5 =*/37).float(message.meanAbsoluteError);
+ if (message.meanSquaredError != null && Object.hasOwnProperty.call(message, "meanSquaredError"))
+ writer.uint32(/* id 5, wireType 5 =*/45).float(message.meanSquaredError);
+ if (message.linearKappa != null && Object.hasOwnProperty.call(message, "linearKappa"))
+ writer.uint32(/* id 6, wireType 5 =*/53).float(message.linearKappa);
+ if (message.quadraticKappa != null && Object.hasOwnProperty.call(message, "quadraticKappa"))
+ writer.uint32(/* id 7, wireType 5 =*/61).float(message.quadraticKappa);
+ if (message.confusionMatrix != null && Object.hasOwnProperty.call(message, "confusionMatrix"))
+ $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.encode(message.confusionMatrix, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextSentimentEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSentimentEvaluationMetrics.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITextSentimentEvaluationMetrics} message TextSentimentEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSentimentEvaluationMetrics.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextSentimentEvaluationMetrics message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextSentimentEvaluationMetrics} TextSentimentEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSentimentEvaluationMetrics.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextSentimentEvaluationMetrics();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.precision = reader.float();
+ break;
+ }
+ case 2: {
+ message.recall = reader.float();
+ break;
+ }
+ case 3: {
+ message.f1Score = reader.float();
+ break;
+ }
+ case 4: {
+ message.meanAbsoluteError = reader.float();
+ break;
+ }
+ case 5: {
+ message.meanSquaredError = reader.float();
+ break;
+ }
+ case 6: {
+ message.linearKappa = reader.float();
+ break;
+ }
+ case 7: {
+ message.quadraticKappa = reader.float();
+ break;
+ }
+ case 8: {
+ message.confusionMatrix = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextSentimentEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextSentimentEvaluationMetrics} TextSentimentEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSentimentEvaluationMetrics.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextSentimentEvaluationMetrics message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextSentimentEvaluationMetrics.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ if (typeof message.precision !== "number")
+ return "precision: number expected";
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ if (typeof message.recall !== "number")
+ return "recall: number expected";
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ if (typeof message.f1Score !== "number")
+ return "f1Score: number expected";
+ if (message.meanAbsoluteError != null && message.hasOwnProperty("meanAbsoluteError"))
+ if (typeof message.meanAbsoluteError !== "number")
+ return "meanAbsoluteError: number expected";
+ if (message.meanSquaredError != null && message.hasOwnProperty("meanSquaredError"))
+ if (typeof message.meanSquaredError !== "number")
+ return "meanSquaredError: number expected";
+ if (message.linearKappa != null && message.hasOwnProperty("linearKappa"))
+ if (typeof message.linearKappa !== "number")
+ return "linearKappa: number expected";
+ if (message.quadraticKappa != null && message.hasOwnProperty("quadraticKappa"))
+ if (typeof message.quadraticKappa !== "number")
+ return "quadraticKappa: number expected";
+ if (message.confusionMatrix != null && message.hasOwnProperty("confusionMatrix")) {
+ var error = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.verify(message.confusionMatrix);
+ if (error)
+ return "confusionMatrix." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TextSentimentEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextSentimentEvaluationMetrics} TextSentimentEvaluationMetrics
+ */
+ TextSentimentEvaluationMetrics.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextSentimentEvaluationMetrics)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextSentimentEvaluationMetrics();
+ if (object.precision != null)
+ message.precision = Number(object.precision);
+ if (object.recall != null)
+ message.recall = Number(object.recall);
+ if (object.f1Score != null)
+ message.f1Score = Number(object.f1Score);
+ if (object.meanAbsoluteError != null)
+ message.meanAbsoluteError = Number(object.meanAbsoluteError);
+ if (object.meanSquaredError != null)
+ message.meanSquaredError = Number(object.meanSquaredError);
+ if (object.linearKappa != null)
+ message.linearKappa = Number(object.linearKappa);
+ if (object.quadraticKappa != null)
+ message.quadraticKappa = Number(object.quadraticKappa);
+ if (object.confusionMatrix != null) {
+ if (typeof object.confusionMatrix !== "object")
+ throw TypeError(".google.cloud.automl.v1.TextSentimentEvaluationMetrics.confusionMatrix: object expected");
+ message.confusionMatrix = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.fromObject(object.confusionMatrix);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextSentimentEvaluationMetrics message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.TextSentimentEvaluationMetrics} message TextSentimentEvaluationMetrics
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextSentimentEvaluationMetrics.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.precision = 0;
+ object.recall = 0;
+ object.f1Score = 0;
+ object.meanAbsoluteError = 0;
+ object.meanSquaredError = 0;
+ object.linearKappa = 0;
+ object.quadraticKappa = 0;
+ object.confusionMatrix = null;
+ }
+ if (message.precision != null && message.hasOwnProperty("precision"))
+ object.precision = options.json && !isFinite(message.precision) ? String(message.precision) : message.precision;
+ if (message.recall != null && message.hasOwnProperty("recall"))
+ object.recall = options.json && !isFinite(message.recall) ? String(message.recall) : message.recall;
+ if (message.f1Score != null && message.hasOwnProperty("f1Score"))
+ object.f1Score = options.json && !isFinite(message.f1Score) ? String(message.f1Score) : message.f1Score;
+ if (message.meanAbsoluteError != null && message.hasOwnProperty("meanAbsoluteError"))
+ object.meanAbsoluteError = options.json && !isFinite(message.meanAbsoluteError) ? String(message.meanAbsoluteError) : message.meanAbsoluteError;
+ if (message.meanSquaredError != null && message.hasOwnProperty("meanSquaredError"))
+ object.meanSquaredError = options.json && !isFinite(message.meanSquaredError) ? String(message.meanSquaredError) : message.meanSquaredError;
+ if (message.linearKappa != null && message.hasOwnProperty("linearKappa"))
+ object.linearKappa = options.json && !isFinite(message.linearKappa) ? String(message.linearKappa) : message.linearKappa;
+ if (message.quadraticKappa != null && message.hasOwnProperty("quadraticKappa"))
+ object.quadraticKappa = options.json && !isFinite(message.quadraticKappa) ? String(message.quadraticKappa) : message.quadraticKappa;
+ if (message.confusionMatrix != null && message.hasOwnProperty("confusionMatrix"))
+ object.confusionMatrix = $root.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.toObject(message.confusionMatrix, options);
+ return object;
+ };
+
+ /**
+ * Converts this TextSentimentEvaluationMetrics to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextSentimentEvaluationMetrics.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextSentimentEvaluationMetrics
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextSentimentEvaluationMetrics
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextSentimentEvaluationMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextSentimentEvaluationMetrics";
+ };
+
+ return TextSentimentEvaluationMetrics;
+ })();
+
+ v1.TranslationDatasetMetadata = (function() {
+
+ /**
+ * Properties of a TranslationDatasetMetadata.
+ * @memberof google.cloud.automl.v1
+ * @interface ITranslationDatasetMetadata
+ * @property {string|null} [sourceLanguageCode] TranslationDatasetMetadata sourceLanguageCode
+ * @property {string|null} [targetLanguageCode] TranslationDatasetMetadata targetLanguageCode
+ */
+
+ /**
+ * Constructs a new TranslationDatasetMetadata.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TranslationDatasetMetadata.
+ * @implements ITranslationDatasetMetadata
+ * @constructor
+ * @param {google.cloud.automl.v1.ITranslationDatasetMetadata=} [properties] Properties to set
+ */
+ function TranslationDatasetMetadata(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]];
+ }
+
+ /**
+ * TranslationDatasetMetadata sourceLanguageCode.
+ * @member {string} sourceLanguageCode
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @instance
+ */
+ TranslationDatasetMetadata.prototype.sourceLanguageCode = "";
+
+ /**
+ * TranslationDatasetMetadata targetLanguageCode.
+ * @member {string} targetLanguageCode
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @instance
+ */
+ TranslationDatasetMetadata.prototype.targetLanguageCode = "";
+
+ /**
+ * Creates a new TranslationDatasetMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationDatasetMetadata=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TranslationDatasetMetadata} TranslationDatasetMetadata instance
+ */
+ TranslationDatasetMetadata.create = function create(properties) {
+ return new TranslationDatasetMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified TranslationDatasetMetadata message. Does not implicitly {@link google.cloud.automl.v1.TranslationDatasetMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationDatasetMetadata} message TranslationDatasetMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationDatasetMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.sourceLanguageCode != null && Object.hasOwnProperty.call(message, "sourceLanguageCode"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceLanguageCode);
+ if (message.targetLanguageCode != null && Object.hasOwnProperty.call(message, "targetLanguageCode"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetLanguageCode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TranslationDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationDatasetMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationDatasetMetadata} message TranslationDatasetMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TranslationDatasetMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TranslationDatasetMetadata} TranslationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationDatasetMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TranslationDatasetMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.sourceLanguageCode = reader.string();
+ break;
+ }
+ case 2: {
+ message.targetLanguageCode = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TranslationDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TranslationDatasetMetadata} TranslationDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationDatasetMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TranslationDatasetMetadata message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TranslationDatasetMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.sourceLanguageCode != null && message.hasOwnProperty("sourceLanguageCode"))
+ if (!$util.isString(message.sourceLanguageCode))
+ return "sourceLanguageCode: string expected";
+ if (message.targetLanguageCode != null && message.hasOwnProperty("targetLanguageCode"))
+ if (!$util.isString(message.targetLanguageCode))
+ return "targetLanguageCode: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TranslationDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TranslationDatasetMetadata} TranslationDatasetMetadata
+ */
+ TranslationDatasetMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TranslationDatasetMetadata)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TranslationDatasetMetadata();
+ if (object.sourceLanguageCode != null)
+ message.sourceLanguageCode = String(object.sourceLanguageCode);
+ if (object.targetLanguageCode != null)
+ message.targetLanguageCode = String(object.targetLanguageCode);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TranslationDatasetMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {google.cloud.automl.v1.TranslationDatasetMetadata} message TranslationDatasetMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TranslationDatasetMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.sourceLanguageCode = "";
+ object.targetLanguageCode = "";
+ }
+ if (message.sourceLanguageCode != null && message.hasOwnProperty("sourceLanguageCode"))
+ object.sourceLanguageCode = message.sourceLanguageCode;
+ if (message.targetLanguageCode != null && message.hasOwnProperty("targetLanguageCode"))
+ object.targetLanguageCode = message.targetLanguageCode;
+ return object;
+ };
+
+ /**
+ * Converts this TranslationDatasetMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TranslationDatasetMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TranslationDatasetMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TranslationDatasetMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TranslationDatasetMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TranslationDatasetMetadata";
+ };
+
+ return TranslationDatasetMetadata;
+ })();
+
+ v1.TranslationEvaluationMetrics = (function() {
+
+ /**
+ * Properties of a TranslationEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @interface ITranslationEvaluationMetrics
+ * @property {number|null} [bleuScore] TranslationEvaluationMetrics bleuScore
+ * @property {number|null} [baseBleuScore] TranslationEvaluationMetrics baseBleuScore
+ */
+
+ /**
+ * Constructs a new TranslationEvaluationMetrics.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TranslationEvaluationMetrics.
+ * @implements ITranslationEvaluationMetrics
+ * @constructor
+ * @param {google.cloud.automl.v1.ITranslationEvaluationMetrics=} [properties] Properties to set
+ */
+ function TranslationEvaluationMetrics(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]];
+ }
+
+ /**
+ * TranslationEvaluationMetrics bleuScore.
+ * @member {number} bleuScore
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @instance
+ */
+ TranslationEvaluationMetrics.prototype.bleuScore = 0;
+
+ /**
+ * TranslationEvaluationMetrics baseBleuScore.
+ * @member {number} baseBleuScore
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @instance
+ */
+ TranslationEvaluationMetrics.prototype.baseBleuScore = 0;
+
+ /**
+ * Creates a new TranslationEvaluationMetrics instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationEvaluationMetrics=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TranslationEvaluationMetrics} TranslationEvaluationMetrics instance
+ */
+ TranslationEvaluationMetrics.create = function create(properties) {
+ return new TranslationEvaluationMetrics(properties);
+ };
+
+ /**
+ * Encodes the specified TranslationEvaluationMetrics message. Does not implicitly {@link google.cloud.automl.v1.TranslationEvaluationMetrics.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationEvaluationMetrics} message TranslationEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationEvaluationMetrics.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.bleuScore != null && Object.hasOwnProperty.call(message, "bleuScore"))
+ writer.uint32(/* id 1, wireType 1 =*/9).double(message.bleuScore);
+ if (message.baseBleuScore != null && Object.hasOwnProperty.call(message, "baseBleuScore"))
+ writer.uint32(/* id 2, wireType 1 =*/17).double(message.baseBleuScore);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TranslationEvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationEvaluationMetrics.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationEvaluationMetrics} message TranslationEvaluationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationEvaluationMetrics.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TranslationEvaluationMetrics message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TranslationEvaluationMetrics} TranslationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationEvaluationMetrics.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TranslationEvaluationMetrics();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.bleuScore = reader.double();
+ break;
+ }
+ case 2: {
+ message.baseBleuScore = reader.double();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TranslationEvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TranslationEvaluationMetrics} TranslationEvaluationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationEvaluationMetrics.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TranslationEvaluationMetrics message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TranslationEvaluationMetrics.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.bleuScore != null && message.hasOwnProperty("bleuScore"))
+ if (typeof message.bleuScore !== "number")
+ return "bleuScore: number expected";
+ if (message.baseBleuScore != null && message.hasOwnProperty("baseBleuScore"))
+ if (typeof message.baseBleuScore !== "number")
+ return "baseBleuScore: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a TranslationEvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TranslationEvaluationMetrics} TranslationEvaluationMetrics
+ */
+ TranslationEvaluationMetrics.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TranslationEvaluationMetrics)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TranslationEvaluationMetrics();
+ if (object.bleuScore != null)
+ message.bleuScore = Number(object.bleuScore);
+ if (object.baseBleuScore != null)
+ message.baseBleuScore = Number(object.baseBleuScore);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TranslationEvaluationMetrics message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {google.cloud.automl.v1.TranslationEvaluationMetrics} message TranslationEvaluationMetrics
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TranslationEvaluationMetrics.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.bleuScore = 0;
+ object.baseBleuScore = 0;
+ }
+ if (message.bleuScore != null && message.hasOwnProperty("bleuScore"))
+ object.bleuScore = options.json && !isFinite(message.bleuScore) ? String(message.bleuScore) : message.bleuScore;
+ if (message.baseBleuScore != null && message.hasOwnProperty("baseBleuScore"))
+ object.baseBleuScore = options.json && !isFinite(message.baseBleuScore) ? String(message.baseBleuScore) : message.baseBleuScore;
+ return object;
+ };
+
+ /**
+ * Converts this TranslationEvaluationMetrics to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TranslationEvaluationMetrics.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TranslationEvaluationMetrics
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TranslationEvaluationMetrics
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TranslationEvaluationMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TranslationEvaluationMetrics";
+ };
+
+ return TranslationEvaluationMetrics;
+ })();
+
+ v1.TranslationModelMetadata = (function() {
+
+ /**
+ * Properties of a TranslationModelMetadata.
+ * @memberof google.cloud.automl.v1
+ * @interface ITranslationModelMetadata
+ * @property {string|null} [baseModel] TranslationModelMetadata baseModel
+ * @property {string|null} [sourceLanguageCode] TranslationModelMetadata sourceLanguageCode
+ * @property {string|null} [targetLanguageCode] TranslationModelMetadata targetLanguageCode
+ */
+
+ /**
+ * Constructs a new TranslationModelMetadata.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TranslationModelMetadata.
+ * @implements ITranslationModelMetadata
+ * @constructor
+ * @param {google.cloud.automl.v1.ITranslationModelMetadata=} [properties] Properties to set
+ */
+ function TranslationModelMetadata(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]];
+ }
+
+ /**
+ * TranslationModelMetadata baseModel.
+ * @member {string} baseModel
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @instance
+ */
+ TranslationModelMetadata.prototype.baseModel = "";
+
+ /**
+ * TranslationModelMetadata sourceLanguageCode.
+ * @member {string} sourceLanguageCode
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @instance
+ */
+ TranslationModelMetadata.prototype.sourceLanguageCode = "";
+
+ /**
+ * TranslationModelMetadata targetLanguageCode.
+ * @member {string} targetLanguageCode
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @instance
+ */
+ TranslationModelMetadata.prototype.targetLanguageCode = "";
+
+ /**
+ * Creates a new TranslationModelMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationModelMetadata=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TranslationModelMetadata} TranslationModelMetadata instance
+ */
+ TranslationModelMetadata.create = function create(properties) {
+ return new TranslationModelMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified TranslationModelMetadata message. Does not implicitly {@link google.cloud.automl.v1.TranslationModelMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationModelMetadata} message TranslationModelMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationModelMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.baseModel != null && Object.hasOwnProperty.call(message, "baseModel"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseModel);
+ if (message.sourceLanguageCode != null && Object.hasOwnProperty.call(message, "sourceLanguageCode"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceLanguageCode);
+ if (message.targetLanguageCode != null && Object.hasOwnProperty.call(message, "targetLanguageCode"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetLanguageCode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TranslationModelMetadata message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationModelMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationModelMetadata} message TranslationModelMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationModelMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TranslationModelMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TranslationModelMetadata} TranslationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationModelMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TranslationModelMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.baseModel = reader.string();
+ break;
+ }
+ case 2: {
+ message.sourceLanguageCode = reader.string();
+ break;
+ }
+ case 3: {
+ message.targetLanguageCode = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TranslationModelMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TranslationModelMetadata} TranslationModelMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationModelMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TranslationModelMetadata message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TranslationModelMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.baseModel != null && message.hasOwnProperty("baseModel"))
+ if (!$util.isString(message.baseModel))
+ return "baseModel: string expected";
+ if (message.sourceLanguageCode != null && message.hasOwnProperty("sourceLanguageCode"))
+ if (!$util.isString(message.sourceLanguageCode))
+ return "sourceLanguageCode: string expected";
+ if (message.targetLanguageCode != null && message.hasOwnProperty("targetLanguageCode"))
+ if (!$util.isString(message.targetLanguageCode))
+ return "targetLanguageCode: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TranslationModelMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TranslationModelMetadata} TranslationModelMetadata
+ */
+ TranslationModelMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TranslationModelMetadata)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TranslationModelMetadata();
+ if (object.baseModel != null)
+ message.baseModel = String(object.baseModel);
+ if (object.sourceLanguageCode != null)
+ message.sourceLanguageCode = String(object.sourceLanguageCode);
+ if (object.targetLanguageCode != null)
+ message.targetLanguageCode = String(object.targetLanguageCode);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TranslationModelMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {google.cloud.automl.v1.TranslationModelMetadata} message TranslationModelMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TranslationModelMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.baseModel = "";
+ object.sourceLanguageCode = "";
+ object.targetLanguageCode = "";
+ }
+ if (message.baseModel != null && message.hasOwnProperty("baseModel"))
+ object.baseModel = message.baseModel;
+ if (message.sourceLanguageCode != null && message.hasOwnProperty("sourceLanguageCode"))
+ object.sourceLanguageCode = message.sourceLanguageCode;
+ if (message.targetLanguageCode != null && message.hasOwnProperty("targetLanguageCode"))
+ object.targetLanguageCode = message.targetLanguageCode;
+ return object;
+ };
+
+ /**
+ * Converts this TranslationModelMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TranslationModelMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TranslationModelMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TranslationModelMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TranslationModelMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TranslationModelMetadata";
+ };
+
+ return TranslationModelMetadata;
+ })();
+
+ v1.TranslationAnnotation = (function() {
+
+ /**
+ * Properties of a TranslationAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @interface ITranslationAnnotation
+ * @property {google.cloud.automl.v1.ITextSnippet|null} [translatedContent] TranslationAnnotation translatedContent
+ */
+
+ /**
+ * Constructs a new TranslationAnnotation.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TranslationAnnotation.
+ * @implements ITranslationAnnotation
+ * @constructor
+ * @param {google.cloud.automl.v1.ITranslationAnnotation=} [properties] Properties to set
+ */
+ function TranslationAnnotation(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]];
+ }
+
+ /**
+ * TranslationAnnotation translatedContent.
+ * @member {google.cloud.automl.v1.ITextSnippet|null|undefined} translatedContent
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @instance
+ */
+ TranslationAnnotation.prototype.translatedContent = null;
+
+ /**
+ * Creates a new TranslationAnnotation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationAnnotation=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TranslationAnnotation} TranslationAnnotation instance
+ */
+ TranslationAnnotation.create = function create(properties) {
+ return new TranslationAnnotation(properties);
+ };
+
+ /**
+ * Encodes the specified TranslationAnnotation message. Does not implicitly {@link google.cloud.automl.v1.TranslationAnnotation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationAnnotation} message TranslationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationAnnotation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.translatedContent != null && Object.hasOwnProperty.call(message, "translatedContent"))
+ $root.google.cloud.automl.v1.TextSnippet.encode(message.translatedContent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TranslationAnnotation message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TranslationAnnotation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.ITranslationAnnotation} message TranslationAnnotation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TranslationAnnotation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TranslationAnnotation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TranslationAnnotation} TranslationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationAnnotation.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TranslationAnnotation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.translatedContent = $root.google.cloud.automl.v1.TextSnippet.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TranslationAnnotation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TranslationAnnotation} TranslationAnnotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TranslationAnnotation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TranslationAnnotation message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TranslationAnnotation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.translatedContent != null && message.hasOwnProperty("translatedContent")) {
+ var error = $root.google.cloud.automl.v1.TextSnippet.verify(message.translatedContent);
+ if (error)
+ return "translatedContent." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TranslationAnnotation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TranslationAnnotation} TranslationAnnotation
+ */
+ TranslationAnnotation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TranslationAnnotation)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TranslationAnnotation();
+ if (object.translatedContent != null) {
+ if (typeof object.translatedContent !== "object")
+ throw TypeError(".google.cloud.automl.v1.TranslationAnnotation.translatedContent: object expected");
+ message.translatedContent = $root.google.cloud.automl.v1.TextSnippet.fromObject(object.translatedContent);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TranslationAnnotation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {google.cloud.automl.v1.TranslationAnnotation} message TranslationAnnotation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TranslationAnnotation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.translatedContent = null;
+ if (message.translatedContent != null && message.hasOwnProperty("translatedContent"))
+ object.translatedContent = $root.google.cloud.automl.v1.TextSnippet.toObject(message.translatedContent, options);
+ return object;
+ };
+
+ /**
+ * Converts this TranslationAnnotation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TranslationAnnotation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TranslationAnnotation
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TranslationAnnotation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TranslationAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TranslationAnnotation";
+ };
+
+ return TranslationAnnotation;
+ })();
+
+ v1.Image = (function() {
+
+ /**
+ * Properties of an Image.
+ * @memberof google.cloud.automl.v1
+ * @interface IImage
+ * @property {Uint8Array|null} [imageBytes] Image imageBytes
+ * @property {string|null} [thumbnailUri] Image thumbnailUri
+ */
+
+ /**
+ * Constructs a new Image.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents an Image.
+ * @implements IImage
+ * @constructor
+ * @param {google.cloud.automl.v1.IImage=} [properties] Properties to set
+ */
+ function Image(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]];
+ }
+
+ /**
+ * Image imageBytes.
+ * @member {Uint8Array|null|undefined} imageBytes
+ * @memberof google.cloud.automl.v1.Image
+ * @instance
+ */
+ Image.prototype.imageBytes = null;
+
+ /**
+ * Image thumbnailUri.
+ * @member {string} thumbnailUri
+ * @memberof google.cloud.automl.v1.Image
+ * @instance
+ */
+ Image.prototype.thumbnailUri = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Image data.
+ * @member {"imageBytes"|undefined} data
+ * @memberof google.cloud.automl.v1.Image
+ * @instance
+ */
+ Object.defineProperty(Image.prototype, "data", {
+ get: $util.oneOfGetter($oneOfFields = ["imageBytes"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Image instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {google.cloud.automl.v1.IImage=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.Image} Image instance
+ */
+ Image.create = function create(properties) {
+ return new Image(properties);
+ };
+
+ /**
+ * Encodes the specified Image message. Does not implicitly {@link google.cloud.automl.v1.Image.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {google.cloud.automl.v1.IImage} message Image message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Image.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.imageBytes != null && Object.hasOwnProperty.call(message, "imageBytes"))
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.imageBytes);
+ if (message.thumbnailUri != null && Object.hasOwnProperty.call(message, "thumbnailUri"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.thumbnailUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Image message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Image.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {google.cloud.automl.v1.IImage} message Image message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Image.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Image message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.Image} Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Image.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.Image();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.imageBytes = reader.bytes();
+ break;
+ }
+ case 4: {
+ message.thumbnailUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Image message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.Image} Image
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Image.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Image message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Image.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.imageBytes != null && message.hasOwnProperty("imageBytes")) {
+ properties.data = 1;
+ if (!(message.imageBytes && typeof message.imageBytes.length === "number" || $util.isString(message.imageBytes)))
+ return "imageBytes: buffer expected";
+ }
+ if (message.thumbnailUri != null && message.hasOwnProperty("thumbnailUri"))
+ if (!$util.isString(message.thumbnailUri))
+ return "thumbnailUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an Image message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.Image} Image
+ */
+ Image.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.Image)
+ return object;
+ var message = new $root.google.cloud.automl.v1.Image();
+ if (object.imageBytes != null)
+ if (typeof object.imageBytes === "string")
+ $util.base64.decode(object.imageBytes, message.imageBytes = $util.newBuffer($util.base64.length(object.imageBytes)), 0);
+ else if (object.imageBytes.length >= 0)
+ message.imageBytes = object.imageBytes;
+ if (object.thumbnailUri != null)
+ message.thumbnailUri = String(object.thumbnailUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Image message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {google.cloud.automl.v1.Image} message Image
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Image.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.thumbnailUri = "";
+ if (message.imageBytes != null && message.hasOwnProperty("imageBytes")) {
+ object.imageBytes = options.bytes === String ? $util.base64.encode(message.imageBytes, 0, message.imageBytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.imageBytes) : message.imageBytes;
+ if (options.oneofs)
+ object.data = "imageBytes";
+ }
+ if (message.thumbnailUri != null && message.hasOwnProperty("thumbnailUri"))
+ object.thumbnailUri = message.thumbnailUri;
+ return object;
+ };
+
+ /**
+ * Converts this Image to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.Image
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Image.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Image
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.Image
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Image.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.Image";
+ };
+
+ return Image;
+ })();
+
+ v1.TextSnippet = (function() {
+
+ /**
+ * Properties of a TextSnippet.
+ * @memberof google.cloud.automl.v1
+ * @interface ITextSnippet
+ * @property {string|null} [content] TextSnippet content
+ * @property {string|null} [mimeType] TextSnippet mimeType
+ * @property {string|null} [contentUri] TextSnippet contentUri
+ */
+
+ /**
+ * Constructs a new TextSnippet.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a TextSnippet.
+ * @implements ITextSnippet
+ * @constructor
+ * @param {google.cloud.automl.v1.ITextSnippet=} [properties] Properties to set
+ */
+ function TextSnippet(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]];
+ }
+
+ /**
+ * TextSnippet content.
+ * @member {string} content
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @instance
+ */
+ TextSnippet.prototype.content = "";
+
+ /**
+ * TextSnippet mimeType.
+ * @member {string} mimeType
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @instance
+ */
+ TextSnippet.prototype.mimeType = "";
+
+ /**
+ * TextSnippet contentUri.
+ * @member {string} contentUri
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @instance
+ */
+ TextSnippet.prototype.contentUri = "";
+
+ /**
+ * Creates a new TextSnippet instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {google.cloud.automl.v1.ITextSnippet=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.TextSnippet} TextSnippet instance
+ */
+ TextSnippet.create = function create(properties) {
+ return new TextSnippet(properties);
+ };
+
+ /**
+ * Encodes the specified TextSnippet message. Does not implicitly {@link google.cloud.automl.v1.TextSnippet.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {google.cloud.automl.v1.ITextSnippet} message TextSnippet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSnippet.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.content);
+ if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mimeType);
+ if (message.contentUri != null && Object.hasOwnProperty.call(message, "contentUri"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.contentUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TextSnippet message, length delimited. Does not implicitly {@link google.cloud.automl.v1.TextSnippet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {google.cloud.automl.v1.ITextSnippet} message TextSnippet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TextSnippet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TextSnippet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.TextSnippet} TextSnippet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSnippet.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.TextSnippet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.content = reader.string();
+ break;
+ }
+ case 2: {
+ message.mimeType = reader.string();
+ break;
+ }
+ case 4: {
+ message.contentUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TextSnippet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.TextSnippet} TextSnippet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TextSnippet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TextSnippet message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TextSnippet.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.content != null && message.hasOwnProperty("content"))
+ if (!$util.isString(message.content))
+ return "content: string expected";
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ if (!$util.isString(message.mimeType))
+ return "mimeType: string expected";
+ if (message.contentUri != null && message.hasOwnProperty("contentUri"))
+ if (!$util.isString(message.contentUri))
+ return "contentUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TextSnippet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.TextSnippet} TextSnippet
+ */
+ TextSnippet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.TextSnippet)
+ return object;
+ var message = new $root.google.cloud.automl.v1.TextSnippet();
+ if (object.content != null)
+ message.content = String(object.content);
+ if (object.mimeType != null)
+ message.mimeType = String(object.mimeType);
+ if (object.contentUri != null)
+ message.contentUri = String(object.contentUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TextSnippet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {google.cloud.automl.v1.TextSnippet} message TextSnippet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TextSnippet.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.content = "";
+ object.mimeType = "";
+ object.contentUri = "";
+ }
+ if (message.content != null && message.hasOwnProperty("content"))
+ object.content = message.content;
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ object.mimeType = message.mimeType;
+ if (message.contentUri != null && message.hasOwnProperty("contentUri"))
+ object.contentUri = message.contentUri;
+ return object;
+ };
+
+ /**
+ * Converts this TextSnippet to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TextSnippet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TextSnippet
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.TextSnippet
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TextSnippet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.TextSnippet";
+ };
+
+ return TextSnippet;
+ })();
+
+ v1.DocumentDimensions = (function() {
+
+ /**
+ * Properties of a DocumentDimensions.
+ * @memberof google.cloud.automl.v1
+ * @interface IDocumentDimensions
+ * @property {google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit|null} [unit] DocumentDimensions unit
+ * @property {number|null} [width] DocumentDimensions width
+ * @property {number|null} [height] DocumentDimensions height
+ */
+
+ /**
+ * Constructs a new DocumentDimensions.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a DocumentDimensions.
+ * @implements IDocumentDimensions
+ * @constructor
+ * @param {google.cloud.automl.v1.IDocumentDimensions=} [properties] Properties to set
+ */
+ function DocumentDimensions(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]];
+ }
+
+ /**
+ * DocumentDimensions unit.
+ * @member {google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit} unit
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @instance
+ */
+ DocumentDimensions.prototype.unit = 0;
+
+ /**
+ * DocumentDimensions width.
+ * @member {number} width
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @instance
+ */
+ DocumentDimensions.prototype.width = 0;
+
+ /**
+ * DocumentDimensions height.
+ * @member {number} height
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @instance
+ */
+ DocumentDimensions.prototype.height = 0;
+
+ /**
+ * Creates a new DocumentDimensions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {google.cloud.automl.v1.IDocumentDimensions=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.DocumentDimensions} DocumentDimensions instance
+ */
+ DocumentDimensions.create = function create(properties) {
+ return new DocumentDimensions(properties);
+ };
+
+ /**
+ * Encodes the specified DocumentDimensions message. Does not implicitly {@link google.cloud.automl.v1.DocumentDimensions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {google.cloud.automl.v1.IDocumentDimensions} message DocumentDimensions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentDimensions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.unit != null && Object.hasOwnProperty.call(message, "unit"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.unit);
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.width);
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.height);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DocumentDimensions message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DocumentDimensions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {google.cloud.automl.v1.IDocumentDimensions} message DocumentDimensions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentDimensions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DocumentDimensions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.DocumentDimensions} DocumentDimensions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentDimensions.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.DocumentDimensions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.unit = reader.int32();
+ break;
+ }
+ case 2: {
+ message.width = reader.float();
+ break;
+ }
+ case 3: {
+ message.height = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DocumentDimensions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.DocumentDimensions} DocumentDimensions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentDimensions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DocumentDimensions message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DocumentDimensions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.unit != null && message.hasOwnProperty("unit"))
+ switch (message.unit) {
+ default:
+ return "unit: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.width != null && message.hasOwnProperty("width"))
+ if (typeof message.width !== "number")
+ return "width: number expected";
+ if (message.height != null && message.hasOwnProperty("height"))
+ if (typeof message.height !== "number")
+ return "height: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a DocumentDimensions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.DocumentDimensions} DocumentDimensions
+ */
+ DocumentDimensions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.DocumentDimensions)
+ return object;
+ var message = new $root.google.cloud.automl.v1.DocumentDimensions();
+ switch (object.unit) {
+ default:
+ if (typeof object.unit === "number") {
+ message.unit = object.unit;
+ break;
+ }
+ break;
+ case "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED":
+ case 0:
+ message.unit = 0;
+ break;
+ case "INCH":
+ case 1:
+ message.unit = 1;
+ break;
+ case "CENTIMETER":
+ case 2:
+ message.unit = 2;
+ break;
+ case "POINT":
+ case 3:
+ message.unit = 3;
+ break;
+ }
+ if (object.width != null)
+ message.width = Number(object.width);
+ if (object.height != null)
+ message.height = Number(object.height);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DocumentDimensions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {google.cloud.automl.v1.DocumentDimensions} message DocumentDimensions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DocumentDimensions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.unit = options.enums === String ? "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED" : 0;
+ object.width = 0;
+ object.height = 0;
+ }
+ if (message.unit != null && message.hasOwnProperty("unit"))
+ object.unit = options.enums === String ? $root.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit[message.unit] === undefined ? message.unit : $root.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit[message.unit] : message.unit;
+ if (message.width != null && message.hasOwnProperty("width"))
+ object.width = options.json && !isFinite(message.width) ? String(message.width) : message.width;
+ if (message.height != null && message.hasOwnProperty("height"))
+ object.height = options.json && !isFinite(message.height) ? String(message.height) : message.height;
+ return object;
+ };
+
+ /**
+ * Converts this DocumentDimensions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DocumentDimensions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DocumentDimensions
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.DocumentDimensions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DocumentDimensions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.DocumentDimensions";
+ };
+
+ /**
+ * DocumentDimensionUnit enum.
+ * @name google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit
+ * @enum {number}
+ * @property {number} DOCUMENT_DIMENSION_UNIT_UNSPECIFIED=0 DOCUMENT_DIMENSION_UNIT_UNSPECIFIED value
+ * @property {number} INCH=1 INCH value
+ * @property {number} CENTIMETER=2 CENTIMETER value
+ * @property {number} POINT=3 POINT value
+ */
+ DocumentDimensions.DocumentDimensionUnit = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INCH"] = 1;
+ values[valuesById[2] = "CENTIMETER"] = 2;
+ values[valuesById[3] = "POINT"] = 3;
+ return values;
+ })();
+
+ return DocumentDimensions;
+ })();
+
+ v1.Document = (function() {
+
+ /**
+ * Properties of a Document.
+ * @memberof google.cloud.automl.v1
+ * @interface IDocument
+ * @property {google.cloud.automl.v1.IDocumentInputConfig|null} [inputConfig] Document inputConfig
+ * @property {google.cloud.automl.v1.ITextSnippet|null} [documentText] Document documentText
+ * @property {Array.|null} [layout] Document layout
+ * @property {google.cloud.automl.v1.IDocumentDimensions|null} [documentDimensions] Document documentDimensions
+ * @property {number|null} [pageCount] Document pageCount
+ */
+
+ /**
+ * Constructs a new Document.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a Document.
+ * @implements IDocument
+ * @constructor
+ * @param {google.cloud.automl.v1.IDocument=} [properties] Properties to set
+ */
+ function Document(properties) {
+ this.layout = [];
+ 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]];
+ }
+
+ /**
+ * Document inputConfig.
+ * @member {google.cloud.automl.v1.IDocumentInputConfig|null|undefined} inputConfig
+ * @memberof google.cloud.automl.v1.Document
+ * @instance
+ */
+ Document.prototype.inputConfig = null;
+
+ /**
+ * Document documentText.
+ * @member {google.cloud.automl.v1.ITextSnippet|null|undefined} documentText
+ * @memberof google.cloud.automl.v1.Document
+ * @instance
+ */
+ Document.prototype.documentText = null;
+
+ /**
+ * Document layout.
+ * @member {Array.} layout
+ * @memberof google.cloud.automl.v1.Document
+ * @instance
+ */
+ Document.prototype.layout = $util.emptyArray;
+
+ /**
+ * Document documentDimensions.
+ * @member {google.cloud.automl.v1.IDocumentDimensions|null|undefined} documentDimensions
+ * @memberof google.cloud.automl.v1.Document
+ * @instance
+ */
+ Document.prototype.documentDimensions = null;
+
+ /**
+ * Document pageCount.
+ * @member {number} pageCount
+ * @memberof google.cloud.automl.v1.Document
+ * @instance
+ */
+ Document.prototype.pageCount = 0;
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {google.cloud.automl.v1.IDocument=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.Document} Document instance
+ */
+ Document.create = function create(properties) {
+ return new Document(properties);
+ };
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.cloud.automl.v1.Document.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {google.cloud.automl.v1.IDocument} message Document message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Document.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.inputConfig != null && Object.hasOwnProperty.call(message, "inputConfig"))
+ $root.google.cloud.automl.v1.DocumentInputConfig.encode(message.inputConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.documentText != null && Object.hasOwnProperty.call(message, "documentText"))
+ $root.google.cloud.automl.v1.TextSnippet.encode(message.documentText, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.layout != null && message.layout.length)
+ for (var i = 0; i < message.layout.length; ++i)
+ $root.google.cloud.automl.v1.Document.Layout.encode(message.layout[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.documentDimensions != null && Object.hasOwnProperty.call(message, "documentDimensions"))
+ $root.google.cloud.automl.v1.DocumentDimensions.encode(message.documentDimensions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.pageCount != null && Object.hasOwnProperty.call(message, "pageCount"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageCount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Document.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {google.cloud.automl.v1.IDocument} message Document message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Document.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.Document} Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Document.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.Document();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.inputConfig = $root.google.cloud.automl.v1.DocumentInputConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.documentText = $root.google.cloud.automl.v1.TextSnippet.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ if (!(message.layout && message.layout.length))
+ message.layout = [];
+ message.layout.push($root.google.cloud.automl.v1.Document.Layout.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ message.documentDimensions = $root.google.cloud.automl.v1.DocumentDimensions.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.pageCount = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.Document} Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Document.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Document message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Document.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.inputConfig != null && message.hasOwnProperty("inputConfig")) {
+ var error = $root.google.cloud.automl.v1.DocumentInputConfig.verify(message.inputConfig);
+ if (error)
+ return "inputConfig." + error;
+ }
+ if (message.documentText != null && message.hasOwnProperty("documentText")) {
+ var error = $root.google.cloud.automl.v1.TextSnippet.verify(message.documentText);
+ if (error)
+ return "documentText." + error;
+ }
+ if (message.layout != null && message.hasOwnProperty("layout")) {
+ if (!Array.isArray(message.layout))
+ return "layout: array expected";
+ for (var i = 0; i < message.layout.length; ++i) {
+ var error = $root.google.cloud.automl.v1.Document.Layout.verify(message.layout[i]);
+ if (error)
+ return "layout." + error;
+ }
+ }
+ if (message.documentDimensions != null && message.hasOwnProperty("documentDimensions")) {
+ var error = $root.google.cloud.automl.v1.DocumentDimensions.verify(message.documentDimensions);
+ if (error)
+ return "documentDimensions." + error;
+ }
+ if (message.pageCount != null && message.hasOwnProperty("pageCount"))
+ if (!$util.isInteger(message.pageCount))
+ return "pageCount: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.Document} Document
+ */
+ Document.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.Document)
+ return object;
+ var message = new $root.google.cloud.automl.v1.Document();
+ if (object.inputConfig != null) {
+ if (typeof object.inputConfig !== "object")
+ throw TypeError(".google.cloud.automl.v1.Document.inputConfig: object expected");
+ message.inputConfig = $root.google.cloud.automl.v1.DocumentInputConfig.fromObject(object.inputConfig);
+ }
+ if (object.documentText != null) {
+ if (typeof object.documentText !== "object")
+ throw TypeError(".google.cloud.automl.v1.Document.documentText: object expected");
+ message.documentText = $root.google.cloud.automl.v1.TextSnippet.fromObject(object.documentText);
+ }
+ if (object.layout) {
+ if (!Array.isArray(object.layout))
+ throw TypeError(".google.cloud.automl.v1.Document.layout: array expected");
+ message.layout = [];
+ for (var i = 0; i < object.layout.length; ++i) {
+ if (typeof object.layout[i] !== "object")
+ throw TypeError(".google.cloud.automl.v1.Document.layout: object expected");
+ message.layout[i] = $root.google.cloud.automl.v1.Document.Layout.fromObject(object.layout[i]);
+ }
+ }
+ if (object.documentDimensions != null) {
+ if (typeof object.documentDimensions !== "object")
+ throw TypeError(".google.cloud.automl.v1.Document.documentDimensions: object expected");
+ message.documentDimensions = $root.google.cloud.automl.v1.DocumentDimensions.fromObject(object.documentDimensions);
+ }
+ if (object.pageCount != null)
+ message.pageCount = object.pageCount | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {google.cloud.automl.v1.Document} message Document
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Document.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.layout = [];
+ if (options.defaults) {
+ object.inputConfig = null;
+ object.documentText = null;
+ object.documentDimensions = null;
+ object.pageCount = 0;
+ }
+ if (message.inputConfig != null && message.hasOwnProperty("inputConfig"))
+ object.inputConfig = $root.google.cloud.automl.v1.DocumentInputConfig.toObject(message.inputConfig, options);
+ if (message.documentText != null && message.hasOwnProperty("documentText"))
+ object.documentText = $root.google.cloud.automl.v1.TextSnippet.toObject(message.documentText, options);
+ if (message.layout && message.layout.length) {
+ object.layout = [];
+ for (var j = 0; j < message.layout.length; ++j)
+ object.layout[j] = $root.google.cloud.automl.v1.Document.Layout.toObject(message.layout[j], options);
+ }
+ if (message.documentDimensions != null && message.hasOwnProperty("documentDimensions"))
+ object.documentDimensions = $root.google.cloud.automl.v1.DocumentDimensions.toObject(message.documentDimensions, options);
+ if (message.pageCount != null && message.hasOwnProperty("pageCount"))
+ object.pageCount = message.pageCount;
+ return object;
+ };
+
+ /**
+ * Converts this Document to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.Document
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Document.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Document
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.Document
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Document.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.Document";
+ };
+
+ Document.Layout = (function() {
+
+ /**
+ * Properties of a Layout.
+ * @memberof google.cloud.automl.v1.Document
+ * @interface ILayout
+ * @property {google.cloud.automl.v1.ITextSegment|null} [textSegment] Layout textSegment
+ * @property {number|null} [pageNumber] Layout pageNumber
+ * @property {google.cloud.automl.v1.IBoundingPoly|null} [boundingPoly] Layout boundingPoly
+ * @property {google.cloud.automl.v1.Document.Layout.TextSegmentType|null} [textSegmentType] Layout textSegmentType
+ */
+
+ /**
+ * Constructs a new Layout.
+ * @memberof google.cloud.automl.v1.Document
+ * @classdesc Represents a Layout.
+ * @implements ILayout
+ * @constructor
+ * @param {google.cloud.automl.v1.Document.ILayout=} [properties] Properties to set
+ */
+ function Layout(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]];
+ }
+
+ /**
+ * Layout textSegment.
+ * @member {google.cloud.automl.v1.ITextSegment|null|undefined} textSegment
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @instance
+ */
+ Layout.prototype.textSegment = null;
+
+ /**
+ * Layout pageNumber.
+ * @member {number} pageNumber
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @instance
+ */
+ Layout.prototype.pageNumber = 0;
+
+ /**
+ * Layout boundingPoly.
+ * @member {google.cloud.automl.v1.IBoundingPoly|null|undefined} boundingPoly
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @instance
+ */
+ Layout.prototype.boundingPoly = null;
+
+ /**
+ * Layout textSegmentType.
+ * @member {google.cloud.automl.v1.Document.Layout.TextSegmentType} textSegmentType
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @instance
+ */
+ Layout.prototype.textSegmentType = 0;
+
+ /**
+ * Creates a new Layout instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {google.cloud.automl.v1.Document.ILayout=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.Document.Layout} Layout instance
+ */
+ Layout.create = function create(properties) {
+ return new Layout(properties);
+ };
+
+ /**
+ * Encodes the specified Layout message. Does not implicitly {@link google.cloud.automl.v1.Document.Layout.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {google.cloud.automl.v1.Document.ILayout} message Layout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Layout.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.textSegment != null && Object.hasOwnProperty.call(message, "textSegment"))
+ $root.google.cloud.automl.v1.TextSegment.encode(message.textSegment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.pageNumber != null && Object.hasOwnProperty.call(message, "pageNumber"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageNumber);
+ if (message.boundingPoly != null && Object.hasOwnProperty.call(message, "boundingPoly"))
+ $root.google.cloud.automl.v1.BoundingPoly.encode(message.boundingPoly, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.textSegmentType != null && Object.hasOwnProperty.call(message, "textSegmentType"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.textSegmentType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Layout message, length delimited. Does not implicitly {@link google.cloud.automl.v1.Document.Layout.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {google.cloud.automl.v1.Document.ILayout} message Layout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Layout.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.Document.Layout} Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Layout.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.Document.Layout();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.textSegment = $root.google.cloud.automl.v1.TextSegment.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.pageNumber = reader.int32();
+ break;
+ }
+ case 3: {
+ message.boundingPoly = $root.google.cloud.automl.v1.BoundingPoly.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.textSegmentType = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Layout message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.Document.Layout} Layout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Layout.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Layout message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Layout.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.textSegment != null && message.hasOwnProperty("textSegment")) {
+ var error = $root.google.cloud.automl.v1.TextSegment.verify(message.textSegment);
+ if (error)
+ return "textSegment." + error;
+ }
+ if (message.pageNumber != null && message.hasOwnProperty("pageNumber"))
+ if (!$util.isInteger(message.pageNumber))
+ return "pageNumber: integer expected";
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly")) {
+ var error = $root.google.cloud.automl.v1.BoundingPoly.verify(message.boundingPoly);
+ if (error)
+ return "boundingPoly." + error;
+ }
+ if (message.textSegmentType != null && message.hasOwnProperty("textSegmentType"))
+ switch (message.textSegmentType) {
+ default:
+ return "textSegmentType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Layout message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.Document.Layout} Layout
+ */
+ Layout.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.Document.Layout)
+ return object;
+ var message = new $root.google.cloud.automl.v1.Document.Layout();
+ if (object.textSegment != null) {
+ if (typeof object.textSegment !== "object")
+ throw TypeError(".google.cloud.automl.v1.Document.Layout.textSegment: object expected");
+ message.textSegment = $root.google.cloud.automl.v1.TextSegment.fromObject(object.textSegment);
+ }
+ if (object.pageNumber != null)
+ message.pageNumber = object.pageNumber | 0;
+ if (object.boundingPoly != null) {
+ if (typeof object.boundingPoly !== "object")
+ throw TypeError(".google.cloud.automl.v1.Document.Layout.boundingPoly: object expected");
+ message.boundingPoly = $root.google.cloud.automl.v1.BoundingPoly.fromObject(object.boundingPoly);
+ }
+ switch (object.textSegmentType) {
+ default:
+ if (typeof object.textSegmentType === "number") {
+ message.textSegmentType = object.textSegmentType;
+ break;
+ }
+ break;
+ case "TEXT_SEGMENT_TYPE_UNSPECIFIED":
+ case 0:
+ message.textSegmentType = 0;
+ break;
+ case "TOKEN":
+ case 1:
+ message.textSegmentType = 1;
+ break;
+ case "PARAGRAPH":
+ case 2:
+ message.textSegmentType = 2;
+ break;
+ case "FORM_FIELD":
+ case 3:
+ message.textSegmentType = 3;
+ break;
+ case "FORM_FIELD_NAME":
+ case 4:
+ message.textSegmentType = 4;
+ break;
+ case "FORM_FIELD_CONTENTS":
+ case 5:
+ message.textSegmentType = 5;
+ break;
+ case "TABLE":
+ case 6:
+ message.textSegmentType = 6;
+ break;
+ case "TABLE_HEADER":
+ case 7:
+ message.textSegmentType = 7;
+ break;
+ case "TABLE_ROW":
+ case 8:
+ message.textSegmentType = 8;
+ break;
+ case "TABLE_CELL":
+ case 9:
+ message.textSegmentType = 9;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Layout message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {google.cloud.automl.v1.Document.Layout} message Layout
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Layout.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.textSegment = null;
+ object.pageNumber = 0;
+ object.boundingPoly = null;
+ object.textSegmentType = options.enums === String ? "TEXT_SEGMENT_TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.textSegment != null && message.hasOwnProperty("textSegment"))
+ object.textSegment = $root.google.cloud.automl.v1.TextSegment.toObject(message.textSegment, options);
+ if (message.pageNumber != null && message.hasOwnProperty("pageNumber"))
+ object.pageNumber = message.pageNumber;
+ if (message.boundingPoly != null && message.hasOwnProperty("boundingPoly"))
+ object.boundingPoly = $root.google.cloud.automl.v1.BoundingPoly.toObject(message.boundingPoly, options);
+ if (message.textSegmentType != null && message.hasOwnProperty("textSegmentType"))
+ object.textSegmentType = options.enums === String ? $root.google.cloud.automl.v1.Document.Layout.TextSegmentType[message.textSegmentType] === undefined ? message.textSegmentType : $root.google.cloud.automl.v1.Document.Layout.TextSegmentType[message.textSegmentType] : message.textSegmentType;
+ return object;
+ };
+
+ /**
+ * Converts this Layout to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Layout.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Layout
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.Document.Layout
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Layout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.Document.Layout";
+ };
+
+ /**
+ * TextSegmentType enum.
+ * @name google.cloud.automl.v1.Document.Layout.TextSegmentType
+ * @enum {number}
+ * @property {number} TEXT_SEGMENT_TYPE_UNSPECIFIED=0 TEXT_SEGMENT_TYPE_UNSPECIFIED value
+ * @property {number} TOKEN=1 TOKEN value
+ * @property {number} PARAGRAPH=2 PARAGRAPH value
+ * @property {number} FORM_FIELD=3 FORM_FIELD value
+ * @property {number} FORM_FIELD_NAME=4 FORM_FIELD_NAME value
+ * @property {number} FORM_FIELD_CONTENTS=5 FORM_FIELD_CONTENTS value
+ * @property {number} TABLE=6 TABLE value
+ * @property {number} TABLE_HEADER=7 TABLE_HEADER value
+ * @property {number} TABLE_ROW=8 TABLE_ROW value
+ * @property {number} TABLE_CELL=9 TABLE_CELL value
+ */
+ Layout.TextSegmentType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TEXT_SEGMENT_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "TOKEN"] = 1;
+ values[valuesById[2] = "PARAGRAPH"] = 2;
+ values[valuesById[3] = "FORM_FIELD"] = 3;
+ values[valuesById[4] = "FORM_FIELD_NAME"] = 4;
+ values[valuesById[5] = "FORM_FIELD_CONTENTS"] = 5;
+ values[valuesById[6] = "TABLE"] = 6;
+ values[valuesById[7] = "TABLE_HEADER"] = 7;
+ values[valuesById[8] = "TABLE_ROW"] = 8;
+ values[valuesById[9] = "TABLE_CELL"] = 9;
+ return values;
+ })();
+
+ return Layout;
+ })();
+
+ return Document;
+ })();
+
+ v1.ExamplePayload = (function() {
+
+ /**
+ * Properties of an ExamplePayload.
+ * @memberof google.cloud.automl.v1
+ * @interface IExamplePayload
+ * @property {google.cloud.automl.v1.IImage|null} [image] ExamplePayload image
+ * @property {google.cloud.automl.v1.ITextSnippet|null} [textSnippet] ExamplePayload textSnippet
+ * @property {google.cloud.automl.v1.IDocument|null} [document] ExamplePayload document
+ */
+
+ /**
+ * Constructs a new ExamplePayload.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents an ExamplePayload.
+ * @implements IExamplePayload
+ * @constructor
+ * @param {google.cloud.automl.v1.IExamplePayload=} [properties] Properties to set
+ */
+ function ExamplePayload(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]];
+ }
+
+ /**
+ * ExamplePayload image.
+ * @member {google.cloud.automl.v1.IImage|null|undefined} image
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @instance
+ */
+ ExamplePayload.prototype.image = null;
+
+ /**
+ * ExamplePayload textSnippet.
+ * @member {google.cloud.automl.v1.ITextSnippet|null|undefined} textSnippet
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @instance
+ */
+ ExamplePayload.prototype.textSnippet = null;
+
+ /**
+ * ExamplePayload document.
+ * @member {google.cloud.automl.v1.IDocument|null|undefined} document
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @instance
+ */
+ ExamplePayload.prototype.document = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ExamplePayload payload.
+ * @member {"image"|"textSnippet"|"document"|undefined} payload
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @instance
+ */
+ Object.defineProperty(ExamplePayload.prototype, "payload", {
+ get: $util.oneOfGetter($oneOfFields = ["image", "textSnippet", "document"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ExamplePayload instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {google.cloud.automl.v1.IExamplePayload=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.ExamplePayload} ExamplePayload instance
+ */
+ ExamplePayload.create = function create(properties) {
+ return new ExamplePayload(properties);
+ };
+
+ /**
+ * Encodes the specified ExamplePayload message. Does not implicitly {@link google.cloud.automl.v1.ExamplePayload.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {google.cloud.automl.v1.IExamplePayload} message ExamplePayload message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExamplePayload.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.image != null && Object.hasOwnProperty.call(message, "image"))
+ $root.google.cloud.automl.v1.Image.encode(message.image, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.textSnippet != null && Object.hasOwnProperty.call(message, "textSnippet"))
+ $root.google.cloud.automl.v1.TextSnippet.encode(message.textSnippet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.document != null && Object.hasOwnProperty.call(message, "document"))
+ $root.google.cloud.automl.v1.Document.encode(message.document, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExamplePayload message, length delimited. Does not implicitly {@link google.cloud.automl.v1.ExamplePayload.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {google.cloud.automl.v1.IExamplePayload} message ExamplePayload message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExamplePayload.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExamplePayload message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.ExamplePayload} ExamplePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExamplePayload.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.ExamplePayload();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.image = $root.google.cloud.automl.v1.Image.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.textSnippet = $root.google.cloud.automl.v1.TextSnippet.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.document = $root.google.cloud.automl.v1.Document.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExamplePayload message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.ExamplePayload} ExamplePayload
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExamplePayload.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExamplePayload message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExamplePayload.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.image != null && message.hasOwnProperty("image")) {
+ properties.payload = 1;
+ {
+ var error = $root.google.cloud.automl.v1.Image.verify(message.image);
+ if (error)
+ return "image." + error;
+ }
+ }
+ if (message.textSnippet != null && message.hasOwnProperty("textSnippet")) {
+ if (properties.payload === 1)
+ return "payload: multiple values";
+ properties.payload = 1;
+ {
+ var error = $root.google.cloud.automl.v1.TextSnippet.verify(message.textSnippet);
+ if (error)
+ return "textSnippet." + error;
+ }
+ }
+ if (message.document != null && message.hasOwnProperty("document")) {
+ if (properties.payload === 1)
+ return "payload: multiple values";
+ properties.payload = 1;
+ {
+ var error = $root.google.cloud.automl.v1.Document.verify(message.document);
+ if (error)
+ return "document." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ExamplePayload message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.ExamplePayload} ExamplePayload
+ */
+ ExamplePayload.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.ExamplePayload)
+ return object;
+ var message = new $root.google.cloud.automl.v1.ExamplePayload();
+ if (object.image != null) {
+ if (typeof object.image !== "object")
+ throw TypeError(".google.cloud.automl.v1.ExamplePayload.image: object expected");
+ message.image = $root.google.cloud.automl.v1.Image.fromObject(object.image);
+ }
+ if (object.textSnippet != null) {
+ if (typeof object.textSnippet !== "object")
+ throw TypeError(".google.cloud.automl.v1.ExamplePayload.textSnippet: object expected");
+ message.textSnippet = $root.google.cloud.automl.v1.TextSnippet.fromObject(object.textSnippet);
+ }
+ if (object.document != null) {
+ if (typeof object.document !== "object")
+ throw TypeError(".google.cloud.automl.v1.ExamplePayload.document: object expected");
+ message.document = $root.google.cloud.automl.v1.Document.fromObject(object.document);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExamplePayload message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {google.cloud.automl.v1.ExamplePayload} message ExamplePayload
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExamplePayload.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.image != null && message.hasOwnProperty("image")) {
+ object.image = $root.google.cloud.automl.v1.Image.toObject(message.image, options);
+ if (options.oneofs)
+ object.payload = "image";
+ }
+ if (message.textSnippet != null && message.hasOwnProperty("textSnippet")) {
+ object.textSnippet = $root.google.cloud.automl.v1.TextSnippet.toObject(message.textSnippet, options);
+ if (options.oneofs)
+ object.payload = "textSnippet";
+ }
+ if (message.document != null && message.hasOwnProperty("document")) {
+ object.document = $root.google.cloud.automl.v1.Document.toObject(message.document, options);
+ if (options.oneofs)
+ object.payload = "document";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ExamplePayload to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExamplePayload.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExamplePayload
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.ExamplePayload
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExamplePayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.ExamplePayload";
+ };
+
+ return ExamplePayload;
+ })();
+
+ v1.InputConfig = (function() {
+
+ /**
+ * Properties of an InputConfig.
+ * @memberof google.cloud.automl.v1
+ * @interface IInputConfig
+ * @property {google.cloud.automl.v1.IGcsSource|null} [gcsSource] InputConfig gcsSource
+ * @property {Object.|null} [params] InputConfig params
+ */
+
+ /**
+ * Constructs a new InputConfig.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents an InputConfig.
+ * @implements IInputConfig
+ * @constructor
+ * @param {google.cloud.automl.v1.IInputConfig=} [properties] Properties to set
+ */
+ function InputConfig(properties) {
+ this.params = {};
+ 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]];
+ }
+
+ /**
+ * InputConfig gcsSource.
+ * @member {google.cloud.automl.v1.IGcsSource|null|undefined} gcsSource
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @instance
+ */
+ InputConfig.prototype.gcsSource = null;
+
+ /**
+ * InputConfig params.
+ * @member {Object.} params
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @instance
+ */
+ InputConfig.prototype.params = $util.emptyObject;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * InputConfig source.
+ * @member {"gcsSource"|undefined} source
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @instance
+ */
+ Object.defineProperty(InputConfig.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["gcsSource"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new InputConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IInputConfig=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.InputConfig} InputConfig instance
+ */
+ InputConfig.create = function create(properties) {
+ return new InputConfig(properties);
+ };
+
+ /**
+ * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.automl.v1.InputConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IInputConfig} message InputConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InputConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource"))
+ $root.google.cloud.automl.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.params != null && Object.hasOwnProperty.call(message, "params"))
+ for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.InputConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IInputConfig} message InputConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InputConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.InputConfig} InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InputConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.InputConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gcsSource = $root.google.cloud.automl.v1.GcsSource.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (message.params === $util.emptyObject)
+ message.params = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.params[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an InputConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.InputConfig} InputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InputConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an InputConfig message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ InputConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) {
+ properties.source = 1;
+ {
+ var error = $root.google.cloud.automl.v1.GcsSource.verify(message.gcsSource);
+ if (error)
+ return "gcsSource." + error;
+ }
+ }
+ if (message.params != null && message.hasOwnProperty("params")) {
+ if (!$util.isObject(message.params))
+ return "params: object expected";
+ var key = Object.keys(message.params);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.params[key[i]]))
+ return "params: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an InputConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.InputConfig} InputConfig
+ */
+ InputConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.InputConfig)
+ return object;
+ var message = new $root.google.cloud.automl.v1.InputConfig();
+ if (object.gcsSource != null) {
+ if (typeof object.gcsSource !== "object")
+ throw TypeError(".google.cloud.automl.v1.InputConfig.gcsSource: object expected");
+ message.gcsSource = $root.google.cloud.automl.v1.GcsSource.fromObject(object.gcsSource);
+ }
+ if (object.params) {
+ if (typeof object.params !== "object")
+ throw TypeError(".google.cloud.automl.v1.InputConfig.params: object expected");
+ message.params = {};
+ for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i)
+ message.params[keys[i]] = String(object.params[keys[i]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {google.cloud.automl.v1.InputConfig} message InputConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ InputConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.params = {};
+ if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) {
+ object.gcsSource = $root.google.cloud.automl.v1.GcsSource.toObject(message.gcsSource, options);
+ if (options.oneofs)
+ object.source = "gcsSource";
+ }
+ var keys2;
+ if (message.params && (keys2 = Object.keys(message.params)).length) {
+ object.params = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.params[keys2[j]] = message.params[keys2[j]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this InputConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ InputConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for InputConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.InputConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ InputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.InputConfig";
+ };
+
+ return InputConfig;
+ })();
+
+ v1.BatchPredictInputConfig = (function() {
+
+ /**
+ * Properties of a BatchPredictInputConfig.
+ * @memberof google.cloud.automl.v1
+ * @interface IBatchPredictInputConfig
+ * @property {google.cloud.automl.v1.IGcsSource|null} [gcsSource] BatchPredictInputConfig gcsSource
+ */
+
+ /**
+ * Constructs a new BatchPredictInputConfig.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a BatchPredictInputConfig.
+ * @implements IBatchPredictInputConfig
+ * @constructor
+ * @param {google.cloud.automl.v1.IBatchPredictInputConfig=} [properties] Properties to set
+ */
+ function BatchPredictInputConfig(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]];
+ }
+
+ /**
+ * BatchPredictInputConfig gcsSource.
+ * @member {google.cloud.automl.v1.IGcsSource|null|undefined} gcsSource
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @instance
+ */
+ BatchPredictInputConfig.prototype.gcsSource = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * BatchPredictInputConfig source.
+ * @member {"gcsSource"|undefined} source
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @instance
+ */
+ Object.defineProperty(BatchPredictInputConfig.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["gcsSource"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new BatchPredictInputConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IBatchPredictInputConfig=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.BatchPredictInputConfig} BatchPredictInputConfig instance
+ */
+ BatchPredictInputConfig.create = function create(properties) {
+ return new BatchPredictInputConfig(properties);
+ };
+
+ /**
+ * Encodes the specified BatchPredictInputConfig message. Does not implicitly {@link google.cloud.automl.v1.BatchPredictInputConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IBatchPredictInputConfig} message BatchPredictInputConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BatchPredictInputConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource"))
+ $root.google.cloud.automl.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BatchPredictInputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.BatchPredictInputConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IBatchPredictInputConfig} message BatchPredictInputConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BatchPredictInputConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BatchPredictInputConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.BatchPredictInputConfig} BatchPredictInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BatchPredictInputConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.BatchPredictInputConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gcsSource = $root.google.cloud.automl.v1.GcsSource.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BatchPredictInputConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.BatchPredictInputConfig} BatchPredictInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BatchPredictInputConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BatchPredictInputConfig message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BatchPredictInputConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) {
+ properties.source = 1;
+ {
+ var error = $root.google.cloud.automl.v1.GcsSource.verify(message.gcsSource);
+ if (error)
+ return "gcsSource." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BatchPredictInputConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.automl.v1.BatchPredictInputConfig} BatchPredictInputConfig
+ */
+ BatchPredictInputConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.automl.v1.BatchPredictInputConfig)
+ return object;
+ var message = new $root.google.cloud.automl.v1.BatchPredictInputConfig();
+ if (object.gcsSource != null) {
+ if (typeof object.gcsSource !== "object")
+ throw TypeError(".google.cloud.automl.v1.BatchPredictInputConfig.gcsSource: object expected");
+ message.gcsSource = $root.google.cloud.automl.v1.GcsSource.fromObject(object.gcsSource);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BatchPredictInputConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.BatchPredictInputConfig} message BatchPredictInputConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BatchPredictInputConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) {
+ object.gcsSource = $root.google.cloud.automl.v1.GcsSource.toObject(message.gcsSource, options);
+ if (options.oneofs)
+ object.source = "gcsSource";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BatchPredictInputConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BatchPredictInputConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BatchPredictInputConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.automl.v1.BatchPredictInputConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BatchPredictInputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.automl.v1.BatchPredictInputConfig";
+ };
+
+ return BatchPredictInputConfig;
+ })();
+
+ v1.DocumentInputConfig = (function() {
+
+ /**
+ * Properties of a DocumentInputConfig.
+ * @memberof google.cloud.automl.v1
+ * @interface IDocumentInputConfig
+ * @property {google.cloud.automl.v1.IGcsSource|null} [gcsSource] DocumentInputConfig gcsSource
+ */
+
+ /**
+ * Constructs a new DocumentInputConfig.
+ * @memberof google.cloud.automl.v1
+ * @classdesc Represents a DocumentInputConfig.
+ * @implements IDocumentInputConfig
+ * @constructor
+ * @param {google.cloud.automl.v1.IDocumentInputConfig=} [properties] Properties to set
+ */
+ function DocumentInputConfig(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]];
+ }
+
+ /**
+ * DocumentInputConfig gcsSource.
+ * @member {google.cloud.automl.v1.IGcsSource|null|undefined} gcsSource
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @instance
+ */
+ DocumentInputConfig.prototype.gcsSource = null;
+
+ /**
+ * Creates a new DocumentInputConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IDocumentInputConfig=} [properties] Properties to set
+ * @returns {google.cloud.automl.v1.DocumentInputConfig} DocumentInputConfig instance
+ */
+ DocumentInputConfig.create = function create(properties) {
+ return new DocumentInputConfig(properties);
+ };
+
+ /**
+ * Encodes the specified DocumentInputConfig message. Does not implicitly {@link google.cloud.automl.v1.DocumentInputConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IDocumentInputConfig} message DocumentInputConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentInputConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource"))
+ $root.google.cloud.automl.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.automl.v1.DocumentInputConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @static
+ * @param {google.cloud.automl.v1.IDocumentInputConfig} message DocumentInputConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DocumentInputConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DocumentInputConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.automl.v1.DocumentInputConfig} DocumentInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentInputConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.automl.v1.DocumentInputConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gcsSource = $root.google.cloud.automl.v1.GcsSource.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DocumentInputConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.automl.v1.DocumentInputConfig} DocumentInputConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DocumentInputConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DocumentInputConfig message.
+ * @function verify
+ * @memberof google.cloud.automl.v1.DocumentInputConfig
+ * @static
+ * @param {Object.